Thanks Rob,
Nice, I’ll test this out.
Used this method which also works:
Good point with the above method, for testing purposes you can change the Ip to an address on the fly in the .sh script to an address which fails.
I’ve also since moved on a bit to using appdaemon, as the trigger/action monitoring method. The advantage is the countdown timer starts when the ping fails not at the start of the hour.
Other issue I’ve found with the above method using HA, on startup of HA if the state is already down, doesn’t trigger as no state change from UP to DOWN occurred.
It’s got a slight bug which I’m trying to resolve, but once resolved will share.
Rob.