From 43cd8a10ec7e7a9770edf2b50296bc1b0184ddd7 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Mon, 4 Dec 2023 13:47:06 -0600 Subject: [PATCH] Update powerwall.sh --- powerwall.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powerwall.sh b/powerwall.sh index 8b81ecba..3e272ae6 100755 --- a/powerwall.sh +++ b/powerwall.sh @@ -264,7 +264,7 @@ CHECKTEMP_SERVICE(){ if [ "${PW_TEMP_THRESHOLDS[${SENSORa}]}" != "" ]; then echo ${PW_TEMP_THRESHOLDS[${SENSORa}]} | cut -d',' -f 1 | read temp_warn echo ${PW_TEMP_THRESHOLDS[${SENSORa}]} | cut -d',' -f 2 | read temp_crit - [ "$(${PW_TEMP_THRESHOLDS[${SENSORa}]} | cut -d',' -f 3)" != "" ] && echo ${PW_TEMP_THRESHOLDS[${SENSORa}]} | cut -d',' -f 3 | read temp_crit_sys || temp_crit_sys=${temp_crit} + [ "$(echo ${PW_TEMP_THRESHOLDS[${SENSORa}]} | cut -d',' -f 3)" != "" ] && echo ${PW_TEMP_THRESHOLDS[${SENSORa}]} | cut -d',' -f 3 | read temp_crit_sys || temp_crit_sys=${temp_crit} fi if [ "${PW_SENSOR_TYPE[${SENSORa}]}" == "mqtt" ]; then