fix: fill percentage
This commit is contained in:
@@ -82,6 +82,6 @@ template:
|
|||||||
unit_of_measurement: "%"
|
unit_of_measurement: "%"
|
||||||
state_class: measurement
|
state_class: measurement
|
||||||
state: >
|
state: >
|
||||||
{% set sensor_offset = 290 %} {# same as above, = full tank height #}
|
{% set sensor_offset = 2090 %} {# same as above, = full tank height #}
|
||||||
{% set height = states('sensor.cistern_water_height') | float(0) %}
|
{% set height = states('sensor.cistern_water_height') | float(0) %}
|
||||||
{{ (height / sensor_offset * 100) | round(1) }}
|
{{ (height / sensor_offset * 100) | round(1) }}
|
||||||
|
|||||||
Reference in New Issue
Block a user