Enable relay control.

This commit is contained in:
yohan 2024-06-07 22:04:36 +02:00
parent bc55458642
commit a3afb79563

View File

@ -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)