-
-
Notifications
You must be signed in to change notification settings - Fork 91
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
Colour Temperature Revisited... Again #814
Comments
- Changes to handling colour temperature, see #814. - First step towards implemening adaptive lighting, for now only for Hue LCT015.
Is this a beta feature? On iOS 14.2 I am still unable to do this with Gledopto lights. The temperature wheel sets an approximate white using the RGB diodes, but there is no way to control the white diodes. It works fine in Eve though. For non-Hue lights like Gledopto, will you continue to set |
You need to use the latest Homebridge Hue beta. I think Apple introduced adaptive lighting in iOS 14, but I’m not sure. I’m running 14.2. |
I updated to v0.12.1-3 beta, no dice. I always thought this was a bug with the Home app, but you're saying this is working for you now? Even if I set a shade of white using Eve, next time I adjust the color temp wheel in Home app it changes back to RGB-mixed white. |
Double-checked on my 1ID GLEDOPTO GL-C-008: setting the colour temperature from the Temperature wheel in Home now drives the CCT channels. However, Home (and Eve) revert to showing the (old) RGB colour (while the controller continues to drive the CCT channels). Neither Home nor Eve display the Color Temperature, they only display the colour based on Hue and Saturation, which are set from |
Now on v0.12.1-5 this seems to be working. Maybe I just forgot to restart after the last update. Home app prompted me to set up adaptive lighting. It's hard to tell if it's actually adjusting or not, I have to monitor it for several hours I guess. Eve does show the color temp separate from color with the one Gledopto 1ID I have. |
Try changing the brightness and see how the temperature changes accordingly.
What do you mean? Could you post a screenshot? |
- Expose Hue lights under manufacturer "Signify Netherlands B.V."; - Only consider `xy` in `ct` colormode, for Hue and dresden elektronik lights that actually compute `xy` when setting `ct`, see #814.
Please try beta v0.12.1-8. |
@ebaauw Where did you get this info from? I couldn't find any info about this. |
Checking how the Hue bridge with the latest firmware with Adaptive Lighting support exposes the Enhanced Color Light bulbs. Supereg had also already found this for the Eve lightstrip. |
Okay, I see what you mean. This is pretty cool.
I posted a screenshot of this before in #810 showing separate parameters for color and color temp. But now in the latest beta it's different. Color temp has been removed, and there is a new parameter called config, I don't know what that's for. This all seems to be working so far, but I notice something odd in the log. Every time I change brightness, it changes the color temp (good). But then it also changes the hue / sat. It does not actually send this change to the light, I just see it in the log.
|
No, it sends it to HomeKit (that’s what “set homekit ... to” means). Color Temperature is write-only, only used to set
That’s Configured Name, used to sync the HomeKit service name to the Hue bridge resource name, see #793. |
In v0.12.2. |
With the introduction of Adaptive Lighting (see #766) in iOS14, Apple has once again changed how the Home app deals with colour temperature. To cope with this change, Homebridge Hue will be implementing the following, possibly breaking, changes handling colour temperature:
ct
on the Hue bridge. When successful, Homebridge Hue updates the Hue and Saturation values in HomeKit by convertingct
intoxy
.Ad 1.
Apple's Home app now supports Lightbulb services which expose both Hue / Saturation and ColorTemperature. So the workaround in Homebridge Hue, to expose
ct
using the custom ColorTemperature characteristic in Eve, is no longer needed. You can now set the CCT channel of RGB+CCT lights and controllers from Home, by changing the Temperature wheel. Home is still a bit "jumpy", but it no longer jumps to the Color wheel. The same happens when using the native HomeKit function of the gen-2 Hue bridge, so please send your complaints to Apple.If you used HomeKit scenes (created in Eve) to set the CCT channels of RGB+CTT lights from Home before, those scenes will become empty, as the custom Color Temperature characteristic is no longer exposed.
Ad 2.
As far as I can tell from testing, the Hue bridge updates Hue and Saturation after changing Color Temperature when it next polls the light. We know Hue lights translate the
ct
value to the correspondingxy
values in their firmware, but as far as I know, other lights don't. Also, with many lights in your Zigbee network, the polling takes longer, causing the updated colour to appear late.Homebridge Hue now translates the
ct
value to the correspondingxy
value. It uses the algorithm from the deCONZ REST API plugin for this, and then uses the existing translation fromxy
to Hue / Saturation (still using the algorithm from the Hue developers portal). When selecting a colour temperature in the Temperature wheel, the dot will briefly show the colour temperature, and then change to the Hue / Saturation colour. Again, this is the same behaviour as when using the native HomeKit feature of the Hue bridge, so please complain to Apple.Colour is a bitch. The involved math in the colour transformations is beyond me. The translation from
ct
toxy
might yield slightly different results than the Hue light firmware. Consequently, the Hue and Saturation values might still change slightly, when the light is next polled. This is no different from lights reporting slightly differentxy
values from what was set, combined with minor differences translating Hue / Saturation toxy
and back.The text was updated successfully, but these errors were encountered: