Method for heating a plurality of buildings each with a geothermal heating system with a heat pump which couples a ground loop and a house loop via a heat pump circuit, and in which electricity is fed into a public electricity grid and electricity is taken from the public electricity grid and a heat generator is operated with the electricity and the heat generator heats a heat medium and the heat medium is brought to a temperature above a ground temperature and heat is supplied to the ground loop and via the ground loop the heat is released to the ground for storage, which is subsequently extracted from the ground again via the ground loop , wherein the heat initially heats the house loop and, after a setpoint temperature has been reached in the house , heats the ground loop and the heat generator is integrated into the heat pump circuit and the heat is delivered to the house loop via a condenser , characterised in that the heat generator coincides with a compressor of the heat pump and the heat is delivered to the ground loop via the condenser . the house loop and the ground loop are interconnected by means of primary controllable valves and secondary controllable valves via interconnecting lines and in a storage mode the secondary controllable valves are moved to a second position and close the house loop and open the connecting pipes to the ground loop , whereby the heated heat medium via the primary controllable valves and the connecting pipes are each pumped by means of a primary pump through the ground loop and the ground , where they release heat to the ground, and in a heating mode, the primary controllable valves and secondary controllable valves are brought to a first position and the house loop is opened and connecting lines are closed and heat is delivered to the house loop via the condenser . in which electricity is fed into a public electricity grid and electricity is taken from the public electricity grid and a heat generator is operated with the electricity and the heat generator heats a heat medium and the heat medium is brought to a temperature above a ground temperature and heat is supplied to the ground loop and via the ground loop the heat is released to the ground for storage, which is subsequently extracted from the ground again via the ground loop , wherein the heat initially heats the house loop and, after a setpoint temperature has been reached in the house , heats the ground loop and the heat generator is integrated into the heat pump circuit and the heat is delivered to the house loop via a condenser , characterised in that the heat generator coincides with a compressor of the heat pump and the heat is delivered to the ground loop via the condenser . the house loop and the ground loop are interconnected by means of primary controllable valves and secondary controllable valves via interconnecting lines and in a storage mode the secondary controllable valves are moved to a second position and close the house loop and open the connecting pipes to the ground loop , whereby the heated heat medium via the primary controllable valves and the connecting pipes are each pumped by means of a primary pump through the ground loop and the ground , where they release heat to the ground, and in a heating mode, the primary controllable valves and secondary controllable valves are brought to a first position and the house loop is opened and connecting lines are closed and heat is delivered to the house loop via the condenser . <EOS>