diff --git a/powerwall.sh b/powerwall.sh index 7e4f743c..5596ad7a 100755 --- a/powerwall.sh +++ b/powerwall.sh @@ -239,7 +239,7 @@ DAILYTEMP(){ # average7=$(AVERAGETEMP ${SENSOR_ID[$SENSOR]} 7) if [ "${SENSOR_TYPE[${SENSOR}]}" == "mqtt" ]; then - mqtt_message=`${mqtt_conn} -t tele/${1}/SENSOR -C 1` + mqtt_message=`${mqtt_conn} -t tele/${SENSOR}/SENSOR -C 1` temp_c=$(echo $mqtt_message | cut -d':' -f 6 | cut -d',' -f 1) elif [ "${SENSOR_TYPE[${SENSOR}]}" == "system" ]; then