HA Push notification with downtime summary on restore

is there a way to get HA to send my phone a push notification on HA booting back up or internet connection has been reestablished after the power goes out and/or internet goes down and when it restores connection it send a ‘outage lasted 4h 32m. network restored’ notification?

my areas been getting black outs recently and id like to know when i can come back home because the power/internet is backup… plus it would be nice to know how long these things are down.

I just got my UPS this week and will also start on this project next week.