From 9dc0da710cc19a03b10092f0ed111667277ab2fe Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 16 Mar 2025 14:06:47 -0500 Subject: [PATCH] Update power.inc.sh --- inc/power.inc.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/power.inc.sh b/inc/power.inc.sh index 43c8d9e5..b87d3c42 100644 --- a/inc/power.inc.sh +++ b/inc/power.inc.sh @@ -762,7 +762,7 @@ BATT AMPS: ${BATTA_disp}" 1 touch ${PW_TMPFOLDER}/power.ac.low elif [ -f ${PW_TMPFOLDER}/power.ac.good ]; then - if (( $(bc <<<"${INPUTACV} >= ${min_acvolt}") )); then + if (( $(bc <<<"${INPUTACV} < ${min_acvolt}") )); then echo "($(date +'%Y-%m-%d %H:%M:%S')) - ${INPUTACV}'volts / ${BATTVOLT}'volts - Power OFF or LOW voltage detected" >> ${PW_LOGPOWER} SENDNOTICE "POWER ALERT - POWER OFF/LOW!!" "Power off or low voltage detected GRID VOLTAGE: ${INPUTACV}'volts