Hi all
I’m trying to set two RGB controllers using Node Red, I want to copy the colour from unit one to unit two so they match.
I’m trying an action node and this JSONata…
{
"xy_color": data.attributes.xy_color[0]. data.attributes.xy_color[1],
"brightness": data.attributes.brightness
}
but it’s not copying the color although i do not get any error.
It seems the controllers use two modes:- color_temp & xy so i’ve added a switch inline to choose if i need to set “color_temp” or “xy_color”, color_temp works fine but not so with XY which uses a two part array.
Any ideas how to simply read one controller and set the other to match?
Many thanks