-
Notifications
You must be signed in to change notification settings - Fork 268
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 error #177
Comments
Hue lights don’t support direct rgb control, you can only use hue or xy
mode.
Some libraries can help you do the conversion:
https://pypi.org/project/rgbxy/
…--
lecaude.com
studioimaginaire.com
On Nov 2, 2020 at 6:40:20 AM, Jan20202020 ***@***.***> wrote:
When i try to set an rgb value for a lamp i get this error:
ERROR, parameter, rgb, not avalible for light 2
My code:
hue.set_light(2, {'rgb': (255, 102, 0)})
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#177>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAS55APIRKVK6Z3PHIPZLDSN2LCJANCNFSM4THLRXHQ>
.
|
And what about hex colors? |
No, same principle, the hue API only supports XY and Hue/saturation modes,
you’ll need to find a way to convert rgb to the XY colorspace.
…On Nov 2, 2020 at 8:56:53 AM, Jan20202020 ***@***.***> wrote:
And what about hex colors?
Are they working?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#177 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAS55E3LMC2L7TOOWNZ3FDSN23CLANCNFSM4THLRXHQ>
.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When i try to set an rgb value for a lamp i get this error:
ERROR, parameter, rgb, not avalible for light 2
My code:
hue.set_light(2, {'rgb': (255, 102, 0)})
The text was updated successfully, but these errors were encountered: