We just had a long power outage (~19 hr), and a few devices with time based rules are acting “wacky”. The DateTime adapter is reporting the correct time (and is configured for the correct timezone), but the log shows the lights coming on at very odd times. It’s likely “by design”, and I just don’t understand how the various pieces are interacting. This was a “ugly” return of service, which may have surfaced some corner conditions.
The power returned about 17:45 PT, but internet wasn’t available until 19:45. Since I don’t run a local NTP server, I think the gateway (rpi) would have started at the epoch.
One light is controlled by a rule that turns on at “19:00 or ‘dark’”. It triggered at 01:07, was accurate for its morning schedule of 06:00 to 07:30 (time only - no ‘dark’), but came on at 14:17 under the “19:00 or ‘dark’” rule. I’m leaving the rule as is, to see what happens tonight.
My expectation was that everything would be back in sync before today’s 14:17 turn on. (There are issues with initial states that may be in play here.)
What’s the target expectation for a case like this?
Also, in looking into this, I noticed that the gateway itself is configured for ‘Europe/London’ timezone. That shouldn’t make a difference, but did surprise me (At least it’s a real time zone, and not “Cupertino”!)