ebaauw / homebridge-deconz

Homebridge plugin for deCONZ
Apache License 2.0
135 stars 7 forks source link

Aqara Single Switch module is not working #120

Closed Daniel-56 closed 1 year ago

Daniel-56 commented 1 year ago

Homebridge Log:

[2/23/2023, 2:59:51 PM] [deCONZ] Phoscon-GW Button: Programmable Switch Event: Single Press [2/23/2023, 2:59:52 PM] [deCONZ] Lumi Sofa: LUMI lumi.switch.n0agl1 v0xFFFFFFFF (5 resources) [2/23/2023, 2:59:52 PM] [deCONZ] Lumi Sofa: Configured Name: warning: 1433 listeners [2/23/2023, 2:59:52 PM] [deCONZ] Lumi Sofa: On: warning: 1433 listeners [2/23/2023, 2:59:52 PM] [deCONZ] Phoscon-GW: error: SyntaxError: totalConsumption: duplicate key at Outlet.addCharacteristicDelegate (/homebridge/node_modules/homebridge-deconz/node_modules/homebridge-lib/lib/ServiceDelegate/index.js:242:13) at Function.addResource (/homebridge/node_modules/homebridge-deconz/lib/DeconzService/Consumption.js:18:13) at Outlet.addResource (/homebridge/node_modules/homebridge-deconz/lib/DeconzService/index.js:77:41) at Light.createService (/homebridge/node_modules/homebridge-deconz/lib/DeconzAccessory/index.js:149:17) at new Light (/homebridge/node_modules/homebridge-deconz/lib/DeconzAccessory/Light.js:44:14) at Gateway.addAccessory (/homebridge/node_modules/homebridge-deconz/lib/DeconzAccessory/Gateway.js:601:25) at Gateway.analyseFullState (/homebridge/node_modules/homebridge-deconz/lib/DeconzAccessory/Gateway.js:1031:20) at Gateway.poll (/homebridge/node_modules/homebridge-deconz/lib/DeconzAccessory/Gateway.js:868:18) at processTicksAndRejections (node:internal/process/task_queues:95:5) at Gateway.heartbeat (/homebridge/node_modules/homebridge-deconz/lib/DeconzAccessory/Gateway.js:333:9)

ebaauw commented 1 year ago

Please attach the debug dump file.

Daniel-56 commented 1 year ago

homebridge-deconz.json.gz

Daniel-56 commented 1 year ago

i hope it helps...

ebaauw commented 1 year ago

This SyntaxError is a bug in Homebridge deCONZ alright, but this occurs because the switch is exposed wrongly by deCONZ, using multiple ZHAConsumption and ZHAPower /sensors resources.

This needs to be solved in deCONZ. I cannot help there; I don't own this device. And I don't understand this device; the screenshots in https://github.com/dresden-elektronik/deconz-rest-plugin/issues/4328 and https://github.com/dresden-elektronik/deconz-rest-plugin/issues/6356 are different.

[2/23/2023, 2:59:52PM] [deCONZ] Lumi Sofa: LUMI lumi.switch.n0agl1 v0xFFFFFFFF (5 resources)

So that's the following resources:

ghost commented 1 year ago

I have the same model, two of them https://zigbee.blakadder.com/Aqara_SSM-U01.html I experience no problems and get no errors.

ebaauw commented 1 year ago

Maybe a faulty DDF?