“Ef_Haustuer_State” is a contact (main entry door). When door has been updated today, the expression works ok. E.g. Ef_Haustuer_State.lastUpdate is 11pm, the expression is FALSE at 11:50pm.
At 00:03am the NEXT DAY the expression is TRUE. This is not the expected behaviour.
Any ideas are welcome.
Platform information:
Java Runtime Environment: java version “1.8.0_151”
What is your persistence configuration? lastUpdate is somewhat of a misnomer. What you get is the most recent entry in the database regardless of what generated that entry. If your persistence is configured to save once a day or once an hour or something that will cause the behavior your are seeing.
@5iver and @rlkoshak:
Yes indeed, there is the “everyDay” clause in the persistence setup. I did not have this on my radar screen … and it may have even more effects on other rules as well …