Zigbee2MQTT on a HA SkyConnect

I’ve bought a SkyConnect to use with Zigbee2MQTT. But I cannot get the add-on to run.

Log from Zigbee2MQTT

[17:54:41] INFO: Preparing to start...
[17:54:42] INFO: Socat not enabled
[17:54:43] INFO: Starting Zigbee2MQTT...
Starting Zigbee2MQTT without watchdog.
[2024-07-18 17:54:46] info: 	z2m: Logging to console, file (filename: log.log)
[2024-07-18 17:54:46] info: 	z2m: Starting Zigbee2MQTT version 1.39.0 (commit #unknown)
[2024-07-18 17:54:46] info: 	z2m: Starting zigbee-herdsman (0.50.1)
[2024-07-18 17:54:46] info: 	zh:zstack:znp: Opening SerialPort with {"path":"/dev/serial/by-id/usb-Nabu_Casa_SkyConnect_v1.0_a4fe4f5ed4b3ed118b6248aca7669f5d-if00-port0","baudRate":115200,"rtscts":false,"autoOpen":false}
[2024-07-18 17:54:46] info: 	zh:zstack:znp: Serialport opened
[2024-07-18 17:54:46] info: 	zh:zstack:znp: Writing CC2530/CC2531 skip bootloader payload
[2024-07-18 17:54:47] info: 	zh:zstack:znp: Skip bootloader for CC2652/CC1352
[2024-07-18 17:55:06] error: 	z2m: Error while starting zigbee-herdsman
[2024-07-18 17:55:06] error: 	z2m: Failed to start zigbee
[2024-07-18 17:55:06] error: 	z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
[2024-07-18 17:55:06] error: 	z2m: Exiting...
[2024-07-18 17:55:06] error: 	z2m: Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)
    at ZStackAdapter.start (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/adapter/zStackAdapter.ts:101:27)
    at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:129:29)
    at Zigbee.start (/app/lib/zigbee.ts:63:27)
    at Controller.start (/app/lib/controller.ts:139:27)
    at start (/app/index.js:154:5)

Steps I took:

  1. First I removed ZHA (which I tried before), I restarted HA.
  2. I installed Mosquito. Didn’t change the configuration, did use a new user: Mosquitto
  3. Found my device in hardware:
Device path: `/dev/ttyUSB0`
ID: `/dev/serial/by-id/usb-Nabu_Casa_SkyConnect_v1.0_a4fe4f5ed4b3ed118b6248aca7669f5d-if00-port0`
  1. Zigbee2MQTT accepted this as device:
port: >-
  /dev/serial/by-id/usb-Nabu_Casa_SkyConnect_v1.0_a4fe4f5ed4b3ed118b6248aca7669f5d-if00-port0
  1. Started the add on, resulting in the log above.
  2. Checked the site for this error. There are 6 items, I’ve checked.
  • Port changed. That is unlikely, I’ve checked it.
  • CC2530/CC2531. It looks like I am on a different one, but I cannot find it now
  • Additional config. My adapter isn’t listed.
  • ZHA enabled. It wasn’t, see step 1.
  • Router/coordinator. How can I change this? I tried to configure SkyConnect, it mentions it is a coordinator now, but it also discovered ZHA again (which I didn’t add).
  • Zigbee not over LAN. I don’t know what this is.

Does anybody have an idea how to proceed? I haven’t tried this, because I am not sure what to enter to the terminal exactly.

  1. Make sure the SkyConnect is updated to the latest firmware.
  2. Add adapter: serial under the “serial” config section.

EmberZNet adapters (Silicon Labs) | Zigbee2MQTT

I’ve updated the firmware from 7.1.1.0 build 273 to 7.4.2.0.

It took my a while to get it straight, but it is:

serial:
  port: >-
    /dev/serial/by-id/usb-Nabu_Casa_SkyConnect_v1.0_a4fe4f5ed4b3ed118b6248aca7669f5d-if00-port0

or

serial:
  adapter: ember
  port: >-
    /dev/serial/by-id/usb-Nabu_Casa_SkyConnect_v1.0_a4fe4f5ed4b3ed118b6248aca7669f5d-if00-port0

The result:

[18:35:27] INFO: Preparing to start...
[18:35:27] INFO: Socat not enabled
[18:35:28] INFO: Starting Zigbee2MQTT...
Starting Zigbee2MQTT without watchdog.
[2024-07-18 18:35:31] info: 	z2m: Logging to console, file (filename: log.log)
[2024-07-18 18:35:31] info: 	z2m: Starting Zigbee2MQTT version 1.39.0 (commit #unknown)
[2024-07-18 18:35:31] info: 	z2m: Starting zigbee-herdsman (0.50.1)
[2024-07-18 18:35:31] error: 	z2m: Error while starting zigbee-herdsman
[2024-07-18 18:35:31] error: 	z2m: Failed to start zigbee
[2024-07-18 18:35:31] error: 	z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
[2024-07-18 18:35:31] error: 	z2m: Exiting...
[2024-07-18 18:35:31] error: 	z2m: Error: spawn udevadm ENOENT
    at Process.ChildProcess._handle.onexit (node:internal/child_process:284:19)
    at onErrorNT (node:internal/child_process:477:16)
    at processTicksAndRejections (node:internal/process/task_queues:82:21)

And the given url does not really give any clue.

Is ZHA disabled or removed ?

1 Like

That was my thought as well. OP stated above ZHA was removed, but I wonder if HA re-detected the stick.

I had best luck with ZHA as disabled or ignored. Simply removing caused it to be re-detected, but that was quite a while ago, and things change (mostly) for the better.

1 Like

That’s the exact thing I was going to ask about too. I think ZHA is not ignored here so it’s re-grabbing the com port

Op did you Ignore ZHA or just not configure it. If its sitting there detected but not configured - it’s grabbing the stick and Z2M can’t open the port.

@jerrm and @NathanCu as I first configured ZHA and decided to go for Zigbee2mqtt I deleted the ZHA integration. I rebooted and I could not find it anywhere. It gave the error in my first post.
After trying to fix it, I clicked the “configure sky connect” as I got a confirmation that is was configured as a coordinator I saw the integration “ZHA” pop up ready to configure or ignore. I’m not sure what I did here, I cannot find the integration anymore. So it’s either deleted or ignored.
Is there a way to check this or make sure it doesnt use the port?

1 Like

serial:
adapter: ezsp
port: >-
/dev/serial/by-id/usb-Nabu_Casa_SkyConnect_v1.0_a4fe4f5ed4b3ed118b6248aca7669f5d-if00-port0

A tip from elsewhere: using adapter: ezsp also doesn’t work :cry:

If ZHA is not in the active integrations list, I would assume you chose ignore.

On the settings->devices and services->integrations page there is a imageicon next to the search bar. Click it and you should see a menu offering to show disabled and show ignored integrations.

It took a while to respond, I indeed ignored the ZHA integration.
I’ve chosen for ZHA now because I wanted to get going. But I’ve encountered two devices that do not work with ZHA. I want to change to Z2M.

But that herdsman error bugs me, and I still don’t know how to fix it.