The apparatus has a heat pump, where heat exchanger (II) of the heat pump and a pump (10) of a heating circuit (5) with valves and sensors form a compact device. The pump of the heating circuit is connected directly at the heat exchanger without an intermediate tube.