Missing something with trigger.from_state.state

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!

value_template: "{{ trigger.from_state.state == 'off' }}"

Ahh, works great! I knew it was something simple.

Thanks!