Future buildings are increasingly embracing a connected approach to resource management, driven by the synergy of {Internet of Things (IoT) technologies, distributed generation (DG) solutions, and sophisticated energy management systems. Connected systems offer real-time information on building performance, allowing optimized adjustments to lighti