Home Assistant release with the issue:
0.86.1
Last working Home Assistant release (if known):
0.85.1
Operating environment (Hass.io/Docker/Windows/etc.):
Docker
Component/platform:
Light/Hue
Description of problem:
Since upgrading to 0.86.1, my logs are full of messages containing:
Can not get color gamut of light "Light Name"
11:54 AM components/hue/light.py (WARNING)
Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):
hue:
bridges:
- host: 192.168.1.16
allow_hue_groups: false
allow_unreachable: true
Additional Information
Not been able to confirm just yet, but this may just be warnings against my Ikea Tradfri bulbs, connected to the Hue hub, rather than the official hue bulbs.
I have the same messages but only for some lights:
The Philips Hue color bulbs don't have this message. All the lights are connected to my Hue bridge v2.
Same error on all lights, but I only have white bulbs. It seems it is assuming all lights have color settings. [Update: Only get the error on restart]
Same for me as well. I have a combination of Philips Hue and Ikea tradfri.
Same for me, all my hue not are not rgb and got this message after latest update.
This is also on 0.86.0, not just 0.86.1.
Same here too
Same error on 0.86.1 on a docker install.
i have this same error on both white and colored hue bulbs on 0.86.1.
version 1 hue bridge if that matters.
Same here!
all appear on non colour lights
2019-01-24 18:25:19 WARNING (MainThread) [homeassistant.components.hue.light] Can not get color gamut of light "Landing light"
2019-01-24 18:25:19 WARNING (MainThread) [homeassistant.components.hue.light] Can not get color gamut of light "Hall light"
2019-01-24 18:25:19 WARNING (MainThread) [homeassistant.components.hue.light] Can not get color gamut of light "Kitchen 1"
2019-01-24 18:25:19 WARNING (MainThread) [homeassistant.components.hue.light] Can not get color gamut of light "Kitchen 2"
2019-01-24 18:25:19 WARNING (MainThread) [homeassistant.components.hue.light] Can not get color gamut of light "Kitchen 3"
2019-01-24 18:25:19 WARNING (MainThread) [homeassistant.components.hue.light] Can not get color gamut of light "Utility light"
2019-01-24 18:25:19 WARNING (MainThread) [homeassistant.components.hue.light] Can not get color gamut of light "Dining room light"
2019-01-24 18:25:19 WARNING (MainThread) [homeassistant.components.hue.light] Can not get color gamut of light "Master bedroom light"
same here
same here
Et moi.
Same
This is due to #20118 so let's tag @starkillerOG
For what it's worth, the warning appears to be harmless.
I get this error for all my hue lights, color and white. And because of that i get "Entity not available" on the dashboard for all these lights.

Alright, sorry this is my fault, I made some code to get the color gamut of hue bulbs and use that color gamut to inprove color aquaracy of those bulbs when beeing controlled by HomeAssistant.
I only have Hue Living Color lights and Hue color bulbs, so I could not test with any other bulbs.
Do not be concerned about this warning, it just means that the new code for color gamut correction will not be applied to that light. It will function exactly as it has been functioning before this upgrade. The warning is just meant to inform you that the color gamut corrections can not be applied for that specific light.
There are three ways of resolving this issue:
1) just change this warning to a debug message rather than a warning, (since this is not essential)
2) remove the warning all together
3) keep the warning, but check for the "manufacturername" == "Philips" from the hue bridge before issuing this warning. and also check if a philips light bulb is color or not, but I do not see where you can get this information from the Hue API: https://developers.meethue.com/develop/hue-api/lights-api/
@amelchio which of the 3 solutions do you prefer?
Then I will make a PR to fix this.
@starkillerOG I think it's fine to just remove the warning.
@paxxil it is verry unlikely the color gamut could cause the "Entity not available", this is very likely an second unrelated issue to the "Can not get color gamut of light" warning.
Actually the new color gamut code is general and applies to all lights in HomeAssistant, however all lights except the hue platform supply gamut = None in the color util.
When you see the "Can not get color gamut of light" warning it will mean the gamut will be set to "None" and therefore the color conversions will work just like all other light platforms of homeassistant
@amelchio alright, will make a PR in a second
@starkillerOG Ok thanks for the explanation, but I got Entity not available warning after I updated homeassistant to the new version. I thought it is related with this error in the log.
@paxxil what kind of lights do you have, are they official hue lights?
@starkillerOG eh... forget it, it was my stupid mistake. Everything is ok. These entities were Hue group entities which I disabled in configuration yesterday (allow_hue_groups: false), but have not reloaded homeassistant til I have upgraded it today. Sorry about that :)
@Paxxil no problem, just glad you got the issue sorted out.
I already thought it would be something unrelated.
Most helpful comment
Same error on all lights, but I only have white bulbs. It seems it is assuming all lights have color settings. [Update: Only get the error on restart]