Power restoration notification?

I am looking for a solution with a smart plug on a different power circuit to notify my hub when the power is restored and send out a notification.

I am trying to monitor a pump that is on a seperate power source.

Our hub is on a ups so if there is a power failure our generator will cover the outage, and I want to know when power is restored either by an action on our hub or a text notification to my Android or iphone

This solution works for me. I use a monoprice door contact in conjunction.