node red
Light node
Add node for light
Insert value and split from payload
Whit parseInt parseInt will take the first number in the payload and store it var output = msg....
store value in flow
[{"id": "23f23ed.59af2c2","type": "switch","z": "d2b0b2fb.dc997","name": "","property": "parts.in...
insert value in payload
var R = msg.payload //value from external payloadpayload msg.payload ={ "rgb": R //"name":valu...