Network devices status in HA

Hello,

I want to have in the HA-Dashboard all my network devices status like:

Computer1: Running
Computer2: Down
Printer: Running
HA-Server: Running
FileServer: Running
etc…

How can I do something like this? There is any HA’s feature available or any ideas?

Thank you!

1 Like

Sounds like you want a group of sensors.

The sensors would be binary sensors with type connectivity.

What binary sensor depends on how you will ascertain the running or down status of the devices. Ping via command line? Device_tracker? something else - depends on your usage case.

Hi,

as phileep already suggested, use a binary sensor, i am working with the ping component

Works perfect for me.

nmap or ping device trackers will track the status of your devices as noted above.

If you want to change the output from home/not_home to online/offline or running/not running see below

1 Like

Very helpful! Thank you very much! This is what I want.

I just implemented this last night.

I used the ping binary_sensor and added a sensor template to change the output for “online” or offline. The sensor template (not binary_sensor template!!) also supports different icons - for example mdi:server-network if it’s online and mdi:server-network-off when offline.

How can I change the icons by its state?

Just use the icon_template option:

icon_template: '{% if is_state("sun.sun", "above_horizon") %}mdi:weather-sunny{% else %}mdi:weather-night{% endif %}'

More info here.

2 Likes