Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## Ping internet
- - binary_sensor:
- - name: "Etat de la connexion internet"
- device_class: connectivity
- unique_id: 3db54aa8-eff8-451d-80b4-7954043ec877
- delay_off: "00:01:00"
- state: >
- {% if is_state("binary_sensor.ping_google", "on") and is_state("binary_sensor.ping_free", "on") %}
- on
- {% else %}
- off
- {% endif %}
- icon: >
- {% if is_state("binary_sensor.is_internet_connection_ok", "off") %}
- mdi:mdi-lan-disconnect
- {% else %}
- mdi:lan-connect
- {% endif %}
Advertisement
Add Comment
Please, Sign In to add comment