Enable relay control.
This commit is contained in:
parent
bc55458642
commit
a3afb79563
@ -371,7 +371,7 @@ def thermostat_loop():
|
|||||||
logging.warning(room+": Load too high cannot start heaters.")
|
logging.warning(room+": Load too high cannot start heaters.")
|
||||||
else:
|
else:
|
||||||
logging.info(room+": Starting heaters.")
|
logging.info(room+": Starting heaters.")
|
||||||
# set_relay(rooms_settings[room]["relays"], "on")
|
set_relay(rooms_settings[room]["relays"], "on")
|
||||||
sys.stdout.flush()
|
sys.stdout.flush()
|
||||||
else:
|
else:
|
||||||
logging.debug("Relay already on.")
|
logging.debug("Relay already on.")
|
||||||
@ -382,7 +382,7 @@ def thermostat_loop():
|
|||||||
logging.info(room+": Current temperature is "+str(temperature))
|
logging.info(room+": Current temperature is "+str(temperature))
|
||||||
logging.info(room+": Stopping heaters.")
|
logging.info(room+": Stopping heaters.")
|
||||||
sys.stdout.flush()
|
sys.stdout.flush()
|
||||||
# set_relay(rooms_settings[room]["relays"], "off")
|
set_relay(rooms_settings[room]["relays"], "off")
|
||||||
else:
|
else:
|
||||||
logging.debug("Relay already off.")
|
logging.debug("Relay already off.")
|
||||||
time.sleep(load_shedder_interval)
|
time.sleep(load_shedder_interval)
|
||||||
|
Loading…
Reference in New Issue
Block a user