[RELEASE] Internet connection monitor

I created a driver exposing a presence sensor indicating whether the internet connection is up or down:

Hubitat Internet Connection Monitor

I've seen a number of sensor based on HTTP requests, pinging hosts, and I wanted all of it, with flexibility. Here's the description of the logic:

Checks

A series of HTTP requests are attempted, and then a series of pings. As soon as one check is successful, the connection is detected as up.

The list of URLs and hosts are configurable and rotated after each test.

Check loop

When the connection is up, tests are run every 5 minutes (configurable). When it's down, they're run every minute (also configurable).

If you find any issues, please feel free to log them on GitHub.

9 Likes

Nice! Always good to have an alternative. For this purpose, I've been using the built-in Hubitat Ping device driver for several years to good effect. Each of its child devices can act as a Presence Sensor, in the same way as your ICM is intended to do.

Excellent contribution, thanks!

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.