def handle_event(self, event):
    logging.info(event)

    self.device_name = event['name']
    self.hue_type = event['type']
    self.hue_model_id = event['modelid']

    state = event['state']
    self.state = state['on']
    self.brightness = state['bri']
    self.color_temperature = state.get('ct', None)
Read content from file in the repository
dataset/ETHPy150Open tomwilkie/awesomation/src/appengine/devices/hue.py/HueLight.handle_event--crossover with--dataset/ETHPy150Open quantmind/lux/lux/extensions/content/models.py/Content.read