diff --git a/inc/temp.inc.sh b/inc/temp.inc.sh index a8dd4967..a9780dd4 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -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