namacha / python-magichue

Control Magic Hue(Magichome) in Python.
MIT License
60 stars 12 forks source link

LocalLight() does not work with v8 bulbs #42

Open 5aVi0R opened 2 years ago

5aVi0R commented 2 years ago

Describe the bug LocalLight() does not work with v8 bulbs but Light() does

To Reproduce Code to reproduce the behavior:

led1= LocalLight("<yourip>")
led1.g = 255
led2 = Light("<yourip>")
led1.g = 200

Device

Additional context status does not get applied when using LocalLight() w/ v8 bulbs. I believe it has something to do with how the commands are sent vs Light()

namacha commented 2 years ago

Thanks for posting issue. After a quick research, I found that LocalLight sends invalid packet. I've just fixed bug, and you can test behavior with this branch.

5aVi0R commented 2 years ago

Problem resolved @namacha :) Great Work as well!

namacha commented 2 years ago

Glad to hear that. I'm gonna merge to main branch soon.