Control unit that heats the resistance of a water accumulator depending on the energy available from the photovoltaic system