Ping (ICMP) Binary sensor


The ping binary sensor platform allows you to using 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 configuration.yaml file:

# Example configuration.yaml entry
binary_sensor:
  - platform: ping
    host: 192.168.0.1

Configuration variables:

  • host (Required): The IP address or hostname of the system you want to track.
  • count (Optional): Number of packets to send. Defaults to 5.
  • name (Optional): Let you overwrite the name of the device. Defaults to Ping Binary sensor.

The sensor exposes the different round trip times values measured by ping as attributes:

  • round trip time mdev
  • round trip time avg
  • round trip time min
  • round trip time max

When run on Windows systems, the round trip time attributes are rounded to the nearest millisecond and the mdev value is unavailable.