Modern buildings are increasingly embracing a connected approach to sustainability, driven by the integration of {Internet of Things (IoT) technologies, distributed generation (DG) solutions, and sophisticated energy optimization systems. IoT devices offer real-time information on building performance, permitting optimized adjustments to climate a