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)