studioimaginaire / phue

A Python library for the Philips Hue system
Other
1.52k stars 267 forks source link

set_light vs set_group : discrepancy #211

Open Nickduino opened 6 months ago

Nickduino commented 6 months ago

I was disappointed I couldn't set the brightness of a turned off light (I'd like to do that just before I turn it on to avoid blasting full brightness for a fraction of a second in some circumstances) but I guess that's a limitation of Hue, so _b.setlight() throws an error and that's ok.

But it's inconsistent with the behavior of _b.setgroup() which returns "success" even when all lights of the group are turned off and their brightness was not changed.

What I would expect from _b.setgroup() is to set the brightness of the lights that are on (if any) but also returns an error letting me know the brightness of some of them could not be changed.