Pass array to new object

I am trying to set up a mimic light for a bedroom light.

basically if one changes colour - i need the mimic light to match that colour.

how do i pass the array rgb_color from one node to another, please?

data.new_state.attributes.rgb_color needs to then set the rgb color for the second light?

I have tried function and change nodes, but i cannot seem to get the values from the array

Thanks in advance

Isn’t it easier to just group them in Home Assistant instead?
Or is there another reason why you want this done in node red?

1 Like

only because the mimic light is also used for other automation and indications, so I need to keep them separate.

Some good thoughts in this thread: Send array into a call service node?

Grouping them in HA wouldn’t prevent you from using that light in other automations. All a group does is allow you to quickly change multiple devices at the same time. In NodeRed, you’d just use group.[group_name] where you want to change both bulbs.