  The growth of distributed renewable energy in the electrical grid presents
challenges to its stability and quality. To address this at the local level,
flexibility energy strategies emerge as an innovative technique. However,
managing these strategies in residential areas becomes complex due to the
unique characteristics of each prosumer. A major challenge lies in managing
communication among diverse devices with different protocols. To address these
issues, a comprehensive framework is designed and implemented to facilitate
prosumers' integration in flexibility strategies, addressing communication at
various levels. The effectiveness of the proposed framework is demonstrated
through its implementation in a real smart home environment with diverse
devices. The framework enables seamless integration and communication between
IoT devices and IEC 61,850-compliant power devices. This research presents a
novel approach to address the challenges of managing flexibility strategies in
residential areas, providing a practical solution for prosumers to actively
participate in optimizing energy consumption and enhancing the stability and
quality of the electricity system amidst the growing integration of distributed
renewable energy.
