diff --git a/inc/temp.inc.sh b/inc/temp.inc.sh index cf5935b9..42f8de10 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -1577,6 +1577,9 @@ SENDTEMP(){ temp_h=`IDS_NUMBER_FORMAT $(curl -m 8 -s http://${PW_REMOTE_SENSORS[${SENSORa}]}:8090/sensor/${PW_SENSOR_DEVICEID[${SENSORa}]/temperature/humidity} | jq '.value') 2 yes` fi + elif [ "${PW_SENSOR_TYPE[${1}]}" == "tuya" ]; then + IFS=: read -r temp_c temp_h <<< $(GET_TUYA_TEMP ${1}); unset IFS + elif [ "${PW_SENSOR_TYPE[${SENSORa}]}" == "system" ]; then if [[ "${SENSORa}" = *"CPU"* ]]; then temp_c=$(vcgencmd measure_temp)