Switched from OH1 to OH2
I have a bunch of “Switches” that i initialized on startup in a rule on OH1
In OH2, it’s as if this rule is no longer running or “rerunning”.
I put a “sendEmail” at the top, and i get two emails now, but none of the initialization ever get set.
rule “System starup initialization"
when
System started or
Item Test_Initialize received command ON
then
sendMail("xxx@xxx.com”, “Startup Detected-Possible Power Outage”, “Startup Detected-Possible Power Outage”)
postUpdate(GenericSwitch, ON)
postUpdate(GenericSwitch2, OFF)
end
Do you see any errors in the log. You receive the email so the Rule is running. But if it is failing for some reason after the sendMail it will never get to the postUpdates.
It seems that CRON based (and System Started) rules do run multiple times (unless you edit them and force them to reload). Some Events from startup below - note both of the startup rules are triggered on system started.