OpenEnergyMonitor Community

Control heatpump tuyapi

I’m receiving a heatpump (W’eau) for my pool.It is wifi connected (to an app) and i found out that it should run “tuyapi”. (it arrives in a couple of days :wink: )
For this api there is a node-red github plugin available.
I would like to control it from my emonpi so that it only runs when i have solar in excess. (or if i manually activate it).
Could someone point me in the right direction on how to make this happen?