Page 1 of 1

switch LSC RGBWW lamp between different colors fails

Posted: Friday 28 October 2022 16:13
by Gravityz
Hello,

i am trying to switch an LSC(Tuya) RGBWW lamp from 1 color(red) to the other(WW) and back.
the light is of type color switch RGBWW dimmer in domoticz
after a lot of trial and error i succeeded

the reason that it took such a long time is that i discovered that the brightness setting on the WW command directly affects the color on the red command

Command for RED

Code: Select all

domoticz.devices('Douche').setColor(255,0,0,55,0,100,3,255)
Command for WW

Code: Select all

domoticz.devices('Douche').setColor(0,0,0,55,0,100,2,255)
as long as i keep the brightness settings on both commands the same(50 in this case) it works and i can toggle between those 2 commands

if i either make the first brightness higher or the second one it fails and the light either blinks shortly which and turns to red again or the other way around.

what i want is very simple

switch the light to red with 80% brightness and back to WW with 55% brightness

can anybody see what is going wrong.

Re: switch LSC RGBWW lamp between different colors fails

Posted: Monday 31 October 2022 13:45
by waltervl
Perhaps set the lamp in white mode first with .setWhiteMode()
Or find the rgb setting for warmwhite (eg 253, 244, 220) so no switching of mode.