Help with script to control heat pump when price is high
Posted: Tuesday 14 December 2021 9:01
Heya. During the day sometimes we get some insane spikes in the energy price. I wan't to lower the heat pump setpoint during those spikes.
I wan't to activate a switch (which lowers the set point on the heat pump) when the current price is above average for that day +10. So if the average for the day is 100, then I wan't to activate the switch if the current price is above 110.
The heat pump switch has idx 348.
The current price has idx 358.
The mean price has idx 361. Apreciate any help, thanks.
I wan't to activate a switch (which lowers the set point on the heat pump) when the current price is above average for that day +10. So if the average for the day is 100, then I wan't to activate the switch if the current price is above 110.
The heat pump switch has idx 348.
The current price has idx 358.
The mean price has idx 361. Apreciate any help, thanks.