Hi,
I’m trying to modify the below rule to add some variance around the setpoint to prevent the fridge constantly hunting. In pseudo code, ideally keen write something like:
if (Curing_temp.state > Curing_temp_setpoint.state + 2) Fridge.sendCommand(ON)
if (Curing_temp.state > Curing_temp_setpoint.state - 2) Fridge.sendCommand(OFF)
but I can’t get it to work.
The currently working “dumb” rule is:
rule "Curing Chamber Fridge Control"
when
Item Curing_temp_setpoint changed or
Item Curing_temp changed
then
if (Curing_temp.state > Curing_temp_setpoint.state) Fridge.sendCommand(ON)
else Fridge.sendCommand(OFF)
end
Any advise on how to get something working would be greatly appreciated.