You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the LIFX app, I can change the brightness of my light strip so that each color zone is set to the target brightness. However, if I call set_brightness(32768) on a MultiZoneLight, this will reset all color zones to the same color.
Did someone already face or investigate the issue?
Does the LAN protocol provide a solution for this or does the client manually need to implement this? I am new to this project, but could you maybe use SetWaveformOptional, or is this only for animations?
Provided that the firmer is the case and we need to implement this manually, I would propose to override set_brightness (and maybe also set_{hue,saturation,colortemp}?) in MultiZoneLight to do this for all zones separately. Pseudo:
# brightness in range [0 - 65535]defset_brightness(self, brightness, duration=0, rapid=False):
""" brightness to set duration in ms"""current_colors=self.get_color_zones()
next_colors= [(hue, sat, brightness, kelvin) for (hue, sat, _, kelvin) incurrent_colors]
returnself.set_zone_colors(next_colors, duration=duration, rapid=rapid)
If you are interested, I'd be happy to send you a PR!
The text was updated successfully, but these errors were encountered:
Using the LIFX app, I can change the brightness of my light strip so that each color zone is set to the target brightness. However, if I call
set_brightness(32768)
on aMultiZoneLight
, this will reset all color zones to the same color.Did someone already face or investigate the issue?
Does the LAN protocol provide a solution for this or does the client manually need to implement this? I am new to this project, but could you maybe use
SetWaveformOptional
, or is this only for animations?Provided that the firmer is the case and we need to implement this manually, I would propose to override
set_brightness
(and maybe alsoset_
{hue
,saturation
,colortemp
}?) inMultiZoneLight
to do this for all zones separately. Pseudo:If you are interested, I'd be happy to send you a PR!
The text was updated successfully, but these errors were encountered: