I have a text input helper that is a simple string of three comma separated numeric values:
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 ?