Future electricity distribution grids will host an important and growing share of variable renewable energy sources and local storage resources. Moreover, they will face new load structures due for example to the growth of the electric vehicle market. These trends raise the need for new distribution grid architecture and operation paradigms to keep the grid stable and to ensure quality of supply. In addition, these new paradigms will enable the provision of advanced new services.On the one hand, distribution System Operators will increasingly rely on demand side flexibility provided by distributed energy resources (such as flexible loads, storage resources and controllable distributed energy sources) due to their adaptability and potential cost-effectiveness compared to traditional infrastructure reinforcements. On the other hand, households will progressively become prosumers playing an active role on smart grid energy management by exploiting flexibility potential of household devices that consume, store or produce electricity. The Internet of Things is a main enabler for households to play an active role, as it has been pushing a new wave of Smart Home connected devices and related services, from which the energy domain can become one of the main business cases.