def call_lights(*args, **kwargs):
 res = dict()
 lights = _get_lights()
 for dev_id in ((('id' in kwargs) and _get_devices(kwargs)) or sorted(lights.keys())):
  if lights.get(str(dev_id)):
   res[dev_id] = lights[str(dev_id)]
 return (res or False)

def call_lights ( * args , ** kwargs ) : res = dict ( ) lights = _get_lights ( ) for dev_id in ( ( ( 'id' in kwargs ) and _get_devices ( kwargs ) ) or sorted ( lights . keys ( ) ) ) : if lights . get ( str ( dev_id ) ) : res [ dev_id ] = lights [ str ( dev_id ) ] return ( res or False )
get info about all available lamps .