mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-09 10:26:52 +00:00
Ping binary sensor: Ping interval can be set (#4501)
This commit is contained in:
parent
49f53fd988
commit
1edf68ff68
@ -37,6 +37,17 @@ The sensor exposes the different round trip times values measured by `ping` as a
|
|||||||
- `round trip time min`
|
- `round trip time min`
|
||||||
- `round trip time max`
|
- `round trip time max`
|
||||||
|
|
||||||
|
The default polling interval is 5 minutes. As many components [based on the entity class](/docs/configuration/platform_options), 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 devices every 30 seconds.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
# 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
|
||||||
|
count: 2
|
||||||
|
scan_interval: 30
|
||||||
|
```
|
||||||
|
|
||||||
<p class='note'>
|
<p class='note'>
|
||||||
When run on Windows systems, the round trip time attributes are rounded to the nearest millisecond and the mdev value is unavailable.
|
When run on Windows systems, the round trip time attributes are rounded to the nearest millisecond and the mdev value is unavailable.
|
||||||
</p>
|
</p>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user