zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

TUYA like temperature humidity sensor cannot be paired

Open AivarasAukselis opened this issue 6 years ago • 9 comments

What happened

Recently I bought a temperature humidity sensor. https://www.amazon.nl/gp/product/B089K1NSZ9/ref=ppx_yo_dt_b_asin_title_o00_s00?ie=UTF8&psc=1 It looks like TUYA TS0201 clone or something https://www.zigbee2mqtt.io/devices/TS0201.html

However when I connect to zigbee2mqtt, it does not work. z2ma shows that it is functioning properly but the sensor readings are not published to mqtt. Furthermore z2ma reports model and make as unknown: Zigbee Id is 0xec1bbdfffea227d0. Address on Zigbee Network is 0x5CC2. Link quality is 202/255. Model is unknown by unknown. Hardware version is unknown. Firmware version is unknown. This device type is EndDevice

If I view z2mqtt logs during the pairing of the device I see that the values from the device are received successfully but this warning is also printed: Received message from unsupported device with Zigbee model 'undefined'

What did you expect to happen

Device pair successfully and the readings from the device published to mqtt.

How to reproduce it (minimal and precise)

Pair said device to zigbee2mqtt network

Debug Info

https://paste.ubuntu.com/p/Yfp2RNHdYz/

Zigbee2mqtt version: Adapter hardware: CC2531 Adapter firmware version: {'type': 'zStack12', 'meta': {'transportrev': 2, 'product': 0, 'majorrel': 2, 'minorrel': 6, 'maintrel': 3, 'revision': 20190608}}

AivarasAukselis avatar Aug 04 '20 16:08 AivarasAukselis

I have removed the device from zigbee2mqtt and installed dev version. However, the issue is the same. When repairing the device from new, the logs show more information: https://paste.ubuntu.com/p/G4KnW7NVb5/

AivarasAukselis avatar Aug 04 '20 20:08 AivarasAukselis

It helped me with the same device to remove manually records from database.db state.json, and database.db.backup. After such cleanup pairing was successful.

paveldn avatar Aug 09 '20 08:08 paveldn

@paveldn I tried that but it still did not work. However, what worked for me is manually adding manufName and modelId to database.db. making the entry as follows

{"id":8,"type":"EndDevice","ieeeAddr":"0xec1bbdfffea227d0","nwkAddr":34506,"manufId":4098,"manufName":"TuYa","powerSource":"Battery","modelId":"TS0201","epList":[1],"endpoints":{"1":{"profId":260,"epId":1,"devId":770,"inClusterList":[0,1,1026,1029],"outClusterList":[25],"clusters":{"msTemperatureMeasurement":{"attributes":{"measuredValue":2780}},"genBasic":{"attributes":{"powerSource":3,"zclVersion":3,"appVersion":67,"stackVersion":0,"hwVersion":1,"dateCode":""}},"msRelativeHumidity":{"attributes":{"measuredValue":4550}},"genPowerCfg":{"attributes":{"batteryVoltage":32,"batteryPercentageRemaining":200}}},"binds":[]}},"appVersion":67,"stackVersion":0,"hwVersion":1,"dateCode":"","zclVersion":3,"interviewCompleted":true,"meta":{},"lastSeen":1596574360431}

Why were these entries not added automatically? is it an issue with the device, bridge or my setup? I see that manufld and devId was added automatically. Is it something unique to the manufacturers and devices? perhaps devices settings could be bound to these ids in case the devices do not report text manufacturer and model?

AivarasAukselis avatar Aug 09 '20 09:08 AivarasAukselis

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar Sep 09 '20 00:09 github-actions[bot]

manually adding manufName and modelId fixed it for me also. Strange...

wimpie007 avatar Nov 05 '20 11:11 wimpie007

I have this issue. it can't pair

loglux avatar Nov 13 '20 13:11 loglux

I have the same issue after updating to the latest HA, Zigbee2MQTT and upgrading my C26x2R1. One of these have broken the recognition of my Tuya device, I assume its the C26x2R1 firmware as I had to reconnect all my ZigBee devices.

zigbee2mqtt-1.16.1 Coordinator firmware version: '{"meta":{"maintrel":1,"majorrel":2,"minorrel":7,"product":1,"revision":20201026,"transportrev":2},"type":"zStack3x0"}' Currently 18 devices are joined

Sampledelic avatar Nov 21 '20 11:11 Sampledelic

I have the same issue.

7system7 avatar Oct 01 '22 09:10 7system7

I have the same problem with: https://expo.tuya.com/product/338587

My dongle is: https://sonoff.tech/product/gateway-and-sensors/sonoff-zigbee-3-0-usb-dongle-plus-e/ pi@raspberrypi:~ $ find /dev/serial /dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20221029114026-if00

Coordinator firmware version: '{"meta":{"maintrel":"3 ","majorrel":"6","minorrel":"10","product":8,"revision":"6.10.3.0 build 297"},"type":"EZSP v8"}'

What can I do to discover the device?

floresek avatar Jan 14 '23 14:01 floresek