Last active
February 9, 2022 01:58
-
-
Save hartmann-lars/5e5864cf7a1c7e416143b08be0b84110 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Following is the configuration for adding WAN UPNP and binary Ping sensors along with uptime cards. | |
# Using default History settings and no sensor_templates. | |
# Every option to tweak it. | |
# Please note it might not be the correct ethical nor technical choice pinging Googles DNS. | |
# configuration.yaml binary_sensors for ping | |
# NB: Update core if you don't see them after adding them | |
binary_sensor: | |
- platform: ping | |
host: 8.8.8.8 | |
name: google.com | |
count: 3 | |
scan_interval: 5 | |
- platform: ping | |
host: <your-gateway> | |
name: my_router | |
count: 3 | |
scan_interval: 5 | |
# Lovelace cards based on https://github.com/dylandoamaral/uptime-card | |
# Internet | |
type: custom:uptime-card | |
entity: binary_sensor.<your-entity>_wan_status | |
hours_to_show: 48 | |
bar: | |
amount: 48 | |
title_template: Internet | |
# Google Ping | |
type: custom:uptime-card | |
hours_to_show: 48 | |
entity: binary_sensor.google_com | |
bar: | |
amount: 48 | |
title_template: Google Ping | |
# Router ping | |
type: custom:uptime-card | |
hours_to_show: 48 | |
bar: | |
amount: 48 | |
entity: binary_sensor.my_router | |
title_template: Router Ping | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment