zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

Problem with Zigbee Model TS011F Zigbee Manufacturer _TZ3000_rikal2fw

Open yarafie opened this issue 2 years ago • 55 comments

What happened?

Reporting error

[[2024-11-03 09:52:15] error: z2m: Failed to configure 'Washing Machine Socket', attempt 3 (Error: ZCL command 0xdc8e95fffec70319/1 haElectricalMeasurement.configReport([{"attribute":"rmsVoltage","minimumReportInterval":5,"maximumReportInterval":3600,"reportableChange":5}], {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"reservedBits":0,"writeUndiv":false}) failed (Status 'UNSUPPORTED_ATTRIBUTE') at Endpoint.checkStatus (/app/node_modules/zigbee-herdsman/src/controller/model/endpoint.ts:350:28) at Endpoint.zclCommand (/app/node_modules/zigbee-herdsman/src/controller/model/endpoint.ts:956:26) at processTicksAndRejections (node:internal/process/task_queues:95:5) at Endpoint.configureReporting (/app/node_modules/zigbee-herdsman/src/controller/model/endpoint.ts:688:9) at Object.rmsVoltage (/app/node_modules/zigbee-herdsman-converters/src/lib/reporting.ts:219:5) at configure (/app/node_modules/zigbee-herdsman-converters/src/devices/tuya.ts:5342:13) at Object.configure (/app/node_modules/zigbee-herdsman-converters/src/index.ts:205:21) at Configure.configure (/app/lib/extension/configure.ts:130:13) at Immediate. (/app/lib/extension/configure.ts:75:17))

What did you expect to happen?

No error

How to reproduce it (minimal and precise)

Need device

Zigbee2MQTT version

1.41.0

Adapter firmware version

20240710

Adapter

slzb-06

Setup

Docker Container

Debug log

[[2024-11-03 09:52:15] error: z2m: Failed to configure 'Washing Machine Socket', attempt 3 (Error: ZCL command 0xdc8e95fffec70319/1 haElectricalMeasurement.configReport([{"attribute":"rmsVoltage","minimumReportInterval":5,"maximumReportInterval":3600,"reportableChange":5}], {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"reservedBits":0,"writeUndiv":false}) failed (Status 'UNSUPPORTED_ATTRIBUTE') at Endpoint.checkStatus (/app/node_modules/zigbee-herdsman/src/controller/model/endpoint.ts:350:28) at Endpoint.zclCommand (/app/node_modules/zigbee-herdsman/src/controller/model/endpoint.ts:956:26) at processTicksAndRejections (node:internal/process/task_queues:95:5) at Endpoint.configureReporting (/app/node_modules/zigbee-herdsman/src/controller/model/endpoint.ts:688:9) at Object.rmsVoltage (/app/node_modules/zigbee-herdsman-converters/src/lib/reporting.ts:219:5) at configure (/app/node_modules/zigbee-herdsman-converters/src/devices/tuya.ts:5342:13) at Object.configure (/app/node_modules/zigbee-herdsman-converters/src/index.ts:205:21) at Configure.configure (/app/lib/extension/configure.ts:130:13) at Immediate. (/app/lib/extension/configure.ts:75:17))

yarafie avatar Nov 01 '24 15:11 yarafie

Same problem here.

fapgomes avatar Nov 02 '24 16:11 fapgomes

  • Could you provide the data/database.db entry of this device?
  • Could you provide a screenshot of the device about page?

Koenkk avatar Nov 03 '24 13:11 Koenkk

About page screenshot:

Screenshot_20241103_144451

{"id":58,"type":"Router","ieeeAddr":"0xa4c138d9e0d26d3c","nwkAddr":18490,"manufId":4417,"manufName":"_TZ3000_gvn91tmx","powerSource":"Mains (single phase)","modelId":"TS011F","epList":[1,242],"endpoints":{"1":{"profId":260,"epId":1,"devId":266,"inClusterList":[3,4,5,6,1794,2820,57344,57345,0],"outClusterList":[25,10],"clusters":{"genBasic":{"attributes":{"65503":"�\u0016�.\u0013�\u0016�.\u00122\u0017�.\u0012h\u0017�.\u0013i\u0017�.\u0012","65506":54,"65508":0,"65534":0,"stackVersion":0,"dateCode":"","manufacturerName":"_TZ3000_gvn91tmx","zclVersion":3,"appVersion":192,"modelId":"TS011F","powerSource":1}},"seMetering":{"attributes":{"currentSummDelivered":0}},"haElectricalMeasurement":{"attributes":{"rmsVoltage":237,"rmsCurrent":0,"activePower":0}},"genOnOff":{"attributes":{"32768":0,"onOff":1,"onTime":0,"offWaitTime":0,"tuyaBacklightMode":1,"moesStartUpOnOff":2,"tuyaBacklightSwitch":1}},"manuSpecificTuya_3":{"attributes":{"53248":1,"53249":0,"53250":2943356,"53251":121,"53252":10338,"53253":1223,"powerOnBehavior":2,"switchType":0}}},"binds":[],"configuredReportings":[],"meta":{}},"242":{"profId":41440,"epId":242,"devId":97,"inClusterList":[],"outClusterList":[33],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":192,"stackVersion":0,"hwVersion":1,"dateCode":"","zclVersion":3,"interviewCompleted":true,"meta":{},"lastSeen":1730644158847}

fapgomes avatar Nov 03 '24 14:11 fapgomes

{"id":99,"type":"Router","ieeeAddr":"0xdc8e95fffec70319","nwkAddr":61067,"manufId":4098,"manufName":"_TZ3000_rikal2fw","powerSource":"Mains (single phase)","modelId":"TS011F","epList":[1,242],"endpoints":{"1":{"profId":260,"epId":1,"devId":266,"inClusterList":[0,3,4,5,6,57344,57345],"outClusterList":[25,10],"clusters":{"genBasic":{"attributes":{"65503":"QD.\u0016","65506":31,"65508":0,"65534":0,"modelId":"TS011F","manufacturerName":"_TZ3000_rikal2fw","powerSource":1,"zclVersion":3,"appVersion":67,"stackVersion":0,"hwVersion":1,"dateCode":""}},"genOnOff":{"attributes":{"32768":1,"onOff":1,"moesStartUpOnOff":1,"tuyaBacklightMode":1,"onTime":0,"offWaitTime":0,"tuyaBacklightSwitch":1}},"manuSpecificTuya_3":{"attributes":{"powerOnBehavior":1}}},"binds":[{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0x00124b00257c8f01","endpointID":1},{"cluster":2820,"type":"endpoint","deviceIeeeAddress":"0x00124b00257c8f01","endpointID":1},{"cluster":1794,"type":"endpoint","deviceIeeeAddress":"0x00124b00257c8f01","endpointID":1},{"cluster":25,"type":"endpoint","deviceIeeeAddress":"0x00124b00257c8f01","endpointID":1},{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0x00124b00257c8f01","endpointID":0},{"cluster":2820,"type":"endpoint","deviceIeeeAddress":"0x00124b00257c8f01","endpointID":0},{"cluster":1794,"type":"endpoint","deviceIeeeAddress":"0x00124b00257c8f01","endpointID":0},{"cluster":57345,"type":"endpoint","deviceIeeeAddress":"0x00124b00257c8f01","endpointID":0}],"configuredReportings":[],"meta":{}},"242":{"profId":41440,"epId":242,"devId":97,"inClusterList":[],"outClusterList":[33],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":67,"stackVersion":0,"hwVersion":1,"dateCode":"","zclVersion":3,"interviewCompleted":true,"meta":{},"lastSeen":1730645208773} Screenshot_20241103_175931_Chrome

yarafie avatar Nov 03 '24 15:11 yarafie

My apologies

also i just updated the debug log at top I cut and pasted the wrong device initially

yarafie avatar Nov 03 '24 15:11 yarafie

Probably this plug does not support reporting and needs polling, can you try to read the power via the dev console and see if that works?

Screenshot 2024-11-05 at 22 05 50

Koenkk avatar Nov 06 '24 20:11 Koenkk

@Koenkk Could it be this specific variant of the TS011F_plug_1 TS011F _TZ3000_gjnozsaz Doesn't have this feauture?

Screenshot_20241107_053723_Chrome Screenshot_20241107_053805_Chrome Screenshot_20241107_053630_Chrome Screenshot_20241107_053551_Chrome Screenshot_20241107_053526_Chrome Screenshot_20241107_053741_Chrome Screenshot_20241107_053701_Chrome Screenshot_20241107_053655_Chrome

Screenshot_20241107_055936_Chrome

yarafie avatar Nov 07 '24 03:11 yarafie

@yarafie you can find it in dev console. @Koenkk I run it whithout erros, but I will do more fine checking during the weekend.

fapgomes avatar Nov 08 '24 20:11 fapgomes

As I can see only occours on z2m startup:

[2024-11-08 14:29:20] error:    z2m: Failed to configure 'smartplug-teste', attempt 1 (Error: Bind 0xa4c138d9e0d26d3c/1 genOnOff from '0x00124b0025902322/0' failed (Status 'INVALID_EP')
    at Endpoint.bind (/app/node_modules/zigbee-herdsman/src/controller/model/endpoint.ts:566:23)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at Object.bind (/app/node_modules/zigbee-herdsman-converters/src/lib/reporting.ts:42:9)
    at configure (/app/node_modules/zigbee-herdsman-converters/src/devices/tuya.ts:5341:13)
    at Object.configure (/app/node_modules/zigbee-herdsman-converters/src/index.ts:205:21)
    at Configure.configure (/app/lib/extension/configure.ts:130:13)
    at EventEmitter.wrappedCallback (/app/lib/eventBus.ts:206:17))

After 2024-11-08 I don't have more errors, is normal?

Best Regards,

fapgomes avatar Nov 11 '24 15:11 fapgomes

Any news? The problem still occurs with version 1.42.0-2.

fapgomes avatar Dec 21 '24 21:12 fapgomes

I think this problem starts occurring when I reset the energy from the z2m dev console. @yarafie same from you side?

fapgomes avatar Dec 22 '24 14:12 fapgomes

@fapgomes answer in https://github.com/Koenkk/zigbee2mqtt/issues/24889 Not related to my problem i have it on all my wall switches

h0m3d0m0 avatar Dec 22 '24 14:12 h0m3d0m0

@Koenkk After some tests, what I was able to find out:

  • this started to happen, only in the sockets where I reset via the dev console (cluster: 0x00, command 0) (tested with 2)
  • the error only appears when I restart the z2m, but the energy value is not well measured, I often have to go to statistics to clear errors, the others sensors are ok (apparently)
  • I have more identical sockets that do not present any errors

Does this help? Or do I need to do some other diagnosis?

Thanks in advance, ./fapg

fapgomes avatar Dec 22 '24 16:12 fapgomes

@fapgomes

  • could you provide the data/database.db entry of your device?
  • does re-pairing the device solve the issue?

Koenkk avatar Dec 22 '24 20:12 Koenkk

@fapgomes

* could you provide the data/database.db entry of your device?

database.db.gz

* does re-pairing the device solve the issue?

Noop, I try it a couple of times, without sucess.

./fapg

fapgomes avatar Dec 22 '24 23:12 fapgomes

  • Could you provide the debug log when starting z2m?
  • Can you try to stop z2m, in the first entry, remove 0 from the epList (of device 0x00124b0025902322), start z2m and see if the error still occurs?

Koenkk avatar Dec 23 '24 20:12 Koenkk

@Koenkk

  • Could you provide the debug log when starting z2m?

It's here.

log.log.gz

* Can you try to stop z2m, in the first entry, remove `0` from the `epList` (of device `0x00124b0025902322`), start z2m and see if the error still occurs?

I use the command "vi" to remove it, but when starts appears again. Should I remove it with another method?

Thanks, ./fapg

fapgomes avatar Dec 27 '24 17:12 fapgomes

I checked the log but cannot explain why it gets added back, did you stop z2m before changing it with vi ?

Koenkk avatar Dec 28 '24 14:12 Koenkk

@Koenkk

I checked the log but cannot explain why it gets added back, did you stop z2m before changing it with vi ?

Yes, but I found out if I start it in debug, on first line, the eplist does not add 0 to the array, but if I start it in warning, 0 appears in eplist array first line...

Anyway, I always see the INVALID_EP error in the logs. Attached is the debug log (without the 0 in the epList array), and in running mode I change it to warning, without the 0 in the eplist array

log.log.gz

Thanks, ./fapg

fapgomes avatar Dec 28 '24 15:12 fapgomes

Could you provide the log from starting z2m until endpoint 0 is added? Do this from a database.db where you manually removed endpoint 0

Koenkk avatar Dec 30 '24 20:12 Koenkk