updating configuration
This commit is contained in:
@@ -11,12 +11,16 @@ template:
|
||||
device_class: water
|
||||
state_class: total_increasing
|
||||
unit_of_measurement: 'm³'
|
||||
state: "{{ states('sensor.counter_hot') | float + 88.97 | round(2) }}"
|
||||
state: >-
|
||||
{% set v = states('sensor.counter_hot') %}
|
||||
{{ ((v | float + 88.97) | round(2)) if v not in ['unavailable', 'unknown', ''] else 'unavailable' }}
|
||||
- name: counter_cold_outer
|
||||
device_class: water
|
||||
state_class: total_increasing
|
||||
unit_of_measurement: 'm³'
|
||||
state: "{{ states('sensor.counter_cold') | float + 144.7 | round(2) }}"
|
||||
state: >-
|
||||
{% set v = states('sensor.counter_cold') %}
|
||||
{{ ((v | float + 144.7) | round(2)) if v not in ['unavailable', 'unknown', ''] else 'unavailable' }}
|
||||
|
||||
binary_sensor:
|
||||
- name: dryer_running
|
||||
|
||||
Reference in New Issue
Block a user