From 7a30a147a2f0e27d1a5903ab96a95192cff65e53 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 11 Sep 2022 14:42:57 -0500 Subject: [PATCH] Update powerwall.sh --- powerwall.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powerwall.sh b/powerwall.sh index 4c43175d..a8f3b934 100755 --- a/powerwall.sh +++ b/powerwall.sh @@ -122,7 +122,7 @@ CHECKACV_SERVICE(){ echo "($datetime) normal voltage: ${INPUTACV}V" if [ $volt_diff -gt 1 ]; then echo -e "($datetime) Normal voltage detected\nVOLTAGE: ${INPUTACV}V" | mail -s "POWER NOMINAL AGAIN" $email_alert - if [ "$last_volt" = "0" ]; then + elif [ "$last_volt" = "0" ]; then echo -e "($datetime) Normal voltage detected\nVOLTAGE: ${INPUTACV}V" | mail -s "Power Nominal" $email_alert fi last_volt=1