Update powerwall.sh
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user