The present disclosure is directed to energy management equipment configured to manage energy efficiently in a grid in a simple, economic, maintenance-free manner that can be easily used in residential and industrial applications. In addition, an energy system is proposed in a grid for home or industrial use that comprises a source of energy consumption, a main energy grid, an intermittent energy source, a secondary source of energy generation and an energy storage device. Finally, a method is proposed to manage energy by means of an optimization model that is executed in the equipment and energy management system of the present disclosure.