I need to build 'something' that will alert me if power goes out at one of remote buildings. I figure that this is going to require an agent (ESP8266 probably) that sends a message or ping on a set interval, lets say 1 minute, to a cloud service like IFTTT. If the cloud service fails to receive a set number in a consecutive pattern, it sends an email or notification through Telegram or Pushover etc.
I figured that webhooks might be the way to go but I need a 'reverse' trigger where the trigger fires when the webhook DOES NOT get received rather than when it does.
I thought about having a system where the agent is powered from backup power but if power goes out, so does the network which prevents the notification. I'm OK with false positives where network goes out (triggering a notification) but power stays on.
Any ideas or suggestions are welcome. I looked at the other examples but they seem to be based on local alarms or SMS, neither of which are a workable solution for me.