Setting the value of a text helper through the light colour wheel

I have a text input helper that is a simple string of three comma separated numeric values:

image

I use these to set the colour of some RGB lights, and in the automation, I simply use split to get each value from the text helper:

      - service: light.turn_on
        data:
          brightness_pct: 100
          rgb_color:
            - "{{states('input_text.kitchen_leds_final_colour').split(',')[0]}}"
            - "{{states('input_text.kitchen_leds_final_colour').split(',')[1]}}"
            - "{{states('input_text.kitchen_leds_final_colour').split(',')[2]}}"
          transition: 1
        target:
          entity_id: light.kitchen_light_group

This works fine, but it would be great to be able to set the helper value using the light colour wheel in the UI, is this possible ?

Hi, you should be able to read the state from the developer tools → states.
So selecting a certain color would change those values and make it possible to write them to a helper.

I think I have figured it out using either a light template or a virtual entity.