Exemple #1
0
 def movie_dim(self, secs=5, off=False):
     body = {'on': True and not off,
             'transitiontime': secs_to_lsecs(secs)}
     self.put('state', body)
Exemple #2
0
 def torch(self, kelvin=KELVIN_MED, secs=0, lum=LUM_MAX):
     self.put('state', {'on': True,
                        'ct': kelvin_to_mired(kelvin),
                        'bri': lum,
                        'transitiontime': secs_to_lsecs(secs)})
Exemple #3
0
 def set_kelvin(self, kelvin, secs=0):
     body = {'on': True,
             'ct': kelvin_to_mired(kelvin),
             'transitiontime': secs_to_lsecs(secs)}
     self.put('state', body)