Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot read property 'bind' of undefined #9152

Closed
strandbein opened this issue Oct 14, 2021 · 11 comments
Closed

TypeError: Cannot read property 'bind' of undefined #9152

strandbein opened this issue Oct 14, 2021 · 11 comments
Labels
problem Something isn't working

Comments

@strandbein
Copy link

I have a problem with Müller Licht smart power strip, [Modell 404017](Müller Licht smart power strip, Modell 404017
https://www.zigbee2mqtt.io/devices/404017.html#m%25C3%25BCller%2520licht-404017)
ConBee II latest firmware 26720700
Home Assistant AddOn

Zigbee2MQTT:error 2021-10-14 19:31:53: Failed to configure 'Serverschrank Steckerleiste', attempt 1 (TypeError: Cannot read property 'bind' of undefined
at Object.bind (/app/node_modules/zigbee-herdsman-converters/lib/reporting.js:33:24)
at Object.configure (/app/node_modules/zigbee-herdsman-converters/devices/müller_licht.js:33:29)
at Configure.configure (/app/lib/extension/configure.ts:119:37)
at Configure.start (/app/lib/extension/configure.ts:73:24)
at Controller.callExtensionMethod (/app/lib/controller.js:427:58)
at Controller.start (/app/lib/controller.js:184:9)
at start (/app/index.js:95:5))
Zigbee2MQTT:error 2021-10-14 19:31:53: Failed to configure 'Serverschrank Steckerleiste', attempt 2 (TypeError: Cannot read property 'bind' of undefined
at Object.bind (/app/node_modules/zigbee-herdsman-converters/lib/reporting.js:33:24)
at Object.configure (/app/node_modules/zigbee-herdsman-converters/devices/müller_licht.js:33:29)
at Configure.configure (/app/lib/extension/configure.ts:119:37)
at EventEmitter. (/app/lib/extension/configure.ts:84:62)
at EventEmitter.emit (events.js:400:28)
at EventBus.emitLastSeenChanged (/app/lib/eventBus.ts:64:80)
at Controller. (/app/lib/zigbee.ts:71:27)
at Controller.emit (events.js:400:28)
at Controller.onZclOrRawData (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:596:14)
at DeconzAdapter. (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:135:70))

What can I do?
Thanks!

@strandbein strandbein added the problem Something isn't working label Oct 14, 2021
@Koenkk
Copy link
Owner

Koenkk commented Oct 14, 2021

This is caused by the report feature which is deprecated, see https://github.com/Koenkk/zigbee2mqtt/releases/tag/1.17.1 how to migrate.

@Koenkk Koenkk closed this as completed Oct 14, 2021
@strandbein
Copy link
Author

In my configuration.yaml no report ist configured, in settings/RAW is "report": false, on frontend reporting is greyed out. Hmm...
Bildschirmfoto 2021-10-14 um 21 57 21

@Koenkk
Copy link
Owner

Koenkk commented Oct 14, 2021

Try removing all "reporting":1 from your data/database.db

@strandbein
Copy link
Author

There are no "reporting":1 entries in database.db. This ist the db-line of the device:
{"id":41,"type":"Router","ieeeAddr":"0xec1bbdfffe9dxxxx","nwkAddr":40489,"manufId":4635,"manufName":"MLI","powerSource":"Mains (single phase)","modelId":"Smart Socket","epList":[1,242],"endpoints":{"1":{"profId":260,"epId":1,"devId":266,"inClusterList":[0,3,4,5,6,2821,4096],"outClusterList":[25],"clusters":{"genBasic":{"attributes":{"modelId":"Smart Socket","manufacturerName":"MLI","powerSource":1,"zclVersion":3,"appVersion":40,"stackVersion":0,"hwVersion":0,"dateCode":"NULL","swBuildId":"2.5.3_r48"}},"genOnOff":{"attributes":{"onOff":1}}},"binds":[],"configuredReportings":[],"meta":{}},"242":{"profId":41440,"epId":242,"devId":102,"inClusterList":[33],"outClusterList":[33],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":40,"stackVersion":0,"hwVersion":0,"dateCode":"NULL","swBuildId":"2.5.3_r48","zclVersion":3,"interviewCompleted":true,"meta":{},"lastSeen":1634239588813}

@Koenkk
Copy link
Owner

Koenkk commented Oct 14, 2021

Can you try on the dev branch? (https://www.zigbee2mqtt.io/how_tos/how-to-switch-to-dev-branch.html)

@strandbein
Copy link
Author

I'd rather not. The error seems to occur only when starting zigbee2mqqt and the device works. The WAF should remain in the green range...
Thanks anyway!

@strandbein
Copy link
Author

Also in 1.22.0-2 there is no improvement.

@strandbein
Copy link
Author

Hello,
also in version 1.23.0 there is no improvement for this problem:

CREATED DECONZ ADAPTER
Zigbee2MQTT:error 2022-02-03 21:47:14: Failed to configure 'Serverschrank Plug', attempt 1 (TypeError: Cannot read property 'bind' of undefined
at Object.bind (/app/node_modules/zigbee-herdsman-converters/lib/reporting.js:33:24)
at Object.configure (/app/node_modules/zigbee-herdsman-converters/devices/müller_licht.js:33:29)
at Configure.configure (/app/lib/extension/configure.ts:115:37)
at Configure.start (/app/lib/extension/configure.ts:68:24)
at Controller.callExtensions (/app/lib/controller.ts:315:17)
at Controller.start (/app/lib/controller.ts:152:9)
at start (/app/index.js:101:5))
Zigbee2MQTT:error 2022-02-03 21:51:48: Failed to configure 'Serverschrank Plug', attempt 2 (TypeError: Cannot read property 'bind' of undefined
at Object.bind (/app/node_modules/zigbee-herdsman-converters/lib/reporting.js:33:24)
at Object.configure (/app/node_modules/zigbee-herdsman-converters/devices/müller_licht.js:33:29)
at Configure.configure (/app/lib/extension/configure.ts:115:37)
at EventEmitter. (/app/lib/extension/configure.ts:80:62)
at EventEmitter.emit (events.js:412:35)
at EventBus.emitLastSeenChanged (/app/lib/eventBus.ts:45:22)
at Controller. (/app/lib/zigbee.ts:66:27)
at Controller.emit (events.js:400:28)
at Controller.selfAndDeviceEmit (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:481:14)
at Controller.onZclOrRawData (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:692:18))
Zigbee2MQTT:error 2022-02-03 21:56:47: Failed to configure 'Serverschrank Plug', attempt 3 (TypeError: Cannot read property 'bind' of undefined
at Object.bind (/app/node_modules/zigbee-herdsman-converters/lib/reporting.js:33:24)
at Object.configure (/app/node_modules/zigbee-herdsman-converters/devices/müller_licht.js:33:29)
at Configure.configure (/app/lib/extension/configure.ts:115:37)
at EventEmitter. (/app/lib/extension/configure.ts:80:62)
at EventEmitter.emit (events.js:412:35)
at EventBus.emitLastSeenChanged (/app/lib/eventBus.ts:45:22)
at Controller. (/app/lib/zigbee.ts:66:27)
at Controller.emit (events.js:400:28)
at Controller.selfAndDeviceEmit (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:481:14)
at Controller.onZclOrRawData (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:692:18))

@Koenkk
Copy link
Owner

Koenkk commented Feb 4, 2022

Could you check if this is fixed in the latest dev?

Changes will be available in the dev branch in a few hours from now. (https://www.zigbee2mqtt.io/advanced/more/switch-to-dev-branch.html)

@Koenkk Koenkk reopened this Feb 4, 2022
Koenkk added a commit to Koenkk/zigbee-herdsman-converters that referenced this issue Feb 4, 2022
@strandbein
Copy link
Author

No error message since 24 hours with newest dev branch, good work, thanks a lot!

@Koenkk
Copy link
Owner

Koenkk commented Feb 7, 2022

great!

@Koenkk Koenkk closed this as completed Feb 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
problem Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants