diff --git a/powerwall.sh b/powerwall.sh index d51e53f9..feef613c 100755 --- a/powerwall.sh +++ b/powerwall.sh @@ -46,7 +46,7 @@ CHECKTEMP(){ CHECKTEMPSENSOR(){ echo ${TEMP_THRESHOLDS[${1}]} | cut -d',' -f 1 | read temp_warn echo ${TEMP_THRESHOLDS[${1}]} | cut -d',' -f 2 | read temp_crit - average=$(AVERAGETEMP ${SENSOR_ID[${1}]} 7) + average=$(AVERAGETEMP ${SENSOR_ID[${1}]} 1) if [ "${SENSOR_TYPE[${1}]}" == "mqtt" ]; then mqtt_message=`${mqtt_conn} -t tele/${1}/SENSOR -C 1`