Update powerwall.sh
This commit is contained in:
@@ -48,7 +48,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}]} 1)
|
||||
average=$(AVERAGETEMP ${SENSOR_ID[${1}]} 7)
|
||||
|
||||
if [ "${SENSOR_TYPE[${1}]}" == "mqtt" ]; then
|
||||
mqtt_message=`${mqtt_conn} -t tele/${1}/SENSOR -C 1`
|
||||
|
||||
Reference in New Issue
Block a user