I'm trying to control an AirConditioner, and I don't want it to run within 5 minutes of it's prior power down ...
"AC OFF": if ( temperature < 75 ) then set "AC off"
"AC ON": if ( temperature > 75 && "Time is Last Run Time for 'AC Off' + 5 minutes" )
won't work, since the "Time is Last Run Time" is too literal. if the temperature doesn't exceed 75 until 6 minutes later, then the "Time is last run" condition is false.
I've tried things like ...
"AC OFF": if ( temperature < 75 ) then set "AC off"; variable Delay=1
"AC Delay" : if ("Time is Last Run Time for 'AC OFF' + 5 minutes" ) then variable Delay=0
"AC ON": if (temperature > 75 && Delay=0) then set "AC on"
This allows for "AC ON" to trigger at some later point when the temperature exceeds 75 ... But for some reason, occasionally "AC Delay" doesn't always trigger, so it doesn't always set Delay=0. (This especially occurs if/when the ISY has a power outage during the "Time is Last Run" window. )
Is there a way to say "Time > Last Run Time + XXX" ? (and yes, the above program is trivial, but I have multiple programs that use the "Time is Last Run", that have the same issue.
@shley