{{ states('binary_sensor.test_sensor') }} #resolves to false
{{ states('input_boolean.test_boolean') }} #is set to true/on
Why does the following resolve to false?
{{ states('binary_sensor.test_sensor') or states('input_boolean.test_boolean') }}
I also notice that the template listens to only the first half of the condition (ie I can swap them around and it’s listens to the new input). If I replace the or with an and, then it listens to both. And of course Demorgan’s makes this work as required but I’d prefer to use a straight or!
Edit: Actually Demogan’s doesn’t work and the template only listens to the first half again!