namacha / python-magichue

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

RGB&W should work without "is_white" #27

Open jdtsmith opened 4 years ago

jdtsmith commented 4 years ago

Great package! I'm using it with some RGBW led strips and the magichome WiFi LED strip controller. The strips I use have a warm white led every other one. You can run these warm white LEDs at the same time as the colored LEDs. In that case, the is_white setting is not needed, since you can separately control color and warm white led levels. I do confirm that I can:

light.is_white=True
light.w=128
light.is_white=False

to change the warm white level. But it would be useful to be able to configure the light object to allow setting color and white LED levels without switching "modes". Thanks for considering.

UPDATE: Interestingly, the light type isn't in your list of types:

>>> light._get_status_data()
(129, 6, 35, 37, 20, 7, 188, 0, 255, 50, 1, 0, 240, 200)