Jur93n
(Jur93n K1uf7)
1
Is there a python library that can convert a given RGB color + CT (Color Temperature) to a Philips HUE XY-color or Hue+Sat?
I am programmatically modifying CT during the day but would like to keep the lights at the color (or close to) that what was set by the user.
Jur93n
(Jur93n K1uf7)
2
I started to answer my own question here and i came up with the following:
- Convert RGB to XY
- Convert XY to CT
The following is a plot of CT on gamut B in the CIE diagram, can someone comment on this if it is correct or not?
(white=ct:500, black=ct:154)![](//community-assets.home-assistant.io/original/2X/0/0785f578ee85494190a1ca4a1678922fb74dfefa.png)