Send notification if and when a network device loses connectivity

Tags: #<Tag:0x00007fc3fb05a5c0>

This blueprint monitors a group of network devices and sends a notification message to a specified mobile app if and when a device from the group loses network connectivity.

Get started

Click the badge to import this Blueprint: (needs Home Assistant Core 2021.3 or higher)

Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.

Or import this Blueprint by using the forum topic / Gist URL:

The devices to be monitored are organised in a group, e.g. like this (in groups.yaml):

servers:
  name: server connectivity
  all: true
  entities:
    - binary_sensor.abc
    - binary_sensor.xyz

In turn, these binary sensors are configured to use the “ping” platform (in configuration.yaml):

# Binary sensors
binary_sensor:
  - platform: ping
    name: abc
    host: aa.bb.cc.dd
  - platform: ping
    name: xyz
    host: ww.xx.yy.zz

Replace “abc”, “xyz” and “aa.bb.cc.dd”, “ww.xx.yy.zz”, respectively, with the names and hostnames/IP addresses of your network devices to be monitored.

5 Likes

Maybe it’s better to put the blueprint on Github Gist, then you can also add a my button on your topic :wink:

Ok, thanks. Done!

I’ve updated your topic and I will include your blueprint in the community highlight :smiley:

What´s the advantage of this blueprint compared to a manual automation when having network devices already available as device_tracker entities e. g. by router integration (so not based on ping sensors)?

Don´t all those ping sensors put additional (but of course minimal) traffic to the network and devices?

Anyway I guess nice and pretty helpful especially for beginners without any existing “network monitoring system”.

It’s useful when you want to monitor network devices as a group, and you may have several of such groups, and you can’t or don’t want to use your router integration for this purpose. Sure, you can create manual automations, but then you can then do that for any blueprint.

Not all of the network devices are tracked by a router - some of these are remote devices outside your home network. And, yes, sure, additional pinging causes additional network traffic, but that’s rather minimal.

And, yes, this is meant as a quick-and-dirty solution to the network device tracking problem, which doesn’t require anything else.