diff --git a/aircon.sh b/aircon.sh index e6058ad..e435648 100755 --- a/aircon.sh +++ b/aircon.sh @@ -386,9 +386,9 @@ function generate_actions() { # populates global: nairconcommands & airconcmd fi [[ ! -z $globsetmode ]] && globaction="power_on" else - if [[ $airconmode == "heat" && $nhot -ge 2 ]]; then + if [[ $airconmode == "heat" && $nhot -ge $limit ]]; then globprob="too_hot" - elif [[ $airconmode == "cool" && $ncold -ge 2 ]]; then + elif [[ $airconmode == "cool" && $ncold -ge $limit ]]; then globprob="too_cold" fi [[ ! -z $globprob ]] && globaction="power_off"