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

Template lower then problem

$
0
0

Hi All,

sensor.livingroom_lux have state 11726.0

“{{ states(‘sensor.livingroom_lux’) > ‘100’ and states(‘sensor.livingroom_lux’) < ‘220’ }}”

result: TRUE

That is not correct because yes its bigger then 100 but not lower then 220

What do I not see at this simple template line?

Want replace:

  condition: numeric_state
  entity_id: sensor.livingroom_lux
  above: 100
  below: 220

to

  condition: "{{ states('sensor.livingroom_lux') > '100' and states('sensor.livingroom_lux') < '220' }}"

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 103351

Trending Articles



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