Detect power out on plug?

Good idea … I was going to look into hacking a solution doing something similar using an esp8266 arduino with a rechargeable battery (more work than your implementation). If the detection of the device going OFFLINE doesn’t work out, I might give yours a try.

Looks like there is already an app (Device Monitor) that will monitor selected devices and notify if they go offline. I’ll try it out and see how it works.