Never fires

Trying to go from simple on|off lights to complex scene activation. As i have fibaro dimmer 2s decided to use it’s functionality. But actually the problem is somewhere in the code below
So what i want to do is when there is a single click for the rule to check what’s the input select state. And if light is on - turn the input select to on. If light is off - that turn the input select to off. I have checked the template in /dev-template and it works. But in real life input_select doesn’t switch. No errors in logs so must be logic somewhere or a typo i don’t see :frowning:

- alias: Zal Light small sclick
  initial_state: 'on'
  trigger:
    platform: event
    event_type: zwave.scene_activated
    event_data:
      entity_id: zwave.zwave_zal_small
      scene_id: 16
  action:
  - service: input_select.select_option
    data_template:
      entity_id: input_select.zal_light
      option: >
        {% if is_state("input_select.zal_light", "Small") %}
          "Off"
        {% else %}
          "Small"
        {% endif %}

P.S couldn’t find delete button… The error are the quotes. Should be

           Off 
        {% else %}
           Small 
        {% endif %}