đź’ˇ Sensor Light - Motion Sensor - Door Sensor - Sun Elevation - LUX Value - Scenes - Time - Light Control - Device Tracker - Night Lights Has built-in support for dealing with Home Assistant restarts. That should cover power outages as well. You could look at the blueprint to see how it does it.
I’ll admit I haven’t tested this much as my install is on a UPS!