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?