help needed with set color on rgbw
Posted: Monday 10 February 2020 21:14
Hi all,
i need some help, i have a wifi led strip flashed with tasmota that supports rgbw. it has a rgb led and a white led.
i want to set it to only turn on the white led with a dzvents script but the script below turns the rgb leds to a blue ish white and does not turn on the white channel.
in the domoticz interface there is a seperate slider for white, see picture:

but how to control this?
the below script with rgb value does not work and i cannot seem to find any rgbw options in the dzvents wiki.
any help is greatly appreciated!
i need some help, i have a wifi led strip flashed with tasmota that supports rgbw. it has a rgb led and a white led.
i want to set it to only turn on the white led with a dzvents script but the script below turns the rgb leds to a blue ish white and does not turn on the white channel.
in the domoticz interface there is a seperate slider for white, see picture:

but how to control this?
the below script with rgb value does not work and i cannot seem to find any rgbw options in the dzvents wiki.
Code: Select all
return {
on = {
devices = {
'Knop Renske'
}
},
execute = function(dz, device)
local knop = dz.devices("Knop Renske")
local led = dz.devices("Ledstrip Renske")
if (knop.state == "Click" or knop.state == "Long Click") and led.state == "Off" then
led.switchOn()
led.dimTo(100)
led.setHex(255,255,255)
elseif (knop.state == "Click" or knop.state == "Long Click") and led.state ~= "Off" then
led.switchOff()
elseif knop.state == "Double Click" then
led.dimTo(100)
led.setHex(255,255,255)
end
end
}