Using the RGB color picker

Python and python framework

Moderator: leecollings

Post Reply
moroen
Posts: 408
Joined: Sunday 15 January 2017 11:06
Target OS: Linux
Domoticz version: beta
Location: Norway
Contact:

Using the RGB color picker

Post 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
User avatar
Dnpwwo
Posts: 820
Joined: Sunday 23 March 2014 9:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Melbourne, Australia
Contact:

Re: Using the RGB color picker

Post 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:
The reasonable man adapts himself to the world; the unreasonable one persists to adapt the world to himself. Therefore all progress depends on the unreasonable man. George Bernard Shaw
miroslavpetrov
Posts: 33
Joined: Wednesday 03 February 2016 13:35
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Using the RGB color picker

Post 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.
Automation Hardware:
Domoticz on Raspberry Pi 3 with HomeBridge.
Zigbee2MQTT + Xiaomi sensors
Fibaro HomeCenter 2 + Fibaro Dimmer2 & Double Switch2 + Aeon Multisensor 6 + Remotec ZXT-120
Eastron SDM230
elgringo
Posts: 96
Joined: Thursday 18 May 2017 8:08
Target OS: Raspberry Pi / ODroid
Domoticz version: Left
Contact:

Re: Using the RGB color picker

Post by elgringo »

I was wondering if you got the RGB colorpicker to work with a python plugin.
poudenes
Posts: 667
Joined: Wednesday 08 March 2017 9:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: Using the RGB color picker

Post 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
RPi3 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest