studioimaginaire / phue

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

How to send multiple values in one command #141

Open ElVincenco opened 5 years ago

ElVincenco commented 5 years ago

I want to send l = self.b.get_light_objects('id') l[12].transitiontime = 100 l[12].hue = tsl[0] l[12].saturation = tsl[1] l[12].brightness = 150 l[12].on = True in one Command. how can i do this?

ca13ra1 commented 4 years ago

you can send multiple values with command = {'on' : True, 'bri': 254} then call b.set_light(#lightnumber, command)