cellcortex / homebridge-yeelighter

Homebridge plugin for Yeelights - special focus on supporting features of ceiling lights
MIT License
98 stars 19 forks source link

Fix backlight not being turned on #129

Open bimusiek opened 1 year ago

bimusiek commented 1 year ago

I have checked and even Yeelight app which sends "bg_toggle" command does not properly works. Only thing that makes the backlight work is to send command

{"method":"bg_set_scene","params":["color",9055202,-1]}

from the Yeelight app (by tapping on any color). Based on this, I assume we have to send -1 as PowerMode, thus the PR with a change. I have 2 lights recently bought and I validated it works now with both of those.

This fixes https://github.com/cellcortex/homebridge-yeelighter/issues/119

bimusiek commented 1 year ago

After more testing, it did not work. I have to use bg_set_scene to turn it on. Yeelight app has the same problem where you have to use the scene. I have the newest firmware available and this is the only workaround.

bimusiek commented 1 year ago

I can make the behavior configurable. About the values, those are used in setHSV method afaik.

bimusiek commented 11 months ago

@cellcortex Finally got to it, the changes you requested are implemented.

bimusiek commented 10 months ago

@cellcortex Any thoughts?