Detect power out on plug?

I sometimes have the same problem so I did this:

1 Like