I just started using Ping ICMP to track online/offline status of devices by IP. I noticed in the device/sensor/settings/show as that there is multiple types. I have only been able to get it do one sensor show as for a device. Is there anyway to get it to show multiple show as like Connectivity and Battery for the same IP device? I think I’ve seen other people be able to do it, but I can’t figure it out. This way we can have multiple entities on a dashboard entities card? Thanks
Ping is a network utility and can not get battery or other values in that way.
You need the values in other ways and then it is just finding a card that will show them like you want, which should be possible, because there are so many different cards available.
Besides that then ping can also be causing issues with especially battery devices that can not go to deep sleep and there drain the battery.
Often a better way is to use an ARP lookup on your router, especially if your router allows you to set the stale timeout, so you can decide when a device is offline.
ARP tables are a passively generated list, that many network devices make, based on the communication the devices themself send out on the network.
Oh I assumed it could be pinged for other states as they are in the drop down like Connectivity, Battery, Battery Charging etc…Right now I’m just using it for connection status to show it’s still connected as this the only way I have found so far. ARP lookup on router? Unfortunately my TP-Link Router doesn’t show devices connected in HA, so I’m using Ping basically to see if things are still connected and automate a notification if they are not connected. Like I found I can actually ping Google Nest Protect Smoke Alarms through Ping to see if they are still connected.
It might be that the integration use other ways of determine those values.
Ping is just a tool to get a round trip time to another network device.
And ARP lookups does not show HA connections, but network presence.
That means, of course, that a device can be online, but not connected to HA.
Often the case is that when it is not connected to HA, then it is because it is not present on the network anymore.
Hmm interesting, thanks