Update powerwall.sh

This commit is contained in:
2023-10-17 17:42:16 -05:00
parent 240268b2fd
commit 4fed9993c3

View File

@@ -345,7 +345,7 @@ Previous Temp: ${last_temp[${SENSOR}]}'F"
done
else #sensor down
elif [ "${PW_HOST_ADDRESSES[${SENSORa}]}" == "" ]; then #sensor down
if [ ! -f ${PW_TMPFOLDER}/${SENSORa}.down ] || [ $(expr `date +%s` - $(stat -c %Y ${PW_TMPFOLDER}/${SENSORa}.down)) -ge 1800 ]; then
SENDNOTICE "${SENSORa} ERROR" "${SENSORa} Sensor is down" 1
echo "($datetime) - ${SENSORa} - ${SENSORa} Sensor is down" >> ${logtemp}