Update power.inc.sh

This commit is contained in:
2025-03-16 14:06:47 -05:00
parent 3749eeffa3
commit 9dc0da710c

View File

@@ -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