I have a simple template:
{% if states("sensor.ute_norr_temperature")| float < -10 %}
{{ 150 }}
{% elif states("sensor.ute_norr_temperature")| float < -8 %}
{{ 120 }}
{% elif states("sensor.ute_norr_temperature")| float < -5 %}
{{ 90 }}
{% elif states("sensor.ute_norr_temperature")| float < -3 %}
{{ 60 }}
{% elif states("sensor.ute_norr_temperature")| float < -2 %}
{{ 45 }}
{% elif states("sensor.ute_norr_temperature")| float < 3 %}
{{ 30 }}
{% else %}
{{ 0 }}
{% endif %}
It works with the template tool.
But when I create a Number Template Helper, ther result of the helper is Unknown
{{ states("number.car_preset") }}
I can’t figure out what’s wrong, the temperature has changed and it says it is dependent of the sensor…
Am I blind or missing something?