Control of air heat pump (Vaillant)

Hello everyone,

I would like to control my “air heat pump” (type: VWL 78/5 IS with VWL 75/5 AS) via HomeAssistant, depending on how much electricity my photovoltaic system is currently producing. What is the best way to do this? Should I simply control the desired temperature depending on the power produced by the PV system?

Best regards