Advice on monitoring internet connectivity in HA

Living in a rural area, South Devon, I am reliant on using a Airband point to point wireless solution for my internet. A fixed POE dish on the outside of my house points to a mast on a hill many miles away. Airband provide a Nokia Beacon 2 Wi-Fi router in the house. I have a admin login for it, but its fairly locked down by the ISP.

Generally its reliable, but we do seem to experience some slowness and potentially micro-outages.

I’m looking for a way to monitor my internet connectivity and graph it in Home Assistant.

As a minimum monitoring and graphing pings to a few DNS servers. Even better, a way to monitor bandwidth/throughput/performance on a regular basis and graph that too. (Without impacting usage)

Any suggestions or simple ideas on how this can be achieved?

I use these two:

1 Like

How do you manage to use these 2 integrations to see if devices are reachable/online?
Do you make use of yaml to make custom sensors for all the devices/websites/etc?
The documentation does not seem to tell how the custom sensors should look codewise…

I suddenly remembered I had looked at ICMP many months ago, then got waylaid with other things.

Just added a couple more pings and setup a quick dashboard to show the data:

Thats good for ping’s. It would be useful if we could run something that performs a small upload and download once every 5 mins, then provides the speed statistics.

Even better if there was data that could be got from the router, but I haven’t found anything while Googling…

You add them via the GUI.

Use the ping sensor to ping something online. It creates a binary sensor you can use to trigger an automation if it goes to the ‘off’ state.

If you set up the DNSIP sensor without any domain to check it will get your public ip address. It will go to the state unavailable when it can’t reach the internet. You can trigger an automation off that.

Do not run this 24/7. It uses a lot of data.

You’re probably better off watching the ping round trip time.

2 Likes

This, combined with the ping sensors, is probably the best I can hope for at the moment. I did look at a couple of stand-alone network monitoring tools, but too complex and time consuming to setup for what I need right now.

@tom_l - thankyou for the very fast, and useful suggestions :slight_smile:

Here is my updated dashboard for this.

1 Like