Update temp.inc.sh

This commit is contained in:
2024-02-25 15:03:13 -06:00
parent 0e2eefa792
commit 777a6f07fe

View File

@@ -344,7 +344,8 @@ CHECKTEMPSENSOR(){
echo ${mqtt_message} | cut -d':' -f 6 | cut -d',' -f 1 | read temp_c
elif [ "${PW_SENSOR_TYPE[${1}]}" == "tuya" ]; then
IFS=:; read -r temp_c hum <<< $(GET_TUYA_TEMP ${1}); unset IFS
IFS=: read -r temp_c hum <<< $(GET_TUYA_TEMP ${1}); unset IFS
echo "HERE: $temp_c - $hum"
elif [ "${PW_SENSOR_TYPE[${1}]}" == "lacrosse" ]; then
if ! INFO=$(curl -m 8 -s --get -d "deviceid=${PW_SENSOR_DEVICEID[${SENSOR}]}" -d "limit=1" -d "metric=1" -d "timezone=2" https://decent-destiny-704.appspot.com/laxservices/device_info.php) ; then TIMEOUT=1; fi