Hello everyone! I have a Home Assistant Yellow with its integrated CP2102N radio running on ZHA. I have 37 devices running on this network, and they work fine.
I got some new Sonoff SNZB-03P (PIR motion sensors with light sensor) that can be fully used if connected to Z2M (The light sensor is not reported if connected to ZHA, also with ZHA you cannot configure the sensor’s motion timeout). I have other Zigbee motion sensors with the same problem, so I would like to switch them to Z2M (less than 6 devices total).
I have a spare Sonoff ZBDongle-P (which I believe uses a CC2652P radio). I used this radio before having the HA Yellow, I had a smaller network and I decided to migrate all my devices manually to the Yellow radio using ZHA.
Now I would like to keep the Yellow’s radio with ZHA as it is currently, and add Z2M to use with the ZBDongle-P to take full control of these new devices.
Based on my system info, ttyUSB0 is the Yellow’s radio and ttyUSB1 is the ZBDongle-P
Now when I go to ZHA Configuration, it says
/dev/ttyAMA1 - Serial port. Is this correct?
I installed Zigbee2MQTT.
serial:
port: >-
/dev/serial/by-id/usb-Silicon_Labs_Sonoff_Zigbee_3.0_USB_Dongle_Plus_0001-if00-port0
When I run it with the above setting, Z2M starts, but when trying to permit join, it either gives this error:
SRSP - ZDO - mgmtPermitJoinReq after 6000ms’
Or it takes long to add a device (the device shows up as unsupported) and then it crashes:
[2024-09-23 11:05:09] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x842712fffe7e405e","ieee_address":"0x842712fffe7e405e"},"type":"device_announce"}'
Error: ZCL command 0x842712fffe7e405e/1 ssIasZone.enrollRsp({"enrollrspcode":0,"zoneid":23}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"reservedBits":0,"writeUndiv":false}) failed (Data request failed with error: 'MAC no ack' (233))
at ZStackAdapter.sendZclFrameToEndpointInternal (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/adapter/zStackAdapter.ts:482:23)
at Queue.execute (/app/node_modules/zigbee-herdsman/src/utils/queue.ts:36:20)
at Request.send (/app/node_modules/zigbee-herdsman/src/controller/helpers/request.ts:82:20)
at Endpoint.zclCommand (/app/node_modules/zigbee-herdsman/src/controller/model/endpoint.ts:911:28)
at Endpoint.command (/app/node_modules/zigbee-herdsman/src/controller/model/endpoint.ts:683:23)
at Device.onZclData (/app/node_modules/zigbee-herdsman/src/controller/model/device.ts:393:13)
at Controller.onZclPayload (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:843:13)
I made sure that my networks have a different PAN ID (didn’t need to modify anything there).
If I add adapter: ezsp to the configuration, it fails to start:
[11:16:27] INFO: Preparing to start...
[11:16:28] INFO: Socat not enabled
[11:16:30] INFO: Starting Zigbee2MQTT...
Starting Zigbee2MQTT without watchdog.
[2024-09-23 11:16:36] info: z2m: Logging to console, file (filename: log.log)
[2024-09-23 11:16:36] info: z2m: Starting Zigbee2MQTT version 1.40.1 (commit #unknown)
[2024-09-23 11:16:36] info: z2m: Starting zigbee-herdsman (0.57.3)
[2024-09-23 11:16:37] warning: zh:ezsp: Deprecated driver 'ezsp' currently in use, 'ember' will become the officially supported EmberZNet driver in next release. If using Zigbee2MQTT see https://github.com/Koenkk/zigbee2mqtt/discussions/21462
[2024-09-23 11:16:47] error: zh:ezsp:uart: --> Error: Error: {"sequence":-1} after 10000ms
[2024-09-23 11:16:47] error: zh:ezsp:ezsp: Connection attempt 1 error: Error: Failure to connect
As the error mentions switching to ember, I tried setting adapter: ember it also fails to start and shows these errors:
[2024-09-23 11:20:37] info: z2m: Logging to console, file (filename: log.log)
[2024-09-23 11:20:37] info: z2m: Starting Zigbee2MQTT version 1.40.1 (commit #unknown)
[2024-09-23 11:20:37] info: z2m: Starting zigbee-herdsman (0.57.3)
[2024-09-23 11:20:38] info: zh:ember: Using default stack config.
[2024-09-23 11:20:38] info: zh:ember: ======== Ember Adapter Starting ========
[2024-09-23 11:20:38] info: zh:ember:ezsp: ======== EZSP starting ========
[2024-09-23 11:20:38] info: zh:ember:uart:ash: ======== ASH Adapter reset ========
[2024-09-23 11:20:38] info: zh:ember:uart:ash: RTS/CTS config is off, enabling software flow control.
[2024-09-23 11:20:38] info: zh:ember:uart:ash: Serial port opened
[2024-09-23 11:20:38] info: zh:ember:uart:ash: ======== ASH starting ========
[2024-09-23 11:20:41] info: zh:ember:uart:ash: ======== ASH Adapter reset ========
[2024-09-23 11:20:41] info: zh:ember:uart:ash: ======== ASH starting ========
[2024-09-23 11:20:43] info: zh:ember:uart:ash: ======== ASH Adapter reset ========
[2024-09-23 11:20:43] info: zh:ember:uart:ash: ======== ASH starting ========
[2024-09-23 11:20:46] info: zh:ember:uart:ash: ======== ASH Adapter reset ========
[2024-09-23 11:20:46] info: zh:ember:uart:ash: ======== ASH starting ========
[2024-09-23 11:20:48] error: zh:ember:uart:ash: Received frame with comm error
[2024-09-23 11:20:48] info: zh:ember:uart:ash: ======== ASH Adapter reset ========
[2024-09-23 11:20:48] info: zh:ember:uart:ash: ======== ASH starting ========
[2024-09-23 11:20:51] error: z2m: Error while starting zigbee-herdsman
[2024-09-23 11:20:51] error: z2m: Failed to start zigbee
[2024-09-23 11:20:51] error: z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
[2024-09-23 11:20:51] error: z2m: Exiting...
[2024-09-23 11:20:51] error: z2m: Error: Failed to start EZSP layer with status=HOST_FATAL_ERROR.
at EmberAdapter.initEzsp (/app/node_modules/zigbee-herdsman/src/adapter/ember/adapter/emberAdapter.ts:701:19)
at EmberAdapter.start (/app/node_modules/zigbee-herdsman/src/adapter/ember/adapter/emberAdapter.ts:1708:24)
at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:138:29)
at Zigbee.start (/app/lib/zigbee.ts:64:27)
at Controller.start (/app/lib/controller.ts:140:27)
at start (/app/index.js:154:5)
When I go to zigbee2mqtt/configuration.yaml file I don’t see any network_key, pan_id, ext_pan_id or channel entries. Should I try to add these here with the word Generate?
I’d be thankful for any input on how to continue here!
Rodrigo