switch LSC RGBWW lamp between different colors fails

Easy to use, 100% Lua-based event scripting framework.

Moderator: leecollings

Post Reply
Gravityz
Posts: 652
Joined: Wednesday 16 December 2015 19:13
Target OS: NAS (Synology & others)
Domoticz version: 2025.1
Location: Netherlands
Contact:

switch LSC RGBWW lamp between different colors fails

Post 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.
User avatar
waltervl
Posts: 6691
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2025.1
Location: NL
Contact:

Re: switch LSC RGBWW lamp between different colors fails

Post 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.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest