There is currently support for the following device types within Home Assistant:
ping binary sensor platform allows you to use
ping to send ICMP echo requests. This way you can check if a given host is online and determine the round trip times from your Home Assistant instance to that system.
To use this sensor in your installation, add the following to your
# Example configuration.yaml entry binary_sensor: - platform: ping host: 192.168.0.1
The sensor exposes the different round trip times in milliseconds measured by
ping as attributes:
The default polling interval is 5 minutes. As many integrations based on the entity class, it is possible to overwrite this scan interval by specifying a
scan_interval configuration key (value in seconds). In the example below we setup the
ping binary sensor to poll the device every 30 seconds.
# Example configuration.yaml entry to ping host 192.168.0.1 with 2 packets every 30 seconds. binary_sensor: - platform: ping host: 192.168.0.1 name: "device name" count: 2 scan_interval: 30
ping device tracker platform offers presence detection by using
ping to send ICMP echo requests. This can be useful when devices are running a firewall and are blocking UDP or TCP packets but responding to ICMP requests (like Android phones). This tracker doesn’t need to know the MAC address since the host can be on a different subnet. This makes this an option to detect hosts on a different subnet when
nmap or other solutions don’t work since
arp doesn’t work.
To use this presence detection in your installation, add the following to your
# Example configuration.yaml entry device_tracker: - platform: ping hosts: device_name_1: 192.168.2.10
Map of device names and their corresponding IP address or hostname. Device names must conform to the standard requirements of lower case, numbers and underscore only - see entity names.
See the person integration page for instructions on how to configure the people to be tracked.