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