-
Notifications
You must be signed in to change notification settings - Fork 14
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
Color control not working properly #21
Comments
Please try |
Sorry but this has no effect using that code: import magichue
light = magichue.Light('192.168.1.128', confirm_receive_on_send=False)
light.on = True
light.is_white = False
light.rgb = (0, 255, 0)
light.update_status()
print(light._get_status_data()) Returned status:
It changes the saturation to 6% for some reason...? Properly the bulb's API is different? |
@namacha Can I help you with that issue? Properly expose the bulb via my router and give you access for debugging? |
I found your bulb has different protocol, so I decided to buy that bulb and do some hack. But I am so busy recently, so it may take a while.. |
Awesome - let's keep in touch for upcoming process. In the meanwhile I integrated your library with an hack for static colors. That being said, it would be nice to have helper methods under the Light class / API because I had to wrap modes into another function for possible import errors / unit testing. Suggested API: light.setMode(
mode = light.MODE_GRADUALLY,
speed = 1,
colors = \
[
(255. 0, 0),
(0, 0, 0)
]
)
light.setRGB(255, 0, 0)
light.turnOn()
light.turnOff() |
Describe the bug
Working:
light.mode
likeRAINBOW_CROSSFADE
is workingNot working:
light.rgb
light.hue
CustomMode
is not workingDevice
https://www.amazon.com/Required-Magic-Hue-Equivalent-Compatible/dp/B07VKJ2VW5
Code
Note: Please introduce Exceptions for color functions that are not working or connections that cannot be established... this library is impossible to debug otherwise
The text was updated successfully, but these errors were encountered: