Broken YeeMee - (Control Yeelight Smart Bulb + Ambi from Kodi)
I think I figured it out. This part of code told me that it would be possible to just send a command to turn on the bulb without specifying color:
Code:
        if (self.model != "mono") and (self.model != "ceiling") and (self.model != "ct_bulb"):                          # color led
            if color != 0:                       # display single color, set scene
                message = {"id": 1, "method": "set_scene", "params": ["color", color, 1]}
                log = "YEEMEE >> " + str(self.bulb_ip) + ": (ON) SET SCENE (COLOR: " + str(hex(color)) + ") RESULT >> "
            else:                                # color is #000000 to display color flow, so just turn on the bulb for the time being
                message = {"id": 1, "method": "set_power", "params": ["on", effect, duration]}
                log = "YEEMEE >> " + str(self.bulb_ip) + ": (ON) POWER ON (COLOR - CF) RESULT >> "

            xbmc.sleep(300)
        else:                                     # mono led, just turn on (or color is 0 - color flow)
            message = {"id": 1, "method": "set_power", "params": ["on", effect, duration]}
            log = "YEEMEE >> " + str(self.bulb_ip) + ": (ON) POWER ON (MONO) RESULT >> "
So I set my bulbs as 'mono' and they partially return to the previous state. The color is correct but brightness still matches the one set for 'On' setting. For now, I can live with that but I'd really appreciate it if you could take a look at it Smile If not, I'll try to do it myself as a side project but only after my exam session Smile
Reply


Messages In This Thread
RE: YeeMee - (Control Yeelight Smart Bulb + Ambi from Kodi) - by GhostCasper - 2020-01-15, 00:10
Logout Mark Read Team Forum Stats Members Help
YeeMee - (Control Yeelight Smart Bulb + Ambi from Kodi)2