antonpup / Aurora

Unified lighting effects across multiple brands and various games.
http://www.project-aurora.com/
MIT License
1.83k stars 368 forks source link

YeeLight not working #1947

Open Julius971 opened 4 years ago

Julius971 commented 4 years ago

I am trying to use a Yeelight with Aurora and everything works fine, but the dimmer value is not getting updated. Hue and Saturation are transmitted correctly.

snake-4 commented 4 years ago

Hello, YeeLight integration doesn't send brightness value to the light, you have to set the brightness yourself in the YeeLight app.

Julius971 commented 4 years ago

But this is kinda nonsense, because if my screen turns black, ambientlight should do this as well.

snake-4 commented 4 years ago

Actually the program uses the set_rgb function of the light to send RGB values, light converts them to hue and saturation but it doesn't allow 0,0,0 as an RGB value. I've tried sending brightness as zero to close the leds on the light but light also doesn't accept brightness value 0. I think the only way would be to send on and off commands to the light but that could be slow.

snake-4 commented 4 years ago

Apparently setting power state to off makes the light close open connections to any hosts so that options isn't viable as well. I don't think there is a way to do that.