Modern buildings are increasingly adopting a connected approach to sustainability, driven by the synergy of {Internet of Things (IoT) technologies, distributed generation (DG) solutions, and sophisticated energy optimization systems. Sensors & actuators offer real-time data on building functionality, permitting intelligent adjustments to lighting