if I use the code below nothing happens.
Both Log output doesn't show any Color has been set.
Could someone explain what I've done wrong.
Code: Select all
color = json.dumps({
'ColorMode': 3, #mode 3: RGB
'r': 200,
'g': 255,
'b': 100
})
Domoticz.Log(str(Devices[Unit].Color))
Devices[Unit].Update(nValue=1,sValue="1", Color=str(color))
Domoticz.Log(str(Devices[Unit].Color))Code: Select all
Domoticz.Device(Name="RGBW", Unit=1, Used=1, Type=241, Subtype=1).Create()