-
I would like to know if my router is working.
-
I would like to know if I can access the Internet.
Is there any way for HE to detect these things?
I would like to know if my router is working.
I would like to know if I can access the Internet.
Is there any way for HE to detect these things?
You can use Rule Machine to "ping" your router as well as an external site on the Internet. Then take whatever local action you'd like based on these results.
See the documentation here
You can install Hub Ping as a device and use that as well.
On HPM.
Thanks for your help. You saved me a lot of time looking for a Ping command, and how to use it.
The only issue is if your router is offline you won't get a notification on your phone because notifications use the internet. You would probably want to set up an outside ping service with strict rules that only that service (even if you use an aws instance) would be the only thing that could ping the router from the outside. Then have an email sent to you (or if the ping service supports it an sms message)
Uptime Kuma might be an option if you have an RPI sitting around...
No need to open anything to the outside. Just use https://healthchecks.io/ and have an automation on the hub call a listener at that site on a schedule. They refer to it as a 'ping', but it isn't truly a ping, it is a call to a https endpoint.
You can set parameters for how often it should expect the ping. If a ping fails, healthchecks.io initiates the notification. They have integrations for Pushover, Whatsapp, Telegram, email, and a host of other options.
The service is free for up to 20 monitors. While I have a total of 53 monitors of various types running locally using two instances of Uptime Kuma, I have just a few most critical monitors set up on hc.io...
That works too! But how does it do if the originating ip changes? Can you update it by lets say DYNDNS so it uses a canonical name?
It doesn't care about the originating IP. The https call has a unique key that identifies the monitor, e.g.
https://hc-ping.com/abcdefgh-ijkl-mnop-qrst-uvwxyz123456
As long as something calls that address within the time limits you set, the monitor is marked as healthy.
1 more shrimp for this barbie, While the hubitat app doesnt support local push notifications yet, Home Assistant does with their app and integrates well with a local uptimekuma and lots of other tools including hubitat. So, if you want to monitor local and get notified local while you are local… HA for this is worth a consideration.
This is GREAT! I just signed up with PushOver and HealthChecks. It seems like I can now do almost anything.