From 96db3f1ea0c6f6fdbd54ed9c32e723fdf930a48d Mon Sep 17 00:00:00 2001 From: Snorre Selmer Date: Wed, 10 Nov 2021 18:15:31 +0100 Subject: [PATCH] Forgot to add updates to heating and cooling loops --- heating_cooling.ic10 | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/heating_cooling.ic10 b/heating_cooling.ic10 index 409a310..e21bf5d 100644 --- a/heating_cooling.ic10 +++ b/heating_cooling.ic10 @@ -31,9 +31,7 @@ add max_temp max_temp variance # initiate target temperature l target_temp thermostat Setting -# read ambient temp from sensor and convert to C -l curr_temp gas_sensor Temperature -sub curr_temp curr_temp temp_convert +jal temp_read # update display brdns temp_disp 2 @@ -44,14 +42,26 @@ jal display bgt curr_temp max_temp cooling 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 +temp_read: +l curr_temp gas_sensor Temperature +sub curr_temp curr_temp temp_convert + +j ra + display: s temp_disp Setting curr_temp j ra cooling: +jal temp_read + # test if coolers need to be on or not sgt cooling_active curr_temp target_temp @@ -68,6 +78,8 @@ bgtz cooling_active cooling j start heating: +jal temp_read + # test if heaters need to be on or not slt heating_active curr_temp target_temp