From a3afb79563361cc0291f669115cd3f41ef101065 Mon Sep 17 00:00:00 2001 From: yohan <783b8c87@scimetis.net> Date: Fri, 7 Jun 2024 22:04:36 +0200 Subject: [PATCH] Enable relay control. --- thermostat.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/thermostat.py b/thermostat.py index 50291b1..cbc09e5 100755 --- a/thermostat.py +++ b/thermostat.py @@ -371,7 +371,7 @@ def thermostat_loop(): logging.warning(room+": Load too high cannot start heaters.") else: logging.info(room+": Starting heaters.") -# set_relay(rooms_settings[room]["relays"], "on") + set_relay(rooms_settings[room]["relays"], "on") sys.stdout.flush() else: logging.debug("Relay already on.") @@ -382,7 +382,7 @@ def thermostat_loop(): logging.info(room+": Current temperature is "+str(temperature)) logging.info(room+": Stopping heaters.") sys.stdout.flush() -# set_relay(rooms_settings[room]["relays"], "off") + set_relay(rooms_settings[room]["relays"], "off") else: logging.debug("Relay already off.") time.sleep(load_shedder_interval)