Connect NibePi to Home Assistent

Hi Currently I’m running HA and have a Nibe F1145 and Trying to connect both together. I get a lot of sensor reading in the HA. But I want to switch the Heatpump on when the is enough sunpower / wind power. Is there someone who has this already running this way?