Hey all,
I have the following automation that I feel like I’m missing something simple with.
trigger:
- platform: state
entity_id: input_select.lighting
to: normal
action:
- if:
- condition: template
value_template: "{{ trigger.from_state.state }} == ‘off’”
then:
… do stuff…
else:
… do other stuff…
The if
statement is always false. Even if the previous state of the select was “off”.
Is there a different way this trigger variable is supposed to be used?
Any input would be greatly appreciated!