Documentation on binary sensor for platform ping

While this works perfectly:

binary_sensor:
  - platform: ping
    name: Internet_connection
    host: 8.8.8.8
    scan_interval: 60

I wonder if this is still up to date, given that I’ve read about new syntax for sensors, and most of my other sensors are like this:

sensor:
  - platform: systemmonitor
    resources:
      - type: processor_use
      - type: processor_temperature
      - type: load_15m
      - type: disk_use_percent

I tried to search for documentation on this, but it seems I don’t search for the right terms. Could someone please point me to the correct documentation URL for the binary sensor using ping?

Binary sensor is different than sensor.
The first one holds on or off values.
The latter one holds numerical values.

Moreover, they both follow new format, nothing interesting for me. Maybe i might have missed the exact question.

*domain*:
  platform: *integration*

https://www.home-assistant.io/integrations/#search/ping

Which leads here:

https://www.home-assistant.io/integrations/ping/#binary-sensor

2 Likes