2.6 KiB
title, description, ha_category, ha_release, ha_iot_class, ha_quality_scale, ha_domain, ha_platforms, ha_integration_type, ha_config_flow, ha_codeowners
title | description | ha_category | ha_release | ha_iot_class | ha_quality_scale | ha_domain | ha_platforms | ha_integration_type | ha_config_flow | ha_codeowners | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Ping (ICMP) | Instructions on how to integrate Ping (ICMP)-based into Home Assistant. |
|
0.43 | Local Polling | internal | ping |
|
integration | true |
|
There is currently support for the following device types within Home Assistant:
{% include integrations/config_flow.md %}
Polling interval
By default, the integration will ping the device every 5 minutes. If you wish to do a ping more frequently, you can disable the automatic refresh in the integration's system options (Enable polling for updates) and create your own automation with your desired frequency.
For more detailed steps on how to define a custom interval, follow the procedure below.
Defining a custom polling interval
{% include common-tasks/define_custom_polling.md %}
Binary sensor
The 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.
This sensor is enabled by default. The default polling interval is 5 minutes.
The sensor exposes the different round trip times in milliseconds measured by ping
as attributes:
round_trip_time_mdev
round_trip_time_avg
round_trip_time_min
round_trip_time_max
Presence detection
The 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.
The device tracker is disabled by default and can be enabled in the UI.
See the person integration page for instructions on how to configure the people to be tracked.