SkyConnect + Zigbee2mqtt

Hey,

Finally got my skyconnect dongle, I’ve tried to configure it with zigbee2mqtt but no sucess.

Anyone can help me?

I’ve create and user and password

user:MQTT-user
password:********

I have mosquito broker configured like this:


logins:

- username: MQTT-user

password: ************

require_certificate: false

certfile: fullchain.pem

keyfile: privkey.pem

customize:

active: false

folder: mosquitto

And zigbee2mqtt like this:


data_path: /config/zigbee2mqtt

socat:

enabled: false

master: pty,raw,echo=0,link=/tmp/ttyZ2M,mode=777

slave: tcp-listen:8485,keepalive,nodelay,reuseaddr,keepidle=1,keepintvl=1,keepcnt=5

options: "-d -d"

log: false

mqtt:

base_topic: zigbee2mqtt

server: mqtt://core-mosquitto:1883

serial:

port: /dev/ttyUSB0

When i launch it it shows me this error:


[18:19:18] INFO: Preparing to start...

[18:19:19] INFO: Socat not enabled

[18:19:21] INFO: Starting Zigbee2MQTT...

[2024-06-11 18:19:27] info: z2m: Logging to console, file (filename: log.log)

[2024-06-11 18:19:27] info: z2m: Starting Zigbee2MQTT version 1.38.0 (commit #unknown)

[2024-06-11 18:19:27] info: z2m: Starting zigbee-herdsman (0.49.2)

[2024-06-11 18:19:27] info: zh:zstack:znp: Opening SerialPort with {"path":"/dev/ttyUSB0","baudRate":115200,"rtscts":false,"autoOpen":false}

[2024-06-11 18:19:28] error: z2m: Error while starting zigbee-herdsman

[2024-06-11 18:19:28] error: z2m: Failed to start zigbee

[2024-06-11 18:19:28] error: z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions

[2024-06-11 18:19:28] error: z2m: Exiting...

[2024-06-11 18:19:28] error: z2m: Error: Error Resource temporarily unavailable Cannot lock port

Do you have ZHA installed?

Use dev/serial/by-id, not TTY*

1 Like

Hey i dont have ZHA installed, should I?

Use dev/serial/by-id, not TTY*

What do you mean?

No you should not have ZHA installed if you want to use Z2M, but it is a common mistake. If you refer to the device as /dev/TTYUSB0 chances are that it can change to for example /dev/TTYUSB1 in the future. To save you the hassle of troubleshooting that it is recommended that you use /dev/serial/by-id instead, that never changes. If you go to Settings → System → hardware → all hardware you will find your adapter listed with the correct /serial/by-id/XXXX. Use this in the Z2M config.

1 Like

so I used this

/dev/serial/by-id/usb-Nabu_Casa_SkyConnect_v1.0_fe6c10ad78d8ed11ba94776162c613ac-if00-port0

it shows this error:


[18:37:51] INFO: Preparing to start...
[18:37:52] INFO: Socat not enabled
[18:37:54] INFO: Starting Zigbee2MQTT...
[2024-06-11 18:38:00] info: 	z2m: Logging to console, file (filename: log.log)
[2024-06-11 18:38:00] info: 	z2m: Starting Zigbee2MQTT version 1.38.0 (commit #unknown)
[2024-06-11 18:38:00] info: 	z2m: Starting zigbee-herdsman (0.49.2)
[2024-06-11 18:38:00] info: 	zh:ember: Using default stack config.
[2024-06-11 18:38:00] info: 	zh:ember: ======== Ember Adapter Starting ========
[2024-06-11 18:38:00] info: 	zh:ember:ezsp: ======== EZSP starting ========
[2024-06-11 18:38:00] info: 	zh:ember:uart:ash: ======== ASH NCP reset ========
[2024-06-11 18:38:00] info: 	zh:ember:uart:ash: RTS/CTS config is off, enabling software flow control.
[2024-06-11 18:38:01] info: 	zh:ember:uart:ash: Serial port opened
[2024-06-11 18:38:01] info: 	zh:ember:uart:ash: ======== ASH starting ========
[2024-06-11 18:38:03] info: 	zh:ember:uart:ash: ======== ASH NCP reset ========
[2024-06-11 18:38:03] info: 	zh:ember:uart:ash: ======== ASH starting ========
[2024-06-11 18:38:06] info: 	zh:ember:uart:ash: ======== ASH NCP reset ========
[2024-06-11 18:38:06] info: 	zh:ember:uart:ash: ======== ASH starting ========
[2024-06-11 18:38:08] info: 	zh:ember:uart:ash: ======== ASH NCP reset ========
[2024-06-11 18:38:08] info: 	zh:ember:uart:ash: ======== ASH starting ========
[2024-06-11 18:38:11] info: 	zh:ember:uart:ash: ======== ASH NCP reset ========
[2024-06-11 18:38:11] info: 	zh:ember:uart:ash: ======== ASH starting ========
[2024-06-11 18:38:13] error: 	z2m: Error while starting zigbee-herdsman
[2024-06-11 18:38:13] error: 	z2m: Failed to start zigbee
[2024-06-11 18:38:13] error: 	z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
[2024-06-11 18:38:13] error: 	z2m: Exiting...
[2024-06-11 18:38:13] 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:850:19)
    at EmberAdapter.start (/app/node_modules/zigbee-herdsman/src/adapter/ember/adapter/emberAdapter.ts:2683:24)
    at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:127:29)
    at Zigbee.start (/app/lib/zigbee.ts:62:27)
    at Controller.start (/app/lib/controller.ts:109:27)
    at start (/app/index.js:107:5)

What’s the firmware version on the stick? You need to be at 7.4.x to get compatibility with the ember driver. You could try

serial:
  adapter: ezsp

but this is deprecated Improved Ember (EZSP) driver (experimental) · Koenkk/zigbee2mqtt · Discussion #21462 · GitHub

Flashing instructions: EmberZNet adapters (Silicon Labs) | Zigbee2MQTT

I can’t use ezsp because it was deprecated.

I’m trying to use ember my version is

Zigbee (EZSP) 7.4.2.0 build 0

ezsp is deprecated, but still working. And 7.4.2 seems problematic, you could try with 7.4.1 (don’t know if 7.4.3 is available for Skyconnect)

image
I have this options

It’s giving this error

[20:43:52] INFO: Preparing to start...
[20:43:53] INFO: Socat not enabled
[20:43:55] INFO: Starting Zigbee2MQTT...
[2024-06-11 20:44:01] info: 	z2m: Logging to console, file (filename: log.log)
[2024-06-11 20:44:01] info: 	z2m: Starting Zigbee2MQTT version 1.38.0 (commit #unknown)
[2024-06-11 20:44:01] info: 	z2m: Starting zigbee-herdsman (0.49.2)
[2024-06-11 20:44:01] info: 	zh:ember: Using default stack config.
[2024-06-11 20:44:01] info: 	zh:ember: ======== Ember Adapter Starting ========
[2024-06-11 20:44:01] info: 	zh:ember:ezsp: ======== EZSP starting ========
[2024-06-11 20:44:01] info: 	zh:ember:uart:ash: ======== ASH NCP reset ========
[2024-06-11 20:44:01] info: 	zh:ember:uart:ash: RTS/CTS config is off, enabling software flow control.
[2024-06-11 20:44:01] info: 	zh:ember:uart:ash: Serial port opened
[2024-06-11 20:44:01] info: 	zh:ember:uart:ash: ======== ASH starting ========
[2024-06-11 20:44:04] error: 	zh:ember:uart:ash: ASH disconnected: ASH_ERROR_RESET_FAIL | NCP status: NO_ERROR
[2024-06-11 20:44:04] info: 	zh:ember:uart:ash: ======== ASH NCP reset ========
[2024-06-11 20:44:04] info: 	zh:ember:uart:ash: ======== ASH starting ========
[2024-06-11 20:44:07] info: 	zh:ember:uart:ash: ======== ASH NCP reset ========
[2024-06-11 20:44:07] info: 	zh:ember:uart:ash: ======== ASH starting ========
[2024-06-11 20:44:09] info: 	zh:ember:uart:ash: ======== ASH NCP reset ========
[2024-06-11 20:44:09] info: 	zh:ember:uart:ash: ======== ASH starting ========
[2024-06-11 20:44:12] error: 	zh:ember:uart:ash: ASH disconnected: ASH_ERROR_RESET_FAIL | NCP status: NO_ERROR
[2024-06-11 20:44:12] info: 	zh:ember:uart:ash: ======== ASH NCP reset ========
[2024-06-11 20:44:12] info: 	zh:ember:uart:ash: ======== ASH starting ========
[2024-06-11 20:44:14] error: 	z2m: Error while starting zigbee-herdsman
[2024-06-11 20:44:14] error: 	z2m: Failed to start zigbee
[2024-06-11 20:44:14] error: 	z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
[2024-06-11 20:44:14] error: 	z2m: Exiting...
[2024-06-11 20:44:15] 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:850:19)
    at EmberAdapter.start (/app/node_modules/zigbee-herdsman/src/adapter/ember/adapter/emberAdapter.ts:2683:24)
    at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:127:29)
    at Zigbee.start (/app/lib/zigbee.ts:62:27)
    at Controller.start (/app/lib/controller.ts:109:27)
    at start (/app/index.js:107:5)

Hello,

Dont know if i can but if someone helps me solve this, I’ll buy a zigbee device has a thank you!!!

Currently I unistall Z2M and mosquitto broker and deleted the Z2M yaml file, rebooted HA

instaleld everything all again

For mosquitto broker I didn’t do anything besides installing it and adding the integration.

For Z2M

I did:

data_path: /config/zigbee2mqtt
socat:
  enabled: false
  master: pty,raw,echo=0,link=/tmp/ttyZ2M,mode=777
  slave: tcp-listen:8485,keepalive,nodelay,reuseaddr,keepidle=1,keepintvl=1,keepcnt=5
  options: "-d -d"
  log: false
mqtt: {}
serial:
  port: >-
    /dev/serial/by-id/usb-Nabu_Casa_SkyConnect_v1.0_fe6c10ad78d8ed11ba94776162c613ac-if00-port0
  adapter: ember

and when I launch it it give this log:

[10:28:46] INFO: Preparing to start...
[10:28:47] INFO: Socat not enabled
[10:28:49] INFO: Starting Zigbee2MQTT...
[2024-06-12 10:28:54] info: 	z2m: Logging to console, file (filename: log.log)
[2024-06-12 10:28:54] info: 	z2m: Starting Zigbee2MQTT version 1.38.0 (commit #unknown)
[2024-06-12 10:28:54] info: 	z2m: Starting zigbee-herdsman (0.49.2)
[2024-06-12 10:28:55] info: 	zh:ember: Using default stack config.
[2024-06-12 10:28:55] info: 	zh:ember: ======== Ember Adapter Starting ========
[2024-06-12 10:28:55] info: 	zh:ember:ezsp: ======== EZSP starting ========
[2024-06-12 10:28:55] info: 	zh:ember:uart:ash: ======== ASH NCP reset ========
[2024-06-12 10:28:55] info: 	zh:ember:uart:ash: RTS/CTS config is off, enabling software flow control.
[2024-06-12 10:28:55] info: 	zh:ember:uart:ash: Serial port opened
[2024-06-12 10:28:55] info: 	zh:ember:uart:ash: ======== ASH starting ========
[2024-06-12 10:28:57] error: 	zh:ember:uart:ash: ASH disconnected: ASH_ERROR_RESET_FAIL | NCP status: NO_ERROR
[2024-06-12 10:28:57] info: 	zh:ember:uart:ash: ======== ASH NCP reset ========
[2024-06-12 10:28:57] info: 	zh:ember:uart:ash: ======== ASH starting ========
[2024-06-12 10:29:00] error: 	zh:ember:uart:ash: ASH disconnected: ASH_ERROR_RESET_FAIL | NCP status: NO_ERROR
[2024-06-12 10:29:00] info: 	zh:ember:uart:ash: ======== ASH NCP reset ========
[2024-06-12 10:29:00] info: 	zh:ember:uart:ash: ======== ASH starting ========
[2024-06-12 10:29:02] info: 	zh:ember:uart:ash: ======== ASH NCP reset ========
[2024-06-12 10:29:02] info: 	zh:ember:uart:ash: ======== ASH starting ========
[2024-06-12 10:29:05] error: 	zh:ember:uart:ash: ASH disconnected: ASH_ERROR_RESET_FAIL | NCP status: NO_ERROR
[2024-06-12 10:29:05] info: 	zh:ember:uart:ash: ======== ASH NCP reset ========
[2024-06-12 10:29:05] info: 	zh:ember:uart:ash: ======== ASH starting ========
[2024-06-12 10:29:07] error: 	zh:ember:uart:ash: ASH disconnected: ASH_ERROR_RESET_FAIL | NCP status: NO_ERROR
[2024-06-12 10:29:07] error: 	z2m: Error while starting zigbee-herdsman
[2024-06-12 10:29:07] error: 	z2m: Failed to start zigbee
[2024-06-12 10:29:07] error: 	z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
[2024-06-12 10:29:07] error: 	z2m: Exiting...
[2024-06-12 10:29:08] 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:850:19)
    at EmberAdapter.start (/app/node_modules/zigbee-herdsman/src/adapter/ember/adapter/emberAdapter.ts:2683:24)
    at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:127:29)
    at Zigbee.start (/app/lib/zigbee.ts:62:27)
    at Controller.start (/app/lib/controller.ts:109:27)
    at start (/app/index.js:107:5)

Also I dont have ZHA installed

You need to defing the mqtt config.

e.g.

mqtt:
  base_topic: zigbee2mqtt
  user: <your mqtt username here>
  password: <your mqtt user's password here>
  server: mqtt://<HA IP address here>
  keepalive: 60
  reject_unauthorized: true
  version: 4
  include_device_information: true

Hey Tom

Where?

In the config/zigbee2mqtt/configuration.yaml file.

ok I’ve done it and rebooted HA

when i start Z2M now it shows

[2024-06-12 10:55:50] error: 	zh:ember:uart:ash: Failed to init port with error Error: Error Resource temporarily unavailable Cannot lock port
[2024-06-12 10:55:50] error: 	z2m: Error while starting zigbee-herdsman
[2024-06-12 10:55:50] error: 	z2m: Failed to start zigbee
[2024-06-12 10:55:50] error: 	z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
[2024-06-12 10:55:50] error: 	z2m: Exiting...
[2024-06-12 10:55: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:850:19)
    at EmberAdapter.start (/app/node_modules/zigbee-herdsman/src/adapter/ember/adapter/emberAdapter.ts:2683:24)
    at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:127:29)
    at Zigbee.start (/app/lib/zigbee.ts:62:27)
    at Controller.start (/app/lib/controller.ts:109:27)
    at start (/app/index.js:107:5)

It can’t start your adaptor.

You already created a thread on this yesterday. SkyConnect + Zigbee2mqtt - #7 by Rui_Fernandes

1 Like

Any reason why? how can i troubleshoot it?

Since its recognized on HA

image

If you search for your error z2m: Error: Failed to start EZSP layer with status=HOST_FATAL_ERROR. you’ll find a thread where someone had the same error. See if what that person did to solve it helps you.

Unfortunally doesn’t seem to help me since its for a flashed sonoff

[11:20:38] INFO: Preparing to start...
[11:20:39] INFO: Socat not enabled
[11:20:42] INFO: Starting Zigbee2MQTT...
[2024-06-12 11:20:47] info: 	z2m: Logging to console, file (filename: log.log)
[2024-06-12 11:20:47] info: 	z2m: Starting Zigbee2MQTT version 1.38.0 (commit #unknown)
[2024-06-12 11:20:47] info: 	z2m: Starting zigbee-herdsman (0.49.2)
[2024-06-12 11:20:47] info: 	zh:ember: Using default stack config.
[2024-06-12 11:20:47] info: 	zh:ember: ======== Ember Adapter Starting ========
[2024-06-12 11:20:47] info: 	zh:ember:ezsp: ======== EZSP starting ========
[2024-06-12 11:20:47] info: 	zh:ember:uart:ash: ======== ASH NCP reset ========
[2024-06-12 11:20:47] info: 	zh:ember:uart:ash: RTS/CTS config is off, enabling software flow control.
[2024-06-12 11:20:47] info: 	zh:ember:uart:ash: Serial port opened
[2024-06-12 11:20:47] info: 	zh:ember:uart:ash: ======== ASH starting ========
[2024-06-12 11:20:50] info: 	zh:ember:uart:ash: ======== ASH NCP reset ========
[2024-06-12 11:20:50] info: 	zh:ember:uart:ash: ======== ASH starting ========
[2024-06-12 11:20:53] info: 	zh:ember:uart:ash: ======== ASH NCP reset ========
[2024-06-12 11:20:53] info: 	zh:ember:uart:ash: ======== ASH starting ========
[2024-06-12 11:20:55] info: 	zh:ember:uart:ash: ======== ASH NCP reset ========
[2024-06-12 11:20:55] info: 	zh:ember:uart:ash: ======== ASH starting ========
[2024-06-12 11:20:58] info: 	zh:ember:uart:ash: ======== ASH NCP reset ========
[2024-06-12 11:20:58] info: 	zh:ember:uart:ash: ======== ASH starting ========
[2024-06-12 11:21:00] error: 	z2m: Error while starting zigbee-herdsman
[2024-06-12 11:21:00] error: 	z2m: Failed to start zigbee
[2024-06-12 11:21:00] error: 	z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
[2024-06-12 11:21:00] error: 	z2m: Exiting...
[2024-06-12 11:21:00] 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:850:19)
    at EmberAdapter.start (/app/node_modules/zigbee-herdsman/src/adapter/ember/adapter/emberAdapter.ts:2683:24)
    at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:127:29)
    at Zigbee.start (/app/lib/zigbee.ts:62:27)
    at Controller.start (/app/lib/controller.ts:109:27)
    at start (/app/index.js:107:5)

Still showing the same error