Hi all,
Im running in OH3.3 and have problems to get the following rule running:
rule "Eingangstuer"
when
Item Tuer_Eingang received update
then
if(now.isBefore(now.withHour(5).withMinute(0)) && now.isAfter(now.withHour(7).withMinute(0)) ){
timer = createTimer(now.toInstant().plusMillis(60000).atZone(now.zone)) [|
globalPresence.postUpdate(OFF)
timer = null
rule_tuer.postUpdate( new DateTimeType() )
]
}
end
I can debug the rule to see that the trigger works fine but the if path is never accessed and hence the items below remain unchanged. Any ideas? I did not really find anything in the docs specifcally for this statement…
Thanks for any help!
M.