Energy communities are on the rise globally, as they enable electricity consumers to advance the decarbonization of the energy system, while benefiting economically [
2,
7]. In contrast to microgrids, energy communities do not necessarily have to be physically linked, i.e., via a grid infrastructure [
8]. Thus, they can involve the collaboration of individual consumers within residential buildings, as well as several neighborhoods, for the common purpose of expanding renewable energy and increasing their own share of locally generated renewable electricity. For example, [
9] examine how the expansion of residential PV systems affects electricity self-consumption rates. [
1] extend this approach by combining a PV system with a storage system, and calculating the achievable annual savings of residents in energy communities. A similarly designed research issue is investigated by [
8,
10,
11]. Approaches to optimizing energy flows within energy communities are also being developed, studied, and tested in scientific literature [
12,
13,
14,
15]. Legal frameworks as well as challenges are explored by [
9,
16]. Indeed, the lack of sufficient legislation to ensure viability is one of the reasons for the delayed further development of energy communities [
17,
18]. In addition to these specific research questions, [
7] provides a very comprehensive study of energy communities. The study examines not only the social interaction of their members, but also the technological feasibility of such communities, as well as social and technical implications. In this context, [
19] perform a techno-economic analysis focusing on the Japanese energy system. An examination of whether RECs, as defined under the European Union’s Renewable Energy Directive (RED II), can be a useful facilitator for future energy systems is provided by [
4]. According to Article 22 of RED II, an REC is a community in which consumers can produce, consume, distribute, and trade renewable energy, and in which every member must be able to access and acquire renewable assets co-ownership [
4]. In addition to the REC defined in RED II, with the citizen energy community (CEC), the directive on common rules for the internal electricity market [
20] provides another construct for energy communities. The main differences are that RECs include all forms of energy and demand within a spatial proximity of the RE project, while CECs only consider electricity, while having no spatial limitations. For this study, we focus on the REC, since it offers the most benefits for the electricity grid when applying a local energy management, however, the structure can be applied on multiple forms of ECs. In a broader sense, our model can be interesting for ECs in rural areas by enabling the members there to first obtain transparency on generated and consumed energy quantities, to obtain ownership of small-scale energy assets, and finally, to build up a local energy market [
21].