Today's structures are increasingly adopting smart technologies to enhance functionality. This involves the unified convergence of several components , including the Internet of Things (IoT) , distributed generation (DG) , and robust power control frameworks. IoT devices provide real-time information that allow efficient power usage and grid stabi