Smart Grid represents a concept of power grid management, which should meet the requirements of security, integration of renewable energies, efficiency and low costs. This project involves the development and implementation of an intelligent platform for the supervision and optimization of energy consumption. This system proposes the transformation of an existing system into a smart secure system based on the notion of a smart grid micro grid. The system deals with many applications such as optimization, supervision, diagnosis and intelligent management of data related to the production and consumption of electrical energy.