We encountered some problems when using SWV. When the value received by the data exceeds 127, errors will occur in the data conversion
Received here is correct:
[2025-07-22 19:09:26] debug: zh:zstack:znp: <-- AREQ: AF - incomingMsg - {"groupid":0,"clusterid":64529,"srcaddr":28490,"srcendpoint":1,"dstendpoint":1,"wasbroadcast":0,"linkquality":180,"securityuse":0,"timestamp":7791435,"transseqnumber":0,"len":17,"data":{"type":"Buffer","data":[8,52,10,9,80,66,10,1,11,0,0,0,127,0,0,0,144]}}
But here his data conversion is abnormal
attrData":"\u0001\u000b\u0000\u0000\u0000\u0000\u0000\u0000 " ---was abnormal
[2025-07-22 19:09:26] debug: zh:controller: Received payload: clusterID=64529, address=28490, groupID=0, endpoint=1, destinationEndpoint=1, wasBroadcast=false, linkQuality=180, frame={"header":{"frameControl":{"frameType":0,"manufacturerSpecific":false,"direction":1,"disableDefaultResponse":false,"reservedBits":0},"transactionSequenceNumber":52,"commandIdentifier":10},"payload":[{"attrId":20489,"dataType":66,"attrData":"\u0001\u000b\u0000\u0000\u0000\u0000\u0000\u0000 "}],"command":{"ID":10,"name":"report","parameters":[{"name":"attrId","type":33},{"name":"dataType","type":32},{"name":"attrData","type":1000}]}}
log:
[2025-07-22 19:09:26] debug: zh:zstack:unpi:parser: <-- [52,10,9,80,66,10,1,11,0,0,0,127,0,0,0,144,180,75,28,114]
[2025-07-22 19:09:26] debug: zh:zstack:unpi:parser: --- parseNext [254,37,68,129,0,0,17,252,74,111,1,1,0,180,0,75,227,118,0,0,17,8,52,10,9,80,66,10,1,11,0,0,0,127,0,0,0,144,180,75,28,114]
[2025-07-22 19:09:26] debug: zh:zstack:unpi:parser: --> parsed 37 - 2 - 4 - 129 - [0,0,17,252,74,111,1,1,0,180,0,75,227,118,0,0,17,8,52,10,9,80,66,10,1,11,0,0,0,127,0,0,0,144,180,75,28] - 114
[2025-07-22 19:09:26] debug: zh:zstack:znp: <-- AREQ: AF - incomingMsg - {"groupid":0,"clusterid":64529,"srcaddr":28490,"srcendpoint":1,"dstendpoint":1,"wasbroadcast":0,"linkquality":180,"securityuse":0,"timestamp":7791435,"transseqnumber":0,"len":17,"data":{"type":"Buffer","data":[8,52,10,9,80,66,10,1,11,0,0,0,127,0,0,0,144]}}
[2025-07-22 19:09:26] debug: zh:controller: Received payload: clusterID=64529, address=28490, groupID=0, endpoint=1, destinationEndpoint=1, wasBroadcast=false, linkQuality=180, frame={"header":{"frameControl":{"frameType":0,"manufacturerSpecific":false,"direction":1,"disableDefaultResponse":false,"reservedBits":0},"transactionSequenceNumber":52,"commandIdentifier":10},"payload":[{"attrId":20489,"dataType":66,"attrData":"\u0001\u000b\u0000\u0000\u0000\u0000\u0000\u0000 "}],"command":{"ID":10,"name":"report","parameters":[{"name":"attrId","type":33},{"name":"dataType","type":32},{"name":"attrData","type":1000}]}}
[2025-07-22 19:09:26] debug: zh:controller:endpoint: ZCL command 0x003c84fffece3963/1 customClusterEwelink.defaultRsp({"cmdId":10,"statusCode":0}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":1,"reservedBits":0,"transactionSequenceNumber":52,"writeUndiv":false})
[2025-07-22 19:09:26] debug: zh:controller:endpoint: Request Queue (0x003c84fffece3963/1): send defaultRsp request immediately (sendPolicy=undefined)
[2025-07-22 19:09:26] debug: zh:zstack:unpi:parser: --- parseNext []
[2025-07-22 19:09:26] debug: z2m: Received Zigbee message from '0x003c84fffece3963', type 'attributeReport', cluster 'customClusterEwelink', data '{"20489":"\u0001\u000b\u0000\u0000\u0000\u0000\u0000\u0000 "}' from endpoint 1 with groupID 0
[2025-07-22 19:09:26] debug: zhc:sonoff: buffer====> 1 11 0 0 0 127
[2025-07-22 19:09:26] debug: zhc:sonoff: buffer====> 0 0 0 239
[2025-07-22 19:09:26] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/0x003c84fffece3963', payload '{"auto_close_when_water_shortage":"ENABLE","battery":74,"current_device_status":"water_shortage","cyclic_quantitative_irrigation":{"current_count":1,"irrigation_capacity":259,"irrigation_interval":110,"total_number":11},"cyclic_timed_irrigation":{"current_count":0,"irrigation_duration":0,"irrigation_interval":0,"total_number":0},"flow":0,"linkquality":180,"state":"ON","update":{"installed_version":4100,"latest_version":4100,"state":"idle"}}'
[2025-07-22 19:09:26] debug: zh:zstack:unpi:parser: <-- [254,1,100,1,0,100]
[2025-07-22 19:09:26] debug: zh:zstack:unpi:parser: --- parseNext [254,1,100,1,0,100]
[2025-07-22 19:09:26] debug: zh:zstack:unpi:parser: --> parsed 1 - 3 - 4 - 1 - [0] - 100
[2025-07-22 19:09:26] debug: zh:zstack:znp: <-- SRSP: AF - dataRequest - {"status":0}
[2025-07-22 19:09:26] debug: zh:zstack:unpi:parser: --- parseNext []
[2025-07-22 19:09:26] debug: zh:zstack:unpi:parser: <-- [254,3,68,128,0,1,32,230]
[2025-07-22 19:09:26] debug: zh:zstack:unpi:parser: --- parseNext [254,3,68,128,0,1,32,230]
[2025-07-22 19:09:26] debug: zh:zstack:unpi:parser: --> parsed 3 - 2 - 4 - 128 - [0,1,32] - 230
[2025-07-22 19:09:26] debug: zh:zstack:znp: <-- AREQ: AF - dataConfirm - {"status":0,"endpoint":1,"transid":32}
[2025-07-22 19:09:26] debug: zh:zstack:unpi:parser: --- parseNext []
[2025-07-22 19:09:26] debug: zh:zstack: sendZclFrameToEndpointInternal 0x003c84fffece3963:28490/1 (0,0,1)
We encountered some problems when using SWV. When the value received by the data exceeds 127, errors will occur in the data conversion
Received here is correct:
[2025-07-22 19:09:26] debug: zh:zstack:znp: <-- AREQ: AF - incomingMsg - {"groupid":0,"clusterid":64529,"srcaddr":28490,"srcendpoint":1,"dstendpoint":1,"wasbroadcast":0,"linkquality":180,"securityuse":0,"timestamp":7791435,"transseqnumber":0,"len":17,"data":{"type":"Buffer","data":[8,52,10,9,80,66,10,1,11,0,0,0,127,0,0,0,144]}}
But here his data conversion is abnormal
attrData":"\u0001\u000b\u0000\u0000\u0000\u0000\u0000\u0000 " ---was abnormal
[2025-07-22 19:09:26] debug: zh:controller: Received payload: clusterID=64529, address=28490, groupID=0, endpoint=1, destinationEndpoint=1, wasBroadcast=false, linkQuality=180, frame={"header":{"frameControl":{"frameType":0,"manufacturerSpecific":false,"direction":1,"disableDefaultResponse":false,"reservedBits":0},"transactionSequenceNumber":52,"commandIdentifier":10},"payload":[{"attrId":20489,"dataType":66,"attrData":"\u0001\u000b\u0000\u0000\u0000\u0000\u0000\u0000 "}],"command":{"ID":10,"name":"report","parameters":[{"name":"attrId","type":33},{"name":"dataType","type":32},{"name":"attrData","type":1000}]}}
log:
[2025-07-22 19:09:26] debug: zh:zstack:unpi:parser: <-- [52,10,9,80,66,10,1,11,0,0,0,127,0,0,0,144,180,75,28,114]
[2025-07-22 19:09:26] debug: zh:zstack:unpi:parser: --- parseNext [254,37,68,129,0,0,17,252,74,111,1,1,0,180,0,75,227,118,0,0,17,8,52,10,9,80,66,10,1,11,0,0,0,127,0,0,0,144,180,75,28,114]
[2025-07-22 19:09:26] debug: zh:zstack:unpi:parser: --> parsed 37 - 2 - 4 - 129 - [0,0,17,252,74,111,1,1,0,180,0,75,227,118,0,0,17,8,52,10,9,80,66,10,1,11,0,0,0,127,0,0,0,144,180,75,28] - 114
[2025-07-22 19:09:26] debug: zh:zstack:znp: <-- AREQ: AF - incomingMsg - {"groupid":0,"clusterid":64529,"srcaddr":28490,"srcendpoint":1,"dstendpoint":1,"wasbroadcast":0,"linkquality":180,"securityuse":0,"timestamp":7791435,"transseqnumber":0,"len":17,"data":{"type":"Buffer","data":[8,52,10,9,80,66,10,1,11,0,0,0,127,0,0,0,144]}}
[2025-07-22 19:09:26] debug: zh:controller: Received payload: clusterID=64529, address=28490, groupID=0, endpoint=1, destinationEndpoint=1, wasBroadcast=false, linkQuality=180, frame={"header":{"frameControl":{"frameType":0,"manufacturerSpecific":false,"direction":1,"disableDefaultResponse":false,"reservedBits":0},"transactionSequenceNumber":52,"commandIdentifier":10},"payload":[{"attrId":20489,"dataType":66,"attrData":"\u0001\u000b\u0000\u0000\u0000\u0000\u0000\u0000 "}],"command":{"ID":10,"name":"report","parameters":[{"name":"attrId","type":33},{"name":"dataType","type":32},{"name":"attrData","type":1000}]}}
[2025-07-22 19:09:26] debug: zh:controller:endpoint: ZCL command 0x003c84fffece3963/1 customClusterEwelink.defaultRsp({"cmdId":10,"statusCode":0}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":1,"reservedBits":0,"transactionSequenceNumber":52,"writeUndiv":false})
[2025-07-22 19:09:26] debug: zh:controller:endpoint: Request Queue (0x003c84fffece3963/1): send defaultRsp request immediately (sendPolicy=undefined)
[2025-07-22 19:09:26] debug: zh:zstack:unpi:parser: --- parseNext []
[2025-07-22 19:09:26] debug: z2m: Received Zigbee message from '0x003c84fffece3963', type 'attributeReport', cluster 'customClusterEwelink', data '{"20489":"\u0001\u000b\u0000\u0000\u0000\u0000\u0000\u0000 "}' from endpoint 1 with groupID 0
[2025-07-22 19:09:26] debug: zhc:sonoff: buffer====> 1 11 0 0 0 127
[2025-07-22 19:09:26] debug: zhc:sonoff: buffer====> 0 0 0 239
[2025-07-22 19:09:26] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/0x003c84fffece3963', payload '{"auto_close_when_water_shortage":"ENABLE","battery":74,"current_device_status":"water_shortage","cyclic_quantitative_irrigation":{"current_count":1,"irrigation_capacity":259,"irrigation_interval":110,"total_number":11},"cyclic_timed_irrigation":{"current_count":0,"irrigation_duration":0,"irrigation_interval":0,"total_number":0},"flow":0,"linkquality":180,"state":"ON","update":{"installed_version":4100,"latest_version":4100,"state":"idle"}}'
[2025-07-22 19:09:26] debug: zh:zstack:unpi:parser: <-- [254,1,100,1,0,100]
[2025-07-22 19:09:26] debug: zh:zstack:unpi:parser: --- parseNext [254,1,100,1,0,100]
[2025-07-22 19:09:26] debug: zh:zstack:unpi:parser: --> parsed 1 - 3 - 4 - 1 - [0] - 100
[2025-07-22 19:09:26] debug: zh:zstack:znp: <-- SRSP: AF - dataRequest - {"status":0}
[2025-07-22 19:09:26] debug: zh:zstack:unpi:parser: --- parseNext []
[2025-07-22 19:09:26] debug: zh:zstack:unpi:parser: <-- [254,3,68,128,0,1,32,230]
[2025-07-22 19:09:26] debug: zh:zstack:unpi:parser: --- parseNext [254,3,68,128,0,1,32,230]
[2025-07-22 19:09:26] debug: zh:zstack:unpi:parser: --> parsed 3 - 2 - 4 - 128 - [0,1,32] - 230
[2025-07-22 19:09:26] debug: zh:zstack:znp: <-- AREQ: AF - dataConfirm - {"status":0,"endpoint":1,"transid":32}
[2025-07-22 19:09:26] debug: zh:zstack:unpi:parser: --- parseNext []
[2025-07-22 19:09:26] debug: zh:zstack: sendZclFrameToEndpointInternal 0x003c84fffece3963:28490/1 (0,0,1)