I would like to combine a photovoltaic system with a heat pump, is this a good idea?

Adding a photovoltaic system is the ideal solution to maximise savings as the heat pump consumes electricity.