[fixed] Zigbee adaptor crashing

I’m seeing a consistent crash in the zigbee adaptor after a new version was downloaded during the night. At work, so can’t investigate.
2020-11-06 11:59:52.459 ERROR : zigbee-adapter: ReferenceError: genScenesOutputEndpoints is not defined
2020-11-06 11:59:52.460 ERROR : zigbee-adapter: at ZigbeeClassifier.initMultiLevelButtons (/home/pi/.mozilla-iot/addons/zigbee-adapter/zb-classifier.js:2080:45)
2020-11-06 11:59:52.460 ERROR : zigbee-adapter: at ZigbeeClassifier.classifyInternal (/home/pi/.mozilla-iot/addons/zigbee-adapter/zb-classifier.js:1809:12)
2020-11-06 11:59:52.461 ERROR : zigbee-adapter: at ZigbeeClassifier.classify (/home/pi/.mozilla-iot/addons/zigbee-adapter/zb-classifier.js:1846:10)
2020-11-06 11:59:52.462 ERROR : zigbee-adapter: at ZigbeeNode.classify (/home/pi/.mozilla-iot/addons/zigbee-adapter/zb-node.js:239:24)
2020-11-06 11:59:52.462 ERROR : zigbee-adapter: at ZigbeeAdapter.handleDeviceAdded (/home/pi/.mozilla-iot/addons/zigbee-adapter/zb-adapter.js:1350:12)
2020-11-06 11:59:52.463 ERROR : zigbee-adapter: at ZigbeeAdapter.addIfReady (/home/pi/.mozilla-iot/addons/zigbee-adapter/zb-adapter.js:1334:10)
2020-11-06 11:59:52.463 ERROR : zigbee-adapter: at ZigbeeAdapter.populateNodeInfoEndpoints (/home/pi/.mozilla-iot/addons/zigbee-adapter/zb-adapter.js:1608:10)
2020-11-06 11:59:52.464 ERROR : zigbee-adapter: at ZigbeeAdapter.populateNodeInfo (/home/pi/.mozilla-iot/addons/zigbee-adapter/zb-adapter.js:1375:12)
2020-11-06 11:59:52.464 ERROR : zigbee-adapter: at ZigbeeAdapter.scanNode (/home/pi/.mozilla-iot/addons/zigbee-adapter/zb-adapter.js:159:10)
2020-11-06 11:59:52.465 ERROR : zigbee-adapter: at ZigbeeAdapter.enumerateNextNode (/home/pi/.mozilla-iot/addons/zigbee-adapter/zb-adapter.js:403:12)

1 Like

I’m on it. :slightly_smiling_face:

I’ll get an update out in the morning.

1 Like

Should be fixed in v0.12.1.

The fix seems good, thanks for the quick turn around!

It is not crashing :+1:, but the scene and battery properties on the Tradfri buttons disappeared :slightly_frowning_face:. I’ll look into this as soon as I get some time.

This is the PR that changed things up: https://github.com/WebThingsIO/zigbee-adapter/pull/240

@mrstegeman Please consider reverting this PR until the author(s) are ready to provide some additional revision and support.
In addition to the the issue that I reported regarding the scenes, two properties (On/Off, Level) are renamed to include the endpoint index in brackets. This renaming broke 36 rules in my setup.
For backward compatibility, the names on the first endpoint must not be renamed - I can understand that if there are multiple endpoints with an on/off property on each, then there needs to be a consistent way to separately identify them.

@chas_iot what device are you seeing that issue with?

Please give v0.12.2 a try.

1 Like

Thank-you @mrstegeman the property names have reverted to be without a suffix :slight_smile:
I’m still missing the scene property on the Ikea Remote Control - I’ll see what I can find. I’ll get a few hours here and there this week and should have more time next week.

Version 0.12.3 of the Zigbee addon just released (thank-you @mrstegeman) has fixes for the scene property of the Tradfri remote control.
Other changes include support for EQUALS in rules for scene properties, newly paired Zigbee devices will have better default names, containing the function (such as light) at the end instead of undefined, and a number of other cleanups.