A flexible Customer Power Device for energy management in a real Smart Micro-Grid