Zigbee MQTT Setup on HA Yellow box

Good Evening All,

I’ve been trying to migrate to Zigbee MQTT this week on my HA yellow, but been struggling to get this to work with my Yellow box.

I believe I am using the correct port, but am getting the below error log.

[20:57:48] INFO: Preparing to start...
[20:57:48] INFO: Socat not enabled
[20:57:49] INFO: Starting Zigbee2MQTT...
Starting Zigbee2MQTT without watchdog.
[2025-02-09 20:57:54] info: 	z2m: Logging to console, file (filename: log.log)
[2025-02-09 20:57:54] info: 	z2m: Starting Zigbee2MQTT version 2.1.1 (commit #unknown)
[2025-02-09 20:57:54] info: 	z2m: Starting zigbee-herdsman (3.2.5)
[2025-02-09 20:57:55] info: 	zh:zstack:znp: Opening SerialPort with {"path":"/dev/ttyAMA1","baudRate":115200,"rtscts":false,"autoOpen":false}
[2025-02-09 20:57:55] info: 	zh:zstack:znp: Serialport opened
[2025-02-09 20:57:55] info: 	zh:zstack:znp: Writing CC2530/CC2531 skip bootloader payload
[2025-02-09 20:57:56] info: 	zh:zstack:znp: Skip bootloader for CC2652/CC1352
[2025-02-09 20:58:15] error: 	z2m: Error while starting zigbee-herdsman
[2025-02-09 20:58:15] error: 	z2m: Failed to start zigbee-herdsman
[2025-02-09 20:58:15] error: 	z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start_crashes-runtime.html for possible solutions
[2025-02-09 20:58:15] error: 	z2m: Exiting...
[2025-02-09 20:58:15] error: 	z2m: Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)
    at ZStackAdapter.start (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/adapter/z-stack/adapter/zStackAdapter.ts:113:27)
    at Controller.start (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/controller/controller.ts:136:29)
    at Zigbee.start (/app/lib/zigbee.ts:69:27)
    at Controller.start (/app/lib/controller.ts:142:13)
    at start (/app/index.js:161:5)

My YAML Configuration is as below

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/ttyAMA1
  adapter: zstack

Any suggestions are greatly Appriciated

Hi William,

It looks like you have the wrong adapter type selected OR the wrong firmware.
You should be able to get help by searching here as This was a big thing a month ago, but I don’t remember what needed what,. You can also check here

or here

Hey, yeah did check the installation fail to start, but no joy with the suggestions there. I wonder if the port is incorrect but all documentation I can find on HA Yellow suggests this is what is used for Zigbee built in

Well never use that port.
Use the one found in the hardware section that is long. The serial-by-id thing.
Looks like this:
image

Use adapter ember, not zstack.

According to HA’s doccumentation the zigbee HA is on ttyAMA1


FAQ – Home Assistant Yellow

So seems that this is the correct port.

but will try @robertklep idea to switch adapter now

The Home Assistant Yellow team officially supports ZHA (Zigbee Home Automation), the Zigbee stack integrated into Home Assistant Core.

The Zigbee2MQTT project has experimental support (in beta stage) for the Silicon Labs radio on Home Assistant Yellow. With this setting Zigbee2MQTT is known to work on Home Assistant Yellow.

Note: The Zigbee Home Automation integration is active by default! If you are using Zigbee2MQTT, remember to delete and ignore the discovered Zigbee Home Automation integration to avoid interference.

Note: When setting up Zigbee2MQTT with the Home Assistant Yellow, you will need to configure the adapter type in Zigbee2MQTT. Make sure the following is present in your Zigbee2MQTT configuration:

serial:
    adapter: ezsp
    port: /dev/ttyAMA1
    baudrate: 115200
    rtscts: true

Found it!

I guess Zigbee2MQTT on HAOS is an older version if they still recommend the ezsp driver, because the current version of Zigbee2MQTT has deprecated that driver in favor of ember.

@william5 sorry to Hijack your thread but I’m also having issues getting Z2M to start.

HA Yellow > CM5.
Disabled and removed the ZHA integration so I believe HW already in use problems are excluded.

Instructions here followed GitHub - zigbee2mqtt/hassio-zigbee2mqtt: Official Zigbee2MQTT Home Assistant add-on through to Step 7 where I get the failing to start error at the bottom.

Config is as per yours…

Any idea?

serial:
adapter: ezsp
port: /dev/ttyAMA1
baudrate: 115200
rtscts: true


info: 	z2m: Logging to console, file (filename: log.log)
[2025-02-15 10:53:12] info: 	z2m: Starting Zigbee2MQTT version 2.1.1 (commit #unknown)
[2025-02-15 10:53:12] info: 	z2m: Starting zigbee-herdsman (3.2.5)
[2025-02-15 10:53:12] error: 	z2m: Error while starting zigbee-herdsman
[2025-02-15 10:53:12] error: 	z2m: Failed to start zigbee-herdsman
[2025-02-15 10:53:12] error: 	z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start_crashes-runtime.html for possible solutions
[2025-02-15 10:53:12] error: 	z2m: Exiting...
[2025-02-15 10:53:12] error: 	z2m: Error: USB adapter discovery error (No valid USB adapter found). Specify valid 'adapter' and 'port' in your configuration.
    at discoverAdapter (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/adapter/adapterDiscovery.ts:523:15)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at Function.create (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/adapter/adapter.ts:68:33)
    at Controller.start (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/controller/controller.ts:132:24)
    at Zigbee.start (/app/lib/zigbee.ts:69:27)
    at Controller.start (/app/lib/controller.ts:142:13)
    at start (/app/index.js:161:5)


Format your code properly please. It’s probably an indentation error (all the lines below serial should have 2 spaces behind them), but we can’t be sure if you don’t paste it as proper code.

Fixed, just copy/paste without format issue but indentation is correct in config I’m sure.

serial:
  adapter: ezsp
  port: /dev/ttyAMA1
  baudrate: 115200
  rtscts: true

Only code in socat is the default config which was present on install:

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

Ah! I’m guessing this is from the Z2M addon config page, right?

If so, you need to remove the serial line entirely and the spaces before the remaining lines.

serial: is already present in the addon config page as a header. You don’t need to add it again yourself. You can see this post from another user who had the same issue

1 Like

Thanks @ShadowFist - it worked.

I keep getting stuck on these where there is a header for a section but on install, add-ons seem to add the same thing twice.

Appreciated though!

1 Like