node-red-contrib-zigbee
node-red-contrib-zigbee copied to clipboard
How to set the color temperature at GLEDOPTO GL-C-008 in the right way?
I got the GLEDOPTO GL-C-008 controller for an RGB + CW + WW LED strip. I can set the RGB color and the brightness, but if I want to set the color temperature the strip will fade from complett cold white to complett warm white, there is no step in between :/ I send them e.g. 100 thats total cold white and 1000 is total warm white ... 200 is even total cold ...
This is the code in set temperature
var temperature = msg.payload; var set_temperature = {payload: { "state": "ON", "brightness": 100, "color_temp": temperature, "alert": "single", "transition": 0 } }; return set_temperature;
To compare this is the code in set color:
var color_hex = msg.payload; var set_color = {payload: { "state": "ON", "color": { "hex": color_hex }, "alert": "none", "transition": 0 } }; return set_color;
Do you know any JSON example for this controller or could you tell me the right syntax?
Just a wild guess: What happens if you change "color_temp" to "ct"?
Hallo, did solve the problem in the end? Can you upload your flow? Thanks