zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

Tuya ZTH05 sensor Humidity & temperature

Open jafreenas opened this issue 3 years ago • 117 comments

Link

https://fr.aliexpress.com/item/1005004666251263.html

Database entry

{"id":2,"type":"EndDevice","ieeeAddr":"0xa4c138c4abef3737","nwkAddr":13159,"manufId":4417,"manufName":"_TZE204_upagmta9","powerSource":"Battery","modelId":"TS0601","epList":[1],"endpoints":{"1":{"profId":260,"epId":1,"devId":81,"inClusterList":[4,5,61184,0],"outClusterList":[25,10],"clusters":{"genBasic":{"attributes":{"65503":"灭,\u0019灭,\u0007\u0000\u0000\u0000\u0000\u0011","65506":56,"65508":1,"65534":0,"stackVersion":0,"dateCode":"","manufacturerName":"_TZE204_upagmta9","zclVersion":3,"appVersion":73,"modelId":"TS0601","powerSource":3}}},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":73,"stackVersion":0,"hwVersion":1,"dateCode":"","zclVersion":3,"interviewCompleted":true,"meta":{"configured":-1440156621},"lastSeen":1696246219222,"defaultSendRequestWhen":"immediate"}

Comments

I have a problem with this sensor . i have full update a this day.

Zigbee2mqtt Edge , Home Assistant , lastet versions .

debug 2023-10-02 13:56:06: Saving state to file /config/zigbee2mqtt/state.json debug 2023-10-02 13:56:55: Received Zigbee message from '0xa4c138c4abef3737', type 'attributeReport', cluster 'genBasic', data '{"65503":";��,\u0019;��,\u0007\u0000\u0000\u0000\u0000\u0011"}' from endpoint 1 with groupID 0 debug 2023-10-02 13:57:15: Received Zigbee message from '0xa4c138c4abef3737', type 'read', cluster 'genTime', data '["localTime"]' from endpoint 1 with groupID 0 debug 2023-10-02 13:57:17: Received Zigbee message from '0xa4c138c4abef3737', type 'attributeReport', cluster 'genBasic', data '{"65506":56,"65508":1,"appVersion":73}' from endpoint 1 with groupID 0 debug 2023-10-02 13:57:18: Received Zigbee message from '0xa4c138c4abef3737', type 'commandMcuVersionResponse', cluster 'manuSpecificTuya', data '{"seq":768,"version":64}' from endpoint 1 with groupID 0 debug 2023-10-02 13:57:18: No converter available for 'ZTH05' with cluster 'manuSpecificTuya' and type 'commandMcuVersionResponse' and data '{"seq":768,"version":64}' debug 2023-10-02 13:58:42: Received Zigbee message from '0xa4c138c4abef3737', type 'attributeReport', cluster 'genBasic', data '{"65503":"���,\u0019���,\u0007\u0000\u0000\u0000\u0000\u0011"}' from endpoint 1 with groupID 0 debug 2023-10-02 13:59:20: Received Zigbee message from '0xa4c138c4abef3737', type 'read', cluster 'genTime', data '["localTime"]' from endpoint 1 with groupID 0 debug 2023-10-02 13:59:21: Received Zigbee message from '0xa4c138c4abef3737', type 'attributeReport', cluster 'genBasic', data '{"65506":56,"65508":1,"appVersion":73}' from endpoint 1 with groupID 0 debug 2023-10-02 13:59:22: Received Zigbee message from '0xa4c138c4abef3737', type 'commandMcuVersionResponse', cluster 'manuSpecificTuya', data '{"seq":768,"version":64}' from endpoint 1 with groupID 0 debug 2023-10-02 13:59:22: No converter available for 'ZTH05' with cluster 'manuSpecificTuya' and type 'commandMcuVersionResponse' and data '{"seq":768,"version":64

External converter

No response

Supported color modes

No response

Color temperature range

No response

jafreenas avatar Oct 02 '23 12:10 jafreenas

tuya.js :

fingerprint: tuya.fingerprint('TS0601', ['_TZE200_yjjdcqsq', '_TZE200_9yapgbuv', '_TZE204_upagmta9', '_TZE200_cirvgep4']), model: 'TS0601_temperature_humidity_sensor_2', vendor: 'TuYa', description: 'Temperature and humidity sensor', fromZigbee: [tuya.fz.datapoints], toZigbee: [tuya.tz.datapoints], onEvent: tuya.onEvent({queryOnDeviceAnnounce: true}), configure: tuya.configureMagicPacket, exposes: [e.temperature(), e.humidity(), tuya.exposes.batteryState(), tuya.exposes.temperatureUnit()], meta: { tuyaDatapoints: [ [1, 'temperature', tuya.valueConverter.divideBy10], [2, 'humidity', tuya.valueConverter.raw], [3, 'battery_state', tuya.valueConverter.batteryState], [9, 'temperature_unit', tuya.valueConverter.temperatureUnitEnum], ], }, whiteLabel: [ tuya.whitelabel('TuYa', 'ZTH01', 'Temperature and humidity sensor', ['_TZE200_yjjdcqsq']), tuya.whitelabel('TuYa', 'ZTH02', 'Temperature and humidity sensor', ['_TZE200_9yapgbuv']), tuya.whitelabel('TuYa', 'ZTH05', 'Temperature and humidity sensor', ['_TZE204_upagmta9']), tuya.whitelabel('TuYa', 'ZTH08-E', 'Temperature and humidity sensor', ['_TZE200_cirvgep4']), ], },

but doesn't work . :s

jafreenas avatar Oct 02 '23 16:10 jafreenas

please help me :)

jafreenas avatar Oct 03 '23 18:10 jafreenas

You can ignore the no converter available messages, _TZE204_upagmta9 is supported out-of-the-box in z2m 1.33.1

Koenkk avatar Oct 03 '23 18:10 Koenkk

hello ,

Received Zigbee message from '0xa4c1385bbb64a21f', type 'attributeReport', cluster 'genBasic', data '{"65503":"91�,\u001991�,\u0007\u0000\u0000\u0000\u0000\u0011"}' from endpoint 1 with groupID 0

image

jafreenas avatar Oct 03 '23 18:10 jafreenas

I run into the same problem with the same sensor. I can connect, but only get linkquality data.

{
    "battery_state": null,
    "humidity": null,
    "linkquality": 160,
    "temperature": null,
    "temperature_unit": null
}

I am pretty new to zigbee, so please let me know what kind of information you need to help. Thanks

aerandir08 avatar Oct 06 '23 12:10 aerandir08

MR Koenkk say , _TZE204_upagmta9 is supported out-of-the-box in z2m 1.33.1 but after a couple of days on the configutation it's doesn work , so i stay online for the update and another guy who have the same problem .

jafreenas avatar Oct 06 '23 13:10 jafreenas

@aerandir08 have u a probleme with batterry ? my battery is empty on 24h

jafreenas avatar Oct 06 '23 13:10 jafreenas

@aerandir08 have u a probleme with batterry ? my battery is empty on 24h

I just got the sensors. The battery is not full. It says about 50%. I put on a external power supply, but it´s the same result.

aerandir08 avatar Oct 06 '23 16:10 aerandir08

Also ordered this device and paired to z2m and working fine on 1.33.1:

ZTH05

ZTH05_2

Initially the device showed Null but I selected celcius as Temperature unit, then values started appearing. Maybe selecting a Temperature unit is required?

rdeneer avatar Oct 10 '23 09:10 rdeneer

IMG_20231010_130212

it is the same sensor ?

3:03:08Received Zigbee message from '0xa4c1385bbb64a21f', type 'attributeReport', cluster 'genBasic', data '{"65503":"�\u0007�,\u0019�\u0007�,\u0007\u0000\u0000\u0000\u0000\u0011"}' from endpoint 1 with groupID 0 Debug 2023-10-10 13:03:43Received Zigbee message from '0xa4c1385bbb64a21f', type 'read', cluster 'genTime', data '["localTime"]' from endpoint 1 with groupID 0 Debug 2023-10-10 13:03:45Received Zigbee message from '0xa4c1385bbb64a21f', type 'attributeReport', cluster 'genBasic', data '{"65506":56,"65508":1,"appVersion":73}' from endpoint 1 with groupID 0 Debug 2023-10-10 13:03:46Received Zigbee message from '0xa4c1385bbb64a21f', type 'commandMcuVersionResponse', cluster 'manuSpecificTuya', data '{"seq":768,"version":64}' from endpoint 1 with groupID 0

image

image

jafreenas avatar Oct 10 '23 11:10 jafreenas

Mine looks like this: IMG_1158

Values are reported as such:

debug 2023-10-10 13:47:38: Received Zigbee message from 'garage/thermometer', type 'commandDataReport', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[0,0,0,187],"type":"Buffer"},"datatype":2,"dp":1}],"seq":10752}' from endpoint 1 with groupID 0 debug 2023-10-10 13:47:39: Received Zigbee message from 'garage/thermometer', type 'commandDataReport', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[0,0,0,73],"type":"Buffer"},"datatype":2,"dp":2}],"seq":11008}' from endpoint 1 with groupID 0

rdeneer avatar Oct 10 '23 11:10 rdeneer

I’m going crazy, I have 5 sensors, none of them work, I have to make a mistake somewhere, but or? I don’t know!

it's my log at this time :

2023-10-10 13:59:38Received Zigbee message from '0xa4c1385bbb64a21f', type 'attributeReport', cluster 'genBasic', data '{"65503":"�\u0014�,\u0019�\u0014�,\u0007\u0000\u0000\u0000\u0000\u0011"}' from endpoint 1 with groupID 0 Debug 2023-10-10 14:00:02Received Zigbee message from '0xa4c1385bbb64a21f', type 'read', cluster 'genTime', data '["localTime"]' from endpoint 1 with groupID 0 Debug 2023-10-10 14:00:03Received Zigbee message from '0xa4c1385bbb64a21f', type 'attributeReport', cluster 'genBasic', data '{"65506":56,"65508":1,"appVersion":73}' from endpoint 1 with groupID 0 Debug 2023-10-10 14:00:04Received Zigbee message from '0xa4c1385bbb64a21f', type 'commandMcuVersionResponse', cluster 'manuSpecificTuya', data '{"seq":768,"version":64}' from endpoint 1 with groupID 0 Debug 2023-10-10 14:00:04No converter available for 'ZTH05' with cluster 'manuSpecificTuya' and type 'commandMcuVersionResponse' and data '{"seq":768,"version":64}'

jafreenas avatar Oct 10 '23 11:10 jafreenas

@rdneer u have a external decoder ? i see difference between :

cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[0,0,0,73],"type":"Buffer"},"datatype":2,"dp":2}],"seq":11008},

and this mine

cluster 'manuSpecificTuya', données '{"seq":768,"version":64}'

jafreenas avatar Oct 10 '23 12:10 jafreenas

I've re-paired the device to see what's happening when the device joins:

debug 2023-10-10 14:16:40: Device '0xa4c1384cfaf9961f' announced itself
debug 2023-10-10 14:16:49: Received Zigbee message from '0xa4c1384cfaf9961f', type 'commandMcuVersionResponse', cluster 'manuSpecificTuya', data '{"seq":1280,"version":64}' from endpoint 1 with groupID 0
debug 2023-10-10 14:16:49: Skipping message, definition is undefined and still interviewing
debug 2023-10-10 14:16:50: Received Zigbee message from '0xa4c1384cfaf9961f', type 'attributeReport', cluster 'genBasic', data '{"65506":56,"65508":1,"appVersion":73}' from endpoint 1 with groupID 0
debug 2023-10-10 14:16:50: Skipping message, definition is undefined and still interviewing
debug 2023-10-10 14:16:50: Received Zigbee message from '0xa4c1384cfaf9961f', type 'read', cluster 'genTime', data '["localTime"]' from endpoint 1 with groupID 0
debug 2023-10-10 14:16:50: Skipping message, definition is undefined and still interviewing
debug 2023-10-10 14:16:55: Received Zigbee message from '0xa4c1384cfaf9961f', type 'readResponse', cluster 'genBasic', data '{"modelId":"TS0601"}' from endpoint 1 with groupID 0
debug 2023-10-10 14:16:55: Skipping message, definition is undefined and still interviewing
debug 2023-10-10 14:16:55: Received Zigbee message from '0xa4c1384cfaf9961f', type 'readResponse', cluster 'genBasic', data '{"manufacturerName":"_TZE204_upagmta9"}' from endpoint 1 with groupID 0
debug 2023-10-10 14:16:55: Skipping message, definition is undefined and still interviewing
debug 2023-10-10 14:16:56: Received Zigbee message from '0xa4c1384cfaf9961f', type 'readResponse', cluster 'genBasic', data '{"powerSource":3}' from endpoint 1 with groupID 0
debug 2023-10-10 14:16:56: Skipping message, definition is undefined and still interviewing
debug 2023-10-10 14:16:56: Received Zigbee message from '0xa4c1384cfaf9961f', type 'readResponse', cluster 'genBasic', data '{"zclVersion":3}' from endpoint 1 with groupID 0
debug 2023-10-10 14:16:56: Skipping message, definition is undefined and still interviewing
debug 2023-10-10 14:16:56: Received Zigbee message from '0xa4c1384cfaf9961f', type 'readResponse', cluster 'genBasic', data '{"stackVersion":0}' from endpoint 1 with groupID 0
debug 2023-10-10 14:16:56: Skipping message, definition is undefined and still interviewing
debug 2023-10-10 14:16:56: Received Zigbee message from '0xa4c1384cfaf9961f', type 'readResponse', cluster 'genBasic', data '{"hwVersion":1}' from endpoint 1 with groupID 0
debug 2023-10-10 14:16:56: Skipping message, definition is undefined and still interviewing
debug 2023-10-10 14:16:57: Received Zigbee message from '0xa4c1384cfaf9961f', type 'readResponse', cluster 'genBasic', data '{"dateCode":""}' from endpoint 1 with groupID 0
debug 2023-10-10 14:16:57: Skipping message, definition is undefined and still interviewing
debug 2023-10-10 14:16:57: Received Zigbee message from '0xa4c1384cfaf9961f', type 'readResponse', cluster 'genBasic', data '{}' from endpoint 1 with groupID 0
debug 2023-10-10 14:16:57: Skipping message, definition is undefined and still interviewing
info  2023-10-10 14:16:57: Successfully interviewed '0xa4c1384cfaf9961f', device has successfully been paired
info  2023-10-10 14:16:57: Device '0xa4c1384cfaf9961f' is supported, identified as: TuYa Temperature and humidity sensor (ZTH05)

Is this what you see when you pair the device to the coordinator? I'm not using an external converter, default 1.33.1. Coordinator type zStack3x0 Coordinator revision 20230507

rdeneer avatar Oct 10 '23 12:10 rdeneer

info 2023-10-08 11:08:34: Successfully interviewed '0xa4c1385bbb64a21f', device has successfully been paired info 2023-10-08 11:08:34: Device '0xa4c1385bbb64a21f' is supported, identified as: TuYa Temperature and humidity sensor (ZTH05) info 2023-10-08 11:08:34: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"definition":{"description":"Temperature and humidity sensor","exposes":[{"access":1,"description":"Measured temperature value","label":"Temperature","name":"temperature","property":"temperature","type":"numeric","unit":"°C"},{"access":1,"description":"Measured relative humidity","label":"Humidity","name":"humidity","property":"humidity","type":"numeric","unit":"%"},{"access":1,"description":"State of the battery","label":"Battery state","name":"battery_state","property":"battery_state","type":"enum","values":["low","medium","high"]},{"access":3,"description":"Temperature unit","label":"Temperature unit","name":"temperature_unit","property":"temperature_unit","type":"enum","values":["celsius","fahrenheit"]},{"access":1,"description":"Link quality (signal strength)","label":"Linkquality","name":"linkquality","property":"linkquality","type":"numeric","unit":"lqi","value_max":255,"value_min":0}],"model":"ZTH05","options":[{"access":2,"description":"Number of digits after decimal point for temperature, takes into effect on next report of device.","label":"Temperature precision","name":"temperature_precision","property":"temperature_precision","type":"numeric","value_max":3,"value_min":0},{"access":2,"description":"Calibrates the temperature value (absolute offset), takes into effect on next report of device.","label":"Temperature calibration","name":"temperature_calibration","property":"temperature_calibration","type":"numeric"},{"access":2,"description":"Number of digits after decimal point for humidity, takes into effect on next report of device.","label":"Humidity precision","name":"humidity_precision","property":"humidity_precision","type":"numeric","value_max":3,"value_min":0},{"access":2,"description":"Calibrates the humidity value (absolute offset), takes into effect on next report of device.","label":"Humidity calibration","name":"humidity_calibration","property":"humidity_calibration","type":"numeric"}],"supports_ota":false,"vendor":"TuYa"},"friendly_name":"0xa4c1385bbb64a21f","ieee_address":"0xa4c1385bbb64a21f","status":"successful","supported":true},"type":"device_interview"}' info 2023-10-08 11:08:34: Configuring '0xa4c1385bbb64a21f' info 2023-10-08 11:08:34: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"interview_successful","meta":{"description":"Temperature and humidity sensor","friendly_name":"0xa4c1385bbb64a21f","model":"ZTH05","supported":true,"vendor":"TuYa"},"type":"pairing"}' debug 2023-10-08 11:08:34: Received Zigbee message from '0xa4c1385bbb64a21f', type 'readResponse', cluster 'genBasic', data '{"65534":0,"appVersion":73,"manufacturerName":"_TZE204_upagmta9","modelId":"TS0601","powerSource":3,"zclVersion":3}' from endpoint 1 with groupID 0 info 2023-10-08 11:08:34: Successfully configured '0xa4c1385bbb64a21f' debug 2023-10-08 11:08:40: Received Zigbee message from '0xa4c1385bbb64a21f', type 'readResponse', cluster 'genBasic', data '{}' from endpoint 1 with groupID 0 info 2023-10-08 11:08:40: Successfully interviewed '0xa4c1385bbb64a21f', device has successfully been paired info 2023-10-08 11:08:40: Device '0xa4c1385bbb64a21f' is supported, identified as: TuYa Temperature and humidity sensor (ZTH05) info 2023-10-08 11:08:40: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"definition":{"description":"Temperature and humidity sensor","exposes":[{"access":1,"description":"Measured temperature value","label":"Temperature","name":"temperature","property":"temperature","type":"numeric","unit":"°C"},{"access":1,"description":"Measured relative humidity","label":"Humidity","name":"humidity","property":"humidity","type":"numeric","unit":"%"},{"access":1,"description":"State of the battery","label":"Battery state","name":"battery_state","property":"battery_state","type":"enum","values":["low","medium","high"]},{"access":3,"description":"Temperature unit","label":"Temperature unit","name":"temperature_unit","property":"temperature_unit","type":"enum","values":["celsius","fahrenheit"]},{"access":1,"description":"Link quality (signal strength)","label":"Linkquality","name":"linkquality","property":"linkquality","type":"numeric","unit":"lqi","value_max":255,"value_min":0}],"model":"ZTH05","options":[{"access":2,"description":"Number of digits after decimal point for temperature, takes into effect on next report of device.","label":"Temperature precision","name":"temperature_precision","property":"temperature_precision","type":"numeric","value_max":3,"value_min":0},{"access":2,"description":"Calibrates the temperature value (absolute offset), takes into effect on next report of device.","label":"Temperature calibration","name":"temperature_calibration","property":"temperature_calibration","type":"numeric"},{"access":2,"description":"Number of digits after decimal point for humidity, takes into effect on next report of device.","label":"Humidity precision","name":"humidity_precision","property":"humidity_precision","type":"numeric","value_max":3,"value_min":0},{"access":2,"description":"Calibrates the humidity value (absolute offset), takes into effect on next report of device.","label":"Humidity calibration","name":"humidity_calibration","property":"humidity_calibration","type":"numeric"}],"supports_ota":false,"vendor":"TuYa"},"friendly_name":"0xa4c1385bbb64a21f","ieee_address":"0xa4c1385bbb64a21f","status":"successful","supported":true},"type":"device_interview"}' info 2023-10-08 11:08:40: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"interview_successful","meta":{"description":"Temperature and humidity sensor","friendly_name":"0xa4c1385bbb64a21f","model":"ZTH05","supported":true,"vendor":"TuYa"},"type":"pairing"}' debug 2023-10-08 11:08:40: Received Zigbee message from '0xa4c1385bbb64a21f', type 'attributeReport', cluster 'genBasic', data '{"65506":56,"65508":1,"appVersion":73}' from endpoint 1 with groupID 0

jafreenas avatar Oct 10 '23 12:10 jafreenas

You think this is coming do coordinator?

Zigbee2MQTT:info 2023-10-10 14:36:07: Starting Zigbee2MQTT version 1.33.1-dev (commit #2aae1bd) Zigbee2MQTT:info 2023-10-10 14:36:07: Starting zigbee-herdsman (0.19.1) Zigbee2MQTT:debug 2023-10-10 14:36:07: Using zigbee-herdsman with settings: '{"adapter":{"concurrent":null,"delay":null,"disableLED":false},"backupPath":"/config/zigbee2mqtt/coordinator_backup.json","databaseBackupPath":"/config/zigbee2mqtt/database.db.backup","databasePath":"/config/zigbee2mqtt/database.db","network":{"channelList":[11],"extendedPanID":[221,221,221,221,221,221,221,221],"networkKey":"HIDDEN","panID":6754},"serialPort":{"adapter":"ezsp","path":"/dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20230803180624-if00"}}' Zigbee2MQTT:info 2023-10-10 14:36:11: zigbee-herdsman started (resumed) Zigbee2MQTT:info 2023-10-10 14:36:11: Coordinator firmware version: '{"meta":{"maintrel":"3 ","majorrel":"6","minorrel":"10","product":8,"revision":"6.10.3.0 build 297"},"type":"EZSP v8"}'

jafreenas avatar Oct 10 '23 12:10 jafreenas

@jafreenas I'm facing the same issue with the same coordinator :

info  2023-10-10 14:58:55: Starting Zigbee2MQTT version 1.33.1 (commit #7e630391)
info  2023-10-10 14:58:55: Starting zigbee-herdsman (0.19.0)
debug 2023-10-10 14:58:55: Using zigbee-herdsman with settings: '{"adapter":{"concurrent":null,"delay":null,"disableLED":false},"backupPath":"/opt/zigbee2mqtt/data/coordinator_backup.json","databaseBackupPath":"/opt/zigbee2mqtt/data/database.db.backup","databasePath":"/opt/zigbee2mqtt/data/database.db","network":{"channelList":[11],"extendedPanID":[221,221,221,221,221,221,221,221],"networkKey":"HIDDEN","panID":6754},"serialPort":{"path":"/dev/ttyACM0"}}'
info  2023-10-10 14:58:59: zigbee-herdsman started (resumed)
info  2023-10-10 14:58:59: Coordinator firmware version: '{"meta":{"maintrel":"3 ","majorrel":"6","minorrel":"10","product":8,"revision":"6.10.3.0 build 297"},"type":"EZSP v8"}'

Be aware that it is in experimental mode, so the issue may be fixed later ?

fbenoist avatar Oct 12 '23 08:10 fbenoist

@aerandir08 have u a probleme with batterry ? my battery is empty on 24h

Yes, i have the same problem. I soldered some wires on to measure the current consumption. It takes about 9.7 mA in paring mode and about 4.8 mA if it´s paired. So a 220 mAh CR2032 takes about 2 days to be empty. Seems like something is wrong with these guys. I will go with the WSD500A. They work perfectly fine out of the box.

aerandir08 avatar Oct 12 '23 19:10 aerandir08

I received three ZTH05. The pairing is ok. I have no value in Z2M, but if I push one time on the button behind the ZTH05, the values are displayed in Z2M. 👍

francisbesset avatar Oct 21 '23 08:10 francisbesset

I'm surprised Francis, I also have the ZTH05, and they don't report any information, could see your logs ?

jafreenas avatar Oct 21 '23 13:10 jafreenas