How to get notification on Power failure or restore?

How about something like this