why doesn’t the else part of the statement below work anymore? It used to show 0 but now it shows the latest value it had when “sensor.varmeprioritering_alltid_tillganglig” had the value 20
- sensor:
- name: "Effekt varmvatten"
unit_of_measurement: W
device_class: power
state: >
{% if is_state('sensor.varmeprioritering_alltid_tillganglig', '20') %}
{{ states('sensor.instantaneous_used_power_32167')|float }}
{% else %}
0,0
{% endif %}
Now it doesn’t even understand that it is a number so it is not used in calcuations correctly and the old problem still persist where it keeps the old value.