I have a power switch attached to my cable modem, and a script that runs every 5 minutes checking the internet connection. Sometimes, the modem gets flaky and a restart fixes it. So every 5 mins, the script checks if the cloud is reachable, and if not, it turns off the power, waits 5 secs, then turns it back on again. I want to get a notification when this happens (through FCM, which is fine for me).
The problem is, the notification is tied to the power turning back on, at which point it tries to send the notification but can't, because the internet isn't back up yet.
Is there a way to tell Domoticz to retry notifications if they fail?
- I looked around for a script that I could write that would 'tap into' notification sent event, but couldn't find anything
- I don't really want to have a delay on sending the notifications, because I use the notification system for other notifications that I want to get instantly