Identify color of hue light and set other lights to this color by automation

I would like to identify color of a hue light and set other lights to this color by automation.

You should be able to get the colour, then add it to a template, then call that from the automation, I don’t use Hue, but on mine if I do this in templates…

{{ state_attr('light.the_lights_I_want', 'rgb_color')}}

I get the current colour.

2 Likes