If you have a first generation SmartThings motion sensor, it will send an event for power lost / restored. I’m using that with a community developed smartapp to get power failure alerts as well as turn off lights in some cases. It’s been working pretty well when it was last tested.