A condition in my automation gives errors and I cannot understand what is wrong with it.
condition: template
value_template: >-
{{(states('sensor.maxtemp24h') | float -
states('input_number.some_variabele') | float)>0}}
My intention was to only do the action part if sensor.max24h minus input_number.some_variable is greater than 0.
Whenever I put in the jinja template in the template section of the developer tools I get a true as a outcome. So in my opinion this should work…
The error I get is :
Error occurred while testing condition
template value should be a string for dictionary value @ data['value_template']. Got None
Any ideas ?
5 posts - 3 participants