diff --git a/tefnut/control/control.py b/tefnut/control/control.py index 7296631..34373bb 100644 --- a/tefnut/control/control.py +++ b/tefnut/control/control.py @@ -43,6 +43,7 @@ class TefnutController: def __init__(self): self.humidifier = humidifier + self.humidifier.turn_off() logger.info("starting ecobee device") self.ecobee = ee("pyecobee_db") @@ -117,7 +118,8 @@ def humidifier_controller(self): if self.state["mode"] == MODE.OFF: logger.debug("Off") - self.humidifier.turn_off() + if self.state["state"] != STATE.OFF: + self.humidifier.turn_off() self.state["state"] = STATE.OFF return -7 diff --git a/tefnut/webui/webservice.py b/tefnut/webui/webservice.py index b013874..4bd1cea 100644 --- a/tefnut/webui/webservice.py +++ b/tefnut/webui/webservice.py @@ -22,7 +22,7 @@ scheduler = APScheduler() persist = True -BACKGROUND_THREAD_TIMER = 60 +BACKGROUND_THREAD_TIMER = 10 sha = "" version = ""