-
Notifications
You must be signed in to change notification settings - Fork 45
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
RGB value returns higher then 255 #114
Comments
You can get an appropriate RGB value by submitting a pull request with a code change to correct the current algo :P . Seems like the algorithm mKeRix contributed isn't up to snuff with all Hue fixtures. I'll see if there is anything readily available to drop in as a replacement for determining RGB. |
Can you please give me a example of the code. My code is as following: foreach ($client->getLights() as $lightId => $light) { hope you can help me out by getting all the right colors of the Hue lights |
+1 EDIT:
|
i have tried to fixed it with https://developers.meethue.com/documentation/color-conversions-rgb-xy
https://github.com/peter-murray/node-hue-api/blob/master/test/rgb-tests.js .. may ... ? |
Hello, i have put a modification in code : mixman68@8e4e763 I have took example on code of home assistant and another python library whiches work correctly so i wrote a test file :
The conversion to XY is correct, same as other library excepted ignorance of Gamut of bulb 255 0 0 => 254 0 0 so i'm satisfied by these |
+1 please merge this fix. |
Please fix this or fix the documentation |
When i use $light->getRGB(); I get a value of 291, 191, 114 back for my Hue Bloom. The other lights are 231, 150, 90 this looks right with the color. All the lights have the same color in my Hue app but only the Bloom has a higher Brightness The red value is higher than 255. How can I get the right RGB values of the light?
The text was updated successfully, but these errors were encountered: