python-magichue icon indicating copy to clipboard operation
python-magichue copied to clipboard

Cool white not working

Open scallensc opened this issue 5 years ago • 1 comments

Describe the bug Setting cool white doesn't work, bulb just turns off

To Reproduce Code to reproduce the behavior:

def setwarm():
    light.cw = 0
    light.w = 255
    light.is_white = True
    print(light._get_status_data())


def setcool():
    light.cw = 255
    light.w = 0
    light.is_white = True
    print(light._get_status_data())

Device https://www.amazon.com.au/gp/product/B07D8HTX8M/ref=ppx_yo_dt_b_asin_title_o00_s00?ie=UTF8&psc=1

Additional context Warm white function works fine, also, I can set the bulb to cool white via the magichome app, and have also verified it works using https://github.com/kirillsimin/magichue and running the cool function in that script

scallensc avatar Jun 11 '20 16:06 scallensc

output after running setcool function:
(129, 53, 35, 97, 1, 1, 0, 0, 0, 152, 7, 0, 15, 234)

if I run it a second time, output changes:
(129, 53, 36, 97, 1, 1, 0, 0, 0, 0, 7, 0, 15, 83)

scallensc avatar Jun 11 '20 16:06 scallensc