-
-
Notifications
You must be signed in to change notification settings - Fork 33.8k
IKEA Tradfri RGB - No color picker #9603
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Your code change supported_features from 3 to 17 which is ok. I haven't found a solution for this yet. |
My guess is, the polymer interface decides on its own (not based on the detected features in pytradfri) to only show the color picker if there is any data in the coap parameter 5706 (like "5706":"efd275"). As stated by @mories76, this is only the case after setting one of the predefined rgb colors via coap parameter 5706 (set_hex_color() with predefined rgb color in pytradfri). If set_rgb_color() is used to set a user defined color the data in 5706 will be "0" and no color picker is displayed. Unfortunately, I can't find the section in polymer where the decision is made. |
Added feature detection (SUPPORT_RGB_COLOR) for IKEA tradfri RGB bulbs. String comparison with manufacturer/device id used because I think there isn't a suitable property/param to identify the RGB capability. Both IKEA WS and RGB have data in the same parameters (x, y, rgb). Color picker in UI is only offered after one of the default RGB colors (i.e. efd275) is set in param 5706. For now I couldn't find the section in polymer where the decision (to show a color picker or not) is made. see also: <home-assistant#9603>
Maybe we should change pytradfri behaviour, so that it sets 5706 argument basing on existing x and y? |
Doesn't seem like an interface issue; based on my quick testing (just got one), the bulb itself only seems to accept pre-defined color codes, when PUT'ing with |
Fix is on the way (-: |
It's probably the gateway which simply does not pass any rgb/hex values in param 5706 to the bulb which arent't one of the ~20 predefined ones. I think @matemaciek suggested to modify pytradfri to calculate the current rgb values from the current xy values and report rgb to i.e. HA (although the GW reports rgb "0"). |
@matemaciek has applied some color vodoo to the pytradfri-lib and this magic is available in version 3.0.1 :) |
#9703 fixes it (-: |
I will close this issue as it is reported to be fixed. |
IKEA has now released their RGB lamp, but I don't get a color picker in the front end. It seems like the only difference between the RGB lamp and the one with color temp is the name.
Dump of RGB lamp with pytradfri
Dump of color temp light with pytradfri
I changed
to
in the file /components/light/tradfri.py, but I dont know if this is the correct solution.
The text was updated successfully, but these errors were encountered: