Correct me if I’m wrong, but you’re turning off HA every night and starting the container again at 5:10 AM?
If so, HA may not be fully operational in 15 minutes. Some of my restarts take longer than that to fully load.
I thought the same thing, but I did some experiments and I don’t think that’s the problem. Last night I woke the NAS at 5:00 am, and still light related automations before 6:00 am didn’t trigger.
On my logbook, OpenWeatherMap Forecast Time changed at 5:01 AM Internet Time changed at 5:13 am for the first time.
But the first light automation run at 6:02am. The ones that I have scheduled between 5:22 and 5:58 didn’t run.
During the day I tried to send the NAS to sleep, and then wake it up 20 mins later. I found that in this case, HA gets up and running automatons in one minute.