Heating by flat plate collector combined with a heat pump