def pre_processqueue(self): logging.info('CEC module initialized') webservice_state_instances_add(self.get_class_name(), self.get_json_status) webservice_class_instances_add(self.get_class_name(), self) self.updatedevices() self.timecheck = time.time() super(HACec, self).pre_processqueue()
def pre_processqueue(self): logging.info('CEC module initialized') webservice_state_instances_add(self.get_class_name(), self.get_json_status) webservice_class_instances_add(self.get_class_name(), self) self.updatedevices() self.timecheck = time.time() super(HACec, self).pre_processqueue()
def pre_processqueue(self): logging.info('Philips Hue module initialized') self.bridge = Bridge(self.bridgeip) webservice_state_instances_add(self.__class__.__name__, self.get_json_status) webservice_class_instances_add(self.get_class_name(), self) self.update_light_instances() self.timecheck = time.time() self.update_light_cache() self.cachetime = time.time() logging.info('PhilipsHue module ready') super(HAPhilipsHue, self).pre_processqueue()
def pre_processqueue(self): logging.info('Belkin Wemo module initialized') self.env.start() self.env.discover(10) webservice_state_instances_add(self.__class__.__name__, self.get_json_status) webservice_class_instances_add(self.get_class_name(), self) self.update_light_instances() self.timecheck = time.time() self.update_light_cache() self.cachetime = time.time() logging.info('Belkin Wemo module ready') super(HABelkinWemo, self).pre_processqueue()
def pre_processqueue(self): webservicedecorator_globals_add(rgbm=self.rgbm) webservice_state_instances_add(self.__class__.__name__, self.rgbm.get_json_state) webservice_class_instances_add(self.get_class_name(), self) # might be redundant webservice_class_instances_add('ledmatrixaudio', self) # TODO: iterate over modules from parent and find + add those that inherit matrix webservice_class_instances_add('ledmatriximage', self) self.rgbm.to_splashscreen() self.timecheck = time.time() super(LEDMatrixCore, self).pre_processqueue()
def pre_processqueue(self): webservicedecorator_globals_add(rgbm=self.rgbm) webservice_state_instances_add(self.__class__.__name__, self.rgbm.get_json_state) webservice_class_instances_add(self.get_class_name(), self) # might be redundant webservice_class_instances_add( 'ledmatrixaudio', self ) # TODO: iterate over modules from parent and find + add those that inherit matrix webservice_class_instances_add('ledmatriximage', self) self.rgbm.to_splashscreen() self.timecheck = time.time() super(LEDMatrixCore, self).pre_processqueue()
def pre_processqueue(self): logging.info('Serial IR module initialized: ' + self.Serial.readline() ) webservice_state_instances_add(self.__class__.__name__, self.get_json_status) webservice_class_instances_add(self.get_class_name(), self) self.timecheck = time.time() super(HASerialIR, self).pre_processqueue()
def post_processqueue(self): webservice_class_instances_add(self.get_class_name(), self)
def post_processqueue(self): webservice_class_instances_add(self.get_class_name(), self)
def __init__(self, name, callback_function, queue, threadlist): webservice_class_instances_add(self.get_class_name(), self) self.timestopcheck = time.time() HomeAutomationQueueThread.__init__(self, name, callback_function, queue, threadlist)