Huee

Config Setup example

class Config(ConfigObject):

    def config(self):
        config = {}
        
        # Huee
        config["huee"] = {}
        config["huee"]["ip"] = "192.168.32.25" # huee server ip
        
        return config

    def setup(self):
        
        # Huee devices -------------------------------------------------------------
        self.huee_all_lights = EventObject("huee", "all_lights", "true")
        
    def process_event(self):
    
        if self.huee_all_lights.event == "true":
            print("Turn on all lights")
        elif self.huee_all_lights.event == "false":
            print("Turn off all lights")