Page 1 of 1

Using the RGB color picker

Posted: Monday 30 October 2017 0:02
by moroen
I'm struggling with the RGB color picker. Creating the device is easy enough, using Type=241, SubType=1 and Switchtype=7, but the values returned in onCommand makes no sense to me. When just dumping out the values to the log I get:

Code: Select all

2017-10-29 23:23:57.344  (IKEA) RGB - Command: Set Color Level: 214 Hue: -1
2017-10-29 23:23:57.450  (IKEA) RGB - Command: Set Brightness Level: 62 Hue: -1
I might be missing something obvious, the information returned looks like HSV-color, but as Hue always is -1 one vital component is missing?

Any help or pointers would be greatly appreciated!

Regards,
M

Re: Using the RGB color picker

Posted: Tuesday 31 October 2017 9:51
by Dnpwwo
@moroen,

I can't speak for how the colour picker works but from a Python Framework perspective I believe I just past the supplied values straight through to the plugin. You may well be the first to use it though so no guarantees! :shock:

Re: Using the RGB color picker

Posted: Tuesday 31 October 2017 11:15
by miroslavpetrov
@moreon

I am also looking for a solution to use the color picker in a lua or python script. However, from what I've read in the forum so far, it is impossible due to limitations in Domoticz.

Re: Using the RGB color picker

Posted: Monday 28 May 2018 19:19
by elgringo
I was wondering if you got the RGB colorpicker to work with a python plugin.

Re: Using the RGB color picker

Posted: Monday 28 May 2018 19:45
by poudenes
miroslavpetrov wrote: Tuesday 31 October 2017 11:15 @moreon

I am also looking for a solution to use the color picker in a lua or python script. However, from what I've read in the forum so far, it is impossible due to limitations in Domoticz.
I use dzVents and this command:

domoticz.devices(livingroom).setRGB(255, 255, 255) to set a color to a bulb