A system for using excess electrical energy produced by an installation supplied with renewable electricity generation and further supplied by a power grid, comprising: a heat pump with at least one modulating compressor and configured to adjust its consumed power based on a production value of renewable energy generation; a control unit configured to: monitor the energy balance between the electrical grid and the electrical installation with a renewable production system; determine, based on said energy balance and at least one control limit of excess, if it enables the regulation of excess energy; calculate a value of excess production of the installation that includes at least one operating parameter of the heat pump to adjust the energy balance of the electrical installation and the electrical grid according to a specific value of the energy balance; send the value of excess production to the heat pump; characterized in that the heat pump is configured to manage base production demands according to at least one value of base operation of the installation and, when receiving a value of excess production, to manage the demand of excess energy production of the installation according to the value of excess production received. a heat pump with at least one modulating compressor and configured to adjust its consumed power based on a production value of renewable energy generation; a control unit configured to: monitor the energy balance between the electrical grid and the electrical installation with a renewable production system; determine, based on said energy balance and at least one control limit of excess, if it enables the regulation of excess energy; calculate a value of excess production of the installation that includes at least one operating parameter of the heat pump to adjust the energy balance of the electrical installation and the electrical grid according to a specific value of the energy balance; send the value of excess production to the heat pump; characterized in that the heat pump is configured to manage base production demands according to at least one value of base operation of the installation and, when receiving a value of excess production, to manage the demand of excess energy production of the installation according to the value of excess production received. monitor the energy balance between the electrical grid and the electrical installation with a renewable production system; determine, based on said energy balance and at least one control limit of excess, if it enables the regulation of excess energy; calculate a value of excess production of the installation that includes at least one operating parameter of the heat pump to adjust the energy balance of the electrical installation and the electrical grid according to a specific value of the energy balance; send the value of excess production to the heat pump; characterized in that the heat pump is configured to manage base production demands according to at least one value of base operation of the installation and, when receiving a value of excess production, to manage the demand of excess energy production of the installation according to the value of excess production received.