Blueuprint repeat on trigger

Hello
I’m trying to improve my bleuprint,
but for somehow repeat is not working on trigger
I use this input.

  input:
    switches:
      name: switches
      description: switches
      selector:
        entity:
          domain:
            - switch
            - light
          multiple: true

And then want to create a trigger like this

trigger_variables:
  switches: !input switches
trigger:
  - repeat:
      for_each: "{{ switches }}"
      sequence:
        - platform: state
          entity_id: "{{ repeat.item.entity }}"
          to:
            - "on"
            - "off"

but for somehow it’s not working.
I think the syntax is different then for action but I cannot find what it is.

With kind regards

Bart

it turns out switches was just a poorly chosen input name
I think it might be a key word.
but

  input:
    switch_1:
      name: switch_1
      description: switch_1
      selector:
        entity:
          domain:
            - switch
            - light
          multiple: true
trigger:
  - platform: state
    entity_id: !input switch_1
    to:
      - "on"
      - "off"

just works