From cd4ac57e8f9db2703db23feabd3f45c8c465e76a Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 3 Sep 2022 10:42:15 -0500 Subject: [PATCH] Update powerwall.sh --- powerwall.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powerwall.sh b/powerwall.sh index 759520af..c6eceeab 100755 --- a/powerwall.sh +++ b/powerwall.sh @@ -17,7 +17,7 @@ shopt -s lastpipe GETTEMP(){ mqtt_message=`mosquitto_sub -h 10.10.1.180 -t tele/${1}/SENSOR -u homeassistant -P 12home34assistant56 -C 1` - echo $mqtt_message | cut -d':' -f 8 | cut -d',' -f 1 | read temp_c + echo $mqtt_message | cut -d':' -f 6 | cut -d',' -f 1 | read temp_c if [ "$temp_c" != "null" ] && [ "$temp_c" != "" ]; then temp_f=`echo "scale=2; $temp_c*1.8 + 32" | bc` echo "$temp_c -> $temp_f"