From da8b1bca2e1c7e88384c67a335ebcf63f281ea79 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Fri, 5 Jan 2024 11:45:31 -0600 Subject: [PATCH] Update temp.inc.sh --- inc/temp.inc.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/inc/temp.inc.sh b/inc/temp.inc.sh index 4c0a4a0b..9c0e530d 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -420,6 +420,8 @@ CHECKTEMP_SERVICE_RUNSENSOR(){ logtemp=${PW_LOGFOLDER}/log-temp-${SENSOR} if [ "${temp_c}" != "null" ] && [ "${temp_c}" != "" ]; then + [ -f ${PW_TMPFOLDER}/${SENSOR}.disable ] && rm -f ${PW_TMPFOLDER}/${SENSOR}.disable + if [ -f ${PW_TMPFOLDER}/${SENSOR}.down ]; then SENDNOTICE "${SENSOR} Online" "${SENSOR} Sensor is back online" echo "($(date +'%Y-%m-%d %H:%M:%S')) - ${SENSOR} - Sensor is back online" >> ${logtemp}