def control_group(self, group_name, param, val): group_nr = HueBridge.groups[group_name] HueBridge.set_group(group_nr, param, val)
def turn_lights_on(self): if self.config['autoOnGroup'] in HueBridge.groups.keys(): HueBridge.set_group(HueBridge.groups[self.config['autoOnGroup']], 'bri', self.config['groupBri']) HueBridge.set_group(HueBridge.groups[self.config['autoOnGroup']], 'on', 'true') else: cherrypy.log("AutoOn: group {} not found! Cannot turn lights on!".format(self.config['autoOnGroup']))