Update powerwall.sh

This commit is contained in:
2022-09-11 14:42:57 -05:00
parent 0d8060769a
commit 7a30a147a2

View File

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