Energy sharing between energy community members should be fair and supportive. Prosumers and consumers can effectively interact within the local energy community (LEC), while a fair energy-sharing mechanism is required to guarantee market liquidity. From the prosumer’s point of view, the power injection to the LEC is more attractive and profitable than selling the energy surplus to the grid. However, the consumers can preserve their energy demand at lower prices with the contribution of the prosumers at the LEC level.

In this work, a fair mechanism for energy sharing between peers at the LEC level is developed to deal with the contributions of the prosumers in providing energy surplus and the net demands of each consumer. The community energy management system (CEMS) allocates energy between sectors. The developed strategy for the energy sharing mechanism considers behind-the-meter (BTM) energy management to enhance the financial liquidity in the pool energy market framework. Different performance indicators have been suggested to compare the functionality of the sharing energy mechanism developed in this work.