Hi,
I use the node-red-contrib-tasmota to control my devices. I want to set the color of a color picker from the output of this device.
I have set my color picker to output an object. I have written a function to convert the array of numbers the tasmota nodes returns to an object that looks like the one outputed by the color picker.
let res = {
h: msg.payload[0],
s: msg.payload[1] / 100,
l: msg.payload[2] / 100
}
The hue gets set to red and lightness gets set to 0, but the color changes correctly, so the reverse way works