Update temp.inc.sh

This commit is contained in:
2025-07-19 15:06:41 -05:00
parent bcbb54715d
commit 5a4b69784f

View File

@@ -1652,6 +1652,11 @@ SENDTEMP(){
elif [ "${PW_SENSOR_TYPE[${SENSORa}]}" == "tuya" ]; then
IFS=: read -r temp_c temp_h <<< $(GET_TUYA_TEMP ${SENSORa}); unset IFS
elif [ "${PW_SENSOR_TYPE[${1}]}" == "midea" ]; then
IFS='~' read -r token key <<< ${PW_SENSOR_DEVICEID[${SENSORa}]}; unset IFS
info=$(midea-beautiful-air-cli status --ip ${PW_REMOTE_SENSORS[${SENSORa}]} --token ${token} --key ${key})
temp_c=$(echo "${info}" | grep indoor | awk ' {print $3}')
elif [ "${PW_SENSOR_TYPE[${SENSORa}]}" == "system" ]; then
if [[ "${SENSOR}" = *"CPU"* ]]; then
temp_c=$(vcgencmd measure_temp)