This article addresses the developments ongoing in SENSIBLE, an H2020 funded project focused on energy storage and energy management, which demonstration occurs in Evora-Portugal, Nottingham-UK and Nuremberg-Germany. Currently presented work focus the concepts and developments necessary in order to make possible that residential clients can participate in a market environment with their electrical flexibility, also considering Distribution System Operator (DSO) needs when gird is under stress caused by any technical constraint. Moreover than the concept behind it is necessary to consider several developments: i) a low layer where residential assets will live in customers houses; ii) a high-level layers where market tools and DSO management tools will live; iii) an intermediate layer which bridge the gap between the low layer and high layer. These developments are a result of the ongoing works under one of SENSIBLE use cases which demonstrations occurs in a small village in Evora district in Portugal.