def movie_dim(self, secs=5, off=False): body = {'on': True and not off, 'transitiontime': secs_to_lsecs(secs)} self.put('state', body)
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)})
def set_kelvin(self, kelvin, secs=0): body = {'on': True, 'ct': kelvin_to_mired(kelvin), 'transitiontime': secs_to_lsecs(secs)} self.put('state', body)