Q: How do I use createTimer() to create a timer for tomorrow, 11 o’clock ?
Background: I have a heatpump wich does get a lot of on-off cycles when it is not really cold outside. I switch it off when it cycled 10 times a day and want to re-activate it the next day at 11 o’clock. CreateTimer (now.plus) is not good since the time when the 10 cycles are reached is different for each day.
My rule now is:
rule "OFF"
when
Item Vito_cycles changed
then
if (Vito_cycles.deltaSince(now.withTimeAtStartOfDay) >10){
Vito_ONOFF.postUpdate(1) // off
VitoTimer=createTimer(now.plusMinutes(21)) [
Vito_ONOFF.postUpdate(2) // back to on.
]
}
end