Modern buildings are increasingly adopting a holistic approach to sustainability, driven by the integration of {Internet of Things (IoT) technologies, distributed generation (DG) solutions, and sophisticated energy optimization systems. Connected systems provide real-time insights on building operation, allowing automated adjustments to lighting a