Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 103318

Automation: template value should be a string for dictionary value @ data['value_template']. Got None

$
0
0

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

Read full topic


Viewing all articles
Browse latest Browse all 103318

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>