Jon_Miles
(Jon Miles)
October 4, 2020, 12:04pm
1
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
Hellis81
(Hellis81)
October 4, 2020, 12:59pm
2
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
Jon_Miles
(Jon Miles)
October 4, 2020, 1:10pm
3
only because the mimic light is also used for other automation and indications, so I need to keep them separate.
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.