-
-
Notifications
You must be signed in to change notification settings - Fork 75
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
Issue with changing light color #2
Comments
The code right now just uses the following light attributes: "brightness" and "color_temp". Your light is not changing the color since LED1624G9 does not support the color temperature (color_temp) attribute, just the xy_color. I see two solutions for this:
I see the second solution more feasible for this use case. |
Let me know how I can help, I could try to code that if there is an example I could use |
Same problem here. |
I updated the code and now it supports color for the lights that have xy_color attribute. I haven't released the code yet, but you can copy and paste the code from the master branch and let me know if this works for you. I now have the LED1624G9 and it worked on my end. I updated the README file with the color feature. By default, it checks if the light supports xy_color, otherwise it will use color_temp. So if the light supports xy_color when the arrows are pressed, it does a loop of colors until the button is released. Thank you for your support and let me know if it works as expected to close this issue. |
I will be home in 3 hours and will test if it's working. I'll let u know soon. Thanks in advance for your great work. |
I copied the "Master" -> "z2m_ikea_controller/apps/z2m_ikea_controller/z2m_ikea_controller.py" 2020-01-06 17:00:11.412622 INFO AppDaemon: Reading config |
Sorry @ginodp, it should be fixed now. Let me know about it. |
Very nice it works like a charm. Can I add more colors to it? Like white! |
Perfect! We could add white near the light blue so it blends a little bit. If you open the dialog of the light on home assistant, you will see it goes over the whole circle, but not the middle, which is the middle. |
I added the white color before blue starts for the blend.
Works nicely. This middle color is a nice warm color next to the white from blue. |
Thanks @ginodp. I will add the color and let you know about it. |
Hey @ginodp, I just add the white color as you said, the color blends in quite well. You can download the last version for it. |
I'm connecting LED1624G9 and E1524/E1810 via Zigbee2mqtt 1.70. Toggling light and switching brightness works ok, but when I'm trying to change color it fails:
apps.yaml:
The text was updated successfully, but these errors were encountered: