Startup automation didnt run?

I have a smart plug that seems to default to powered off by default, so it reverts to off after a power failure.

I set up the following automation but noticed today, after my power went out overnight that it wasn’t turned on. At first I thought it was a race condition with the device not back on the mesh yet, but it’s a 5 minute delay and I actually don’t see anything in the logs, so it would seem the automation never actually fired?

Any ideas?

Perhaps the power blip was long enough to affect the smart outlet, but short enough that the hub did not reboot?

Note: Ideally, your hub should be on a UPS to prevent damage/corruption of its internal database.

Does Hub Events in Logs show sytstemstart event that corresponds with the time of your power outage? Maybe the hub wasn't offline?

Unless my eyes are missing it, that screenshot only shows A systemstart, it isn't timestamped so we don't know if it corresponds with the outlet being offline. This rule machine variable could have been from when the hub was updated for all we know.

Do you have a device that reports mains/battery to use a better trigger for a power outage? As was mentioned, letting the hub die during a power outage can lead to corruption. I would put the hub on a UPS so it stays up, and find a better trigger for a power outage rule.

Or replace the device with one that does remember the state it was in before the power outage.