Update powerwall.sh

This commit is contained in:
2023-05-14 17:04:56 -05:00
parent db928e6735
commit 2677372f53

View File

@@ -25,7 +25,7 @@ CHECKTEMP(){
fi
}
CHECKTEMPSENSOR()}{
CHECKTEMPSENSOR(){
mqtt_message=`${mqtt_conn} -t tele/${1}/SENSOR -C 1`
echo $mqtt_message | cut -d':' -f 6 | cut -d',' -f 1 | read temp_c
if [ "$temp_c" != "null" ] && [ "$temp_c" != "" ]; then