Xy_color from input_text in scene

I have a lot of scenes running with different dim levels that are controlled by the ha switch plate.
There are also some RGB led strip with it.
Now i made a remote control to control the color of the led strips with esp home.
I was able to get the xy_color value to a input_text.color sensor.
So the state of input_text.color is [0.312,0.127] and this can be changed with the remote.

I have this in a scene.

  light.dressoir_led_strip:
    state: On
    brightness: 250 
    xy_color: [0.142,0.073]

Now i would like that the color part in the scene is changed by the input_text.color.
I have tried all different thing with data and templates but i can not figure out the correct way to do this.

Does anyone know how to do this?

I don’t use scenes, but per the docs it doesn’t appear to support templates. So you probably need to move the turn_on service call to a script, and then either turn on the script instead of the scene, or turn on the script from a scene.

script:
  dressoir_led_strip:
    sequence:
      service: light.turn_on
      data_template:
        entity_id: light.dressoir_led_strip
        brightness: 250
        xy_color:
          - "{{ states('input_text.color').split(',')[0][1:] }}"
          - "{{ states('input_text.color').split(',')[1][:-1] }}"