Update powerwall.sh

This commit is contained in:
2023-07-06 21:11:18 -05:00
parent 003350d208
commit 9a9fc6caa2

View File

@@ -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