Update powerwall.sh

This commit is contained in:
2023-12-01 11:28:08 -06:00
parent e72740cfc7
commit 474e803387

View File

@@ -115,6 +115,7 @@ CHECKTEMPSENSOR(){
if [ "${PW_SENSOR_TYPE[${1}]}" == "mqtt" ]; then
mqtt_message=`${mqtt_conn} -t tele/${1}/SENSOR -C 1`
echo ${mqtt_message} | cut -d':' -f 6 | cut -d',' -f 1 | read temp_c
[ "${1}" == "ServerRoomTH" ] && temp_c=`echo "scale=1; ${temp_c}-4" | bc`
elif [ "${PW_SENSOR_TYPE[${1}]}" == "system" ]; then
temp_c=$(vcgencmd measure_temp)