Update powerwall.sh
This commit is contained in:
@@ -264,7 +264,7 @@ CHECKTEMP_SERVICE(){
|
|||||||
if [ "${PW_TEMP_THRESHOLDS[${SENSORa}]}" != "" ]; then
|
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 1 | read temp_warn
|
||||||
echo ${PW_TEMP_THRESHOLDS[${SENSORa}]} | cut -d',' -f 2 | read temp_crit
|
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}
|
[ "$(${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
|
fi
|
||||||
|
|
||||||
if [ "${PW_SENSOR_TYPE[${SENSORa}]}" == "mqtt" ]; then
|
if [ "${PW_SENSOR_TYPE[${SENSORa}]}" == "mqtt" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user