Forgot to add updates to heating and cooling loops

This commit is contained in:
Snorre Selmer 2021-11-10 18:15:31 +01:00
parent 10769caaab
commit 96db3f1ea0

View File

@ -31,9 +31,7 @@ add max_temp max_temp variance
# initiate target temperature # initiate target temperature
l target_temp thermostat Setting l target_temp thermostat Setting
# read ambient temp from sensor and convert to C jal temp_read
l curr_temp gas_sensor Temperature
sub curr_temp curr_temp temp_convert
# update display # update display
brdns temp_disp 2 brdns temp_disp 2
@ -44,14 +42,26 @@ jal display
bgt curr_temp max_temp cooling bgt curr_temp max_temp cooling
blt curr_temp min_temp heating blt curr_temp min_temp heating
sb wall_coolers On cooling_active
sb liquid_wall_coolers On cooling_active
sb wall_heaters On heating_active
j start j start
temp_read:
l curr_temp gas_sensor Temperature
sub curr_temp curr_temp temp_convert
j ra
display: display:
s temp_disp Setting curr_temp s temp_disp Setting curr_temp
j ra j ra
cooling: cooling:
jal temp_read
# test if coolers need to be on or not # test if coolers need to be on or not
sgt cooling_active curr_temp target_temp sgt cooling_active curr_temp target_temp
@ -68,6 +78,8 @@ bgtz cooling_active cooling
j start j start
heating: heating:
jal temp_read
# test if heaters need to be on or not # test if heaters need to be on or not
slt heating_active curr_temp target_temp slt heating_active curr_temp target_temp