Unable to add new device to Zigbee2MQTT

Hi there,

All of my 42 zigbee devices work perfectly (using Zigbee2mqtt) but …

I tried to add a “scene switch” and get this error :

zh:ezsp:ezsp: Frame changeSourceRouteHandler parsing error: RangeError: Attempt to access memory outside buffer bounds at new NodeError (node:internal/errors:405:5) at boundsError (node:internal/buffer:86:11) at Buffer.readUInt16LE (node:internal/buffer:245:5) at Buffer.readUIntLE (node:internal/buffer:182:17) at Function.deserialize (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/types/basic.ts:19:67) at new EZSPFrameData (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:177:54) at /app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:151:23 at Array.every (<anonymous>) at Function.createFrame (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:145:15) at Ezsp.onFrameReceived (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:430:35)

I then tried to add a “smart plug” (I have other in my zigbee network, they all work fine) and Z2M doesn’t even “see” it when I put it in connect mode.

Any help would be welcome
Thanks

What dongle are you using ?

It’s a Sonoff ZBDongle-E

Flash with firmware 7.4.x and use the Ember driver.

Ok, thanks, but it looks I’ll need a little bit more details :

  • Just flashed to 7.3.1.0 (seems to be the latest available using silabs, should I get this one ?). Dosen’t do the trick, still unable to add a device, but the error message isn’t showing anymore
  • What do you mean by Ember driver ?

That’s my Zigbee2MQTT version:

Zigbee2MQTT version
    1.39.1 commit: unknown

Coordinator type
    EZSP v12

Coordinator revision
    7.3.1.0 build 176

Coordinator IEEE Address
    0xb0c7defffe8069b3

Frontend version
    0.7.4

zigbee-herdsman-converters version
    19.72.0

zigbee-herdsman version
    0.55.3

That is a good one. then in the Zigbee2MQTT configuration, you change

adapter: ezsp

to

adapter: ember

Dongle flashed with coordinator 7.4.3.0, but when I change the adapter from ezsp to ember (in HomeAssistant GUI → Zigbee2MQTT → Settings → Serial → Adapter), it goes back to ezsp.

Do I miss something ?

You can’t change it while Zigbee2MQTT is running. If you use the add-on, in the add-on settings.

2 Likes

That was a nice journey, thanks for for holding my hand !

For the sake : HA → settings → add-ons → Zigbee2MQTT → stop → configuration → serial → change adapter to ember → info → restart