Repository navigation
Replies: 2 comments 2 replies
|
Oh boy. Tuya is very creative with the Zigbee protocol. Actually this is the first time I see Tuya device reporting multiple values at once. Indeed the code should be somehow easy to change into this. I'm don't have bandwidth for now to make the change. Any PR is welcome. |
1 reply
|
To be clear, this is no issue. Tuya changes are not conform to zigbee standard. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
PROBLEM DESCRIPTION
Using zigbee, Tuya uses a specific cluster 0xef00 and protocol. It has a concept called "DataPoint".
Tasmota manages this protocol as we may see here. However, it doesn't support multiple DataPoints in a single
TY_DATA_RESPONSE/TY_DATA_REPORT.Actually, the payload must be entirely exhausted, as it may contain more than one DataPoint. The current implementation only consumes and report the first one. This results in data lost.
REQUESTED INFORMATION
Console log:
20:55:53.188 ZIG: {"ZbZCLReceived":{"groupid":0,"clusterid":"0xEF00","srcaddr":"0x629F","srcendpoint":1,"dstendpoint":1,"wasbroadcast":0,"LinkQuality":71,"securityuse":0,"seqnumber":213,"fc":"0x09","frametype":1,"direction":1,"disableresp":0,"manuf":"0x0000","transact":117,"cmdid":"0x02","payload":"08CC030200040000002E05020004000000846E0200040000022D"}} 20:55:53.190 ZigbeeZCLSend device: 0x629F, endpoint:1, cluster:0xEF00, cmd:0x0B, send:"0200" 20:55:53.191 ZIG: ZbEZSPSend 3400009F62040100EF01010000000075010510750B0200 20:55:53.193 ZIG: ZbZCLRawReceived: {"0x629F":{"EF00/0203":46,"Endpoint":1,"LinkQuality":71}}TO REPRODUCE
Buy and link a NAS-STH02B2
I've linked the received payload, and what is "reported" by Tasmota in the
SENSORtopic.EXPECTED BEHAVIOUR
The payload
08CC030200040000002E05020004000000846E0200040000022Dshould be parsed like this:And should result in something similar to:
{"0x629F":{"EF00/0203":46, "EF00/0205":132, "EF00/026E":557, "Endpoint":1,"LinkQuality":71}}I'm not a C/CPP developer, but if may help in any manner, don't hesitate to ping me, and I'll be glad to help you.
All reactions