Update powerwall.sh

This commit is contained in:
2023-12-13 21:35:22 -06:00
parent a38a41b123
commit 6fb85e3801

View File

@@ -417,6 +417,7 @@ Previous Temp: ${last_temp[${SENSOR//-/}]}${GAUGESH}"
else
wait=$(echo "scale=0; ${PW_MYSQL_LOG_INTERVAL_NORMAL}*60" | bc)
fi
if [ "${PW_SENSOR_ID[${SENSORa}]}" != "" ] && [ ${lastinsert} -ge ${wait} ]; then
if [ "${PW_SENSOR_TYPE[${SENSORa}]}" == "esxi" ]; then
entityid=($(${mysql_conn} -e "SELECT id FROM servermonitor.entities WHERE BINARY name='${vSENSOR// /_}' AND sensorid='${PW_SENSOR_ID[${SENSORa}]}'"))