Cleaned up a LOT of templates

This commit is contained in:
2023-04-03 23:47:25 -04:00
parent cb52daa5d8
commit 7c3a32e17b
11 changed files with 46 additions and 276 deletions

View File

@ -56,34 +56,19 @@ sensor:
friendly_name: "Min Ping"
unique_id: ddcb9f6f-7c94-41fe-9453-2a2205b078e0
value_template: "{{ state_attr('binary_sensor.internet','round_trip_time_min') }}"
availability_template: >-
{% if is_state('binary_sensor.internet','on') %}
true
{% else %}
false
{% endif %}
availability_template: "{{ is_state('binary_sensor.internet','on') }}"
unit_of_measurement: "ms"
avg_ping:
friendly_name: "Avg Ping"
unique_id: 79a13c64-7508-48de-8b44-2a23c59917c8
value_template: "{{ state_attr('binary_sensor.internet','round_trip_time_avg') }}"
availability_template: >-
{% if is_state('binary_sensor.internet','on') %}
true
{% else %}
false
{% endif %}
availability_template: "{{ is_state('binary_sensor.internet','on') }}"
unit_of_measurement: "ms"
max_ping:
friendly_name: "Max Ping"
unique_id: c9c71ab6-c7fa-4425-a4ed-768d60e93781
value_template: "{{ state_attr('binary_sensor.internet','round_trip_time_max') }}"
availability_template: >-
{% if is_state('binary_sensor.internet','on') %}
true
{% else %}
false
{% endif %}
availability_template: "{{ is_state('binary_sensor.internet','on') }}"
unit_of_measurement: "ms"
mqtt: