[Solved] Load scene from input_select just activating one scene

Hi all,

I’m trying to create a script which will go through a list of scene names (input_select). Every time the script is run it selects the next in the list and activates it. However only one of these scenes is applied in the real world. The scenes work (starting them generates the desired color for the light). Whatever I do only when the script hits oprit_voordeur_color_darkgoldenrod it is actually applied. Can someone please help me getting this to work?

scenes.yaml:

- id: '1624265630317'
  name: oprit_voordeur_color_homeassistant
  entities:
    light.oprit_voordeur:
      effect_list:
      - blink
      - breathe
      - okay
      - channel_change
      - finish_effect
      - stop_effect
      supported_color_modes:
      - xy
      color_mode: xy
      brightness: 253
      hs_color:
      - 198.554
      - 97.647
      rgb_color:
      - 6
      - 178
      - 255
      xy_color:
      - 0.145
      - 0.215
      color:
        x: 0.145
        y: 0.215
      linkquality: 63
      state: 'on'
      update:
        state: idle
      update_available: false
      friendly_name: Oprit Voordeur
      supported_features: 61
- id: '1624265741778'
  name: oprit_voordeur_color_blueviolet
  entities:
    light.oprit_voordeur:
      effect_list:
      - blink
      - breathe
      - okay
      - channel_change
      - finish_effect
      - stop_effect
      supported_color_modes:
      - xy
      color_mode: xy
      brightness: 252
      hs_color:
      - 270.9
      - 78.431
      rgb_color:
      - 158
      - 55
      - 255
      xy_color:
      - 0.252
      - 0.106
      color:
        x: 0.252
        y: 0.106
      linkquality: 63
      state: 'on'
      update:
        state: idle
      update_available: false
      friendly_name: Oprit Voordeur
      supported_features: 61
- id: '1624265801613'
  name: oprit_voordeur_color_darkgoldenrod
  entities:
    light.oprit_voordeur:
      effect_list:
      - blink
      - breathe
      - okay
      - channel_change
      - finish_effect
      - stop_effect
      supported_color_modes:
      - xy
      color_mode: xy
      brightness: 253
      hs_color:
      - 42.638
      - 92.157
      rgb_color:
      - 255
      - 187
      - 20
      xy_color:
      - 0.53
      - 0.44
      color:
        x: 0.53
        y: 0.44
      linkquality: 72
      state: 'on'
      update:
        state: idle
      update_available: false
      friendly_name: Oprit Voordeur
      supported_features: 61

scripts.yaml (notification is to verify the list is actually cycled)

alias: TEST Loop Through Scenes
sequence:
  - service: input_select.select_next
    target:
      entity_id: input_select.oprit_voordeur_color
  - service: scene.turn_on
    data_template:
      entity_id: scene.{{ states ('input_select.oprit_voordeur_color') }}
  - service: persistent_notification.create
    data_template:
      title: scene.{{ states ('input_select.oprit_voordeur_color') }}
      message: scene.{{ states ('input_select.oprit_voordeur_color') }}
mode: single

Fixed it by stripping the scenes to the bare minumum (state & rgb_color). Then still the other scenes wouldn’t load so I manually recreated them…