def call_temperature(*args, **kwargs):
 res = dict()
 if ('value' not in kwargs):
  raise CommandExecutionError("Parameter 'value' (150~500) is missing")
 try:
  value = max(min(int(kwargs['value']), 500), 150)
 except Exception as err:
  raise CommandExecutionError("Parameter 'value' does not contains an integer")
 devices = _get_lights()
 for dev_id in ((('id' not in kwargs) and sorted(devices.keys())) or _get_devices(kwargs)):
  res[dev_id] = _set(dev_id, {'ct': value})
 return res

def call_temperature ( * args , ** kwargs ) : res = dict ( ) if ( 'value' not in kwargs ) : raise CommandExecutionError ( "Parameter 'value' (150~500) is missing" ) try : value = max ( min ( int ( kwargs [ 'value' ] ) , 500 ) , 150 ) except Exception as err : raise CommandExecutionError ( "Parameter 'value' does not contains an integer" ) devices = _get_lights ( ) for dev_id in ( ( ( 'id' not in kwargs ) and sorted ( devices . keys ( ) ) ) or _get_devices ( kwargs ) ) : res [ dev_id ] = _set ( dev_id , { 'ct' : value } ) return res
set the mired color temperature .