diff --git a/powerwall.sh b/powerwall.sh index 295c531a..b332b4e7 100755 --- a/powerwall.sh +++ b/powerwall.sh @@ -35,7 +35,7 @@ CHECKTEMP(){ } CHECKTEMP_SERVICE(){ - last_temp=0 + last_temp=1 mqtt_message=`${mqtt_conn} -t tele/${1}/SENSOR -C 1` while true do @@ -70,7 +70,7 @@ CHECKTEMP_SERVICE(){ echo "($temp_d @ $temp_t) CRITICAL: $temp_f°F" else - last_temp=0 + last_temp=1 # echo "NORMAL TEMP: $temp_f°F" | mail -s "${1} TEMP NORMAL" $email_alert #echo "($temp_d @ $temp_t) normal: $temp_f°F" fi