def action(): group = Group(LAN, group_name) data = flask_utils.get_data(request.data) group.set_infrared(float(value), duration=data["duration"], wait=data["wait"]) return {"success": True}
def action(): group = Group(LAN, group_name) return {"power": group.get_power()}
def action(): group = Group(LAN, group_name) return {"devices": group.get_devices_label()}
def action(): return {"groups": Group.stats_group(LAN)}
def action(): return {"groups": Group.list_group(LAN)}
def action(): group = Group(LAN, group_name) return {"infrared": group.get_infrared()}
def action(): group = Group(LAN, group_name) return {"colortemp": group.get_colortemp()}
def action(): group = Group(LAN, group_name) return {"brightness": group.get_brightness()}
def action(): group = Group(LAN, group_name) return {"saturation": group.get_saturation()}
def action(): group = Group(LAN, group_name) return {"hue": group.get_hue()}
def action(): group = Group(LAN, group_name) group.switch_power() return {"success": True}