Future buildings are increasingly embracing a holistic approach to efficiency, driven by the convergence of {Internet of Things (IoT) technologies, distributed generation (DG) solutions, and sophisticated energy optimization systems. IoT devices offer real-time information on building functionality, permitting automated adjustments to lighting and