diff --git a/defaults.inc b/defaults.inc index f73d41cf..886782c1 100755 --- a/defaults.inc +++ b/defaults.inc @@ -1,5 +1,5 @@ -VERS='2.5.108-01052024' +VERS='2.5.109-01072024' noheader=' update service dailytemp confsync -r -report ' diff --git a/inc/temp.inc.sh b/inc/temp.inc.sh index 2ac47b94..02b36dc4 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -487,7 +487,7 @@ CHECKTEMP_SERVICE_RUNSENSOR(){ fi fi - if (( $(bc <<< "${temp_f} < ${temp_warn}") )); then + if [[ "${SENSORa}" != *"-Usage"* ]] && (( $(bc <<< "${temp_f} < ${temp_warn}") )); then if (( $(bc <<< "${last_temp} >= 1") )); then [ -f ${PW_TMPFOLDER}/${SENSORa}.down ] && [ $(expr `date +%s` - $(stat -c %Y ${PW_TMPFOLDER}/${SENSORa}.down)) -ge 1800 ] && SENDNOTICE "${SENSOR} BACK TO NORMAL" "NORMAL TEMP: ${temp_f}${GAUGESH} Previous Temp: ${last_temp}${GAUGESH}" @@ -526,7 +526,7 @@ CHECKTEMP_SERVICE_RUNSENSOR(){ fi fi - else + elif [[ "${SENSORa}" != *"-Usage"* ]]; then if ([ ! "${last_temp}" ] || (( $(bc <<< "${last_temp} < 2") ))); then if [ "${last_temp}" != "${temp_f}" ]; then