fixed heating logic
This commit is contained in:
parent
ce657b3636
commit
69afa72f34
1 changed files with 3 additions and 3 deletions
4
main.py
4
main.py
|
@ -97,14 +97,14 @@ while True:
|
||||||
is_heating = True
|
is_heating = True
|
||||||
elif system_on == True and temp_curr > temp_tgt + temp_gap:
|
elif system_on == True and temp_curr > temp_tgt + temp_gap:
|
||||||
is_heating = False
|
is_heating = False
|
||||||
else:
|
|
||||||
is_heating = False
|
|
||||||
ctrl_relais(is_heating)
|
ctrl_relais(is_heating)
|
||||||
|
|
||||||
if system_on == True:
|
if system_on == True:
|
||||||
system_on_string = "ON "
|
system_on_string = "ON "
|
||||||
else:
|
else:
|
||||||
system_on_string = "OFF"
|
system_on_string = "OFF"
|
||||||
|
is_heating = False
|
||||||
|
|
||||||
if is_heating == True:
|
if is_heating == True:
|
||||||
heat_string = ">H<"
|
heat_string = ">H<"
|
||||||
|
|
Loading…
Reference in a new issue