Future buildings are increasingly utilizing a holistic approach to efficiency, driven by the synergy of {Internet of Things (IoT) technologies, distributed generation (DG) solutions, and sophisticated energy management systems. IoT devices offer real-time data on building performance, enabling intelligent adjustments to climate and other processes