bugfix: too hot/cold zone count limit was always set to 2 when system was on

This commit is contained in:
Rob Pearce 2021-07-30 22:11:13 +10:00
parent e9c9a40497
commit 6848a09bb7
1 changed files with 2 additions and 2 deletions

View File

@ -386,9 +386,9 @@ function generate_actions() { # populates global: nairconcommands & airconcmd
fi fi
[[ ! -z $globsetmode ]] && globaction="power_on" [[ ! -z $globsetmode ]] && globaction="power_on"
else else
if [[ $airconmode == "heat" && $nhot -ge 2 ]]; then if [[ $airconmode == "heat" && $nhot -ge $limit ]]; then
globprob="too_hot" globprob="too_hot"
elif [[ $airconmode == "cool" && $ncold -ge 2 ]]; then elif [[ $airconmode == "cool" && $ncold -ge $limit ]]; then
globprob="too_cold" globprob="too_cold"
fi fi
[[ ! -z $globprob ]] && globaction="power_off" [[ ! -z $globprob ]] && globaction="power_off"