I finally installed the ceiling 650 and everything is working great. So I started testing with my python addon for Kodi, which works with all other products- mono bulb, color bulb, led stripe… simple LAN control. It works with 650 as well. Except one thing - when I send command to turn it on or off - i.e.
The result “OK” is to indicate the command has been executed successfully by the light.
The “props” method is to notify the properties of the lights has been changed accordingly. This method is to notify all connected clients that the state is changed and client should update their UI accordingly.
One question - I noticed that when I turn off the 650 (main light) both main and ambi light turn off - is there no way to turn off only main light? At least it seems more logical that off turns off only main light in API, if not in Yeelight app.
But still, this shouldn’t influence the API! There is logic to turn both main light and ambi with a single button from a remote control or App, but not from API! In my script/program, I can’t tell if the user selected this option in Yeelight app and there should be a way to turn each on and off individually.
Can this please be revised (ONLY!) in API? If you think about it, you’ll see it makes sense. App developers can’t rely on this option being on or off and it makes programming harder.
The issue is not with the API; legacy API’s are used to control the main light, but we force the ‘background color turned on/off along with the main light’ feature to take effect whenever main light status changes, for reasons, such as simplicity in APP logic and scene management.
But there’s one (ugly) way out. To turn off the mainlight while keeping background light on, you could send a bg_set_power message to turn on the background light immediately after sending the set_power message. The device should behaves just like turning off the main light only.
I wonder if that’s necessary (because you can always turn the background light on even if it’s already on).
But if you insists, try below method (you should get 1/0 if the option is enabled/disabled):
{“id”:1,“method”:“get_prop”,“params”:[“bg_proact”]}