Zigbee2MQTT lässt sich nicht einrichten

Hallo zusammen,

ich versuche seit Tagen Zigbee2MQTT einzurichten.

Bis jetzt bin ich aber keinen Schritt weiter.

Was habe ich bisher getan:

Stick auf aktuellste Firmware geflasht:

Im Proxmox habe ich den Sonoff Stick eingebunden

Danach alles neu gestaret

Auch das Durchreichen vom USB Port hat nicht zum erfolg geführt.

Dann unter HA das Adon installiert und die Konfiguration erstellt:

Dann Zigbee2MQTT gestartet und in der Seitenleiste die Zigbee2MQTT Onboarding aufgerufen.

Dann auf Submit geklickt

Das Protokoll des AddOn spuckt dann aber immer diese Fehlermeldung aus.

21:16:35] INFO: Preparing to start...
[21:16:35] INFO: Socat not enabled
[21:16:35] INFO: Starting Zigbee2MQTT...
Starting Zigbee2MQTT without watchdog.
Onboarding page is available at http://0.0.0.0:8099/
[2025-09-20 21:17:16] info: 	z2m: Logging to console, file (filename: log.log)
[2025-09-20 21:17:16] info: 	z2m: Starting Zigbee2MQTT version 2.6.1 (commit #unknown)
[2025-09-20 21:17:16] info: 	z2m: Starting zigbee-herdsman (6.0.4)
[2025-09-20 21:17:17] info: 	zh:zstack:znp: Opening SerialPort with {"path":"/dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_8249600b9a74ef119288ca8c8fcc3fa0-if00-port0","baudRate":115200,"rtscts":false,"autoOpen":false}
[2025-09-20 21:17:17] info: 	zh:zstack:znp: Serialport opened
[2025-09-20 21:17:17] info: 	zh:zstack:znp: Writing CC2530/CC2531 skip bootloader payload
[2025-09-20 21:17:18] info: 	zh:zstack:znp: Skip bootloader for CC2652/CC1352
[2025-09-20 21:17:37] error: 	z2m: Error while starting zigbee-herdsman
[2025-09-20 21:17:37] error: 	z2m: Failed to start zigbee-herdsman
[2025-09-20 21:17:37] error: 	z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start_crashes-runtime.html for possible solutions
[2025-09-20 21:17:37] error: 	z2m: Exiting...
[2025-09-20 21:17:37] error: 	z2m: Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)
    at ZStackAdapter.start (/app/node_modules/.pnpm/zigbee-herdsman@6.0.4/node_modules/zigbee-herdsman/src/adapter/z-stack/adapter/zStackAdapter.ts:114:27)
    at Controller.start (/app/node_modules/.pnpm/zigbee-herdsman@6.0.4/node_modules/zigbee-herdsman/src/controller/controller.ts:133:29)
    at Zigbee.start (/app/lib/zigbee.ts:67:27)
    at Controller.start (/app/lib/controller.ts:101:13)
    at start (/app/index.js:149:5)
[21:17:37] INFO: Preparing to start...
[21:17:38] INFO: Socat not enabled
[21:17:38] INFO: Starting Zigbee2MQTT...
Starting Zigbee2MQTT without watchdog.
Onboarding page is available at http://0.0.0.0:8099/


Ich habe bereits einen neuen Stick (gleiche “P” Version) gekauft, doch auch bei diesem gleiches Verhalten.

Ebenso habe ich das AddOn deinstalliert und im File Editor diese Datei gelöscht.

Danach neu gestartet und das AddOn neu installiert.

Kann mir jemand helfen, das AddOn zum laufen zu bekommen?

Zigbee Home Automation (ZHA) hast du aber hoffentlich nicht integriert.

Moin,

Du hast dann aber einen Fehler begangen! Denn Du hast ja den USB-Stick als USB1 eingebunden

Was bei Dir USB-0 Ist :man_shrugging:

Das tut man nicht mehr, denn dafür gibt es ja das Onboarding durch Zigbee2MQTT, steht auch so in Der Dokumentation

Configuration

Onboarding

Onboarding allows you to setup Zigbee2MQTT without having to manually enter the details in the add-on configuration page. When starting the add-on with a brand new install (no configuration present), the frontend will show a quick setup page, allowing you to select various settings for Zigbee2MQTT to be able to start.

Successful detection of adapters, to select from, may vary based on your setup/network. You may have to enter these details manually on the page instead.

You can force the onboarding to re-run (e.g. changing adapter) using the toggle available in the add-on configuration page (visible after checking Show unused optional configuration options). This will force onboarding to run even after you have successfully configured it for the first time. Make sure to disable it once done.

Da Du da etwas in der Add-on-Konfiguration eingetragen hast, wird das auch in das Onboarding übernommen, also auch so

Ich würde mal von vorne beginnen, ohne in der Add-on-Konfiguration etwas einzutragen, dann über diese Auswahl den richtigen Stick auswählen


Und alles korrekt im Onboarding eintragen.

Das kann daran liegen, dass er unter USB-0 halt nicht den Zigbee Adapter sieht!

Ja, aber erst einmal eine Gegenfrage, wenn Du Proxmox einsetzt, warum dann das Add-on, warum nicht MQTT und Zigbee2MQTT als eigenständige LXC installieren, das geht mit den Helferskripten in unter 5 Minuten.

So nochmals zu Deinem Problem, bevor Du etwas Konfigurierst, schau in die HA Hardware und suche Dir erst einmal den korrekten Port aus

VG
Bernd

Vielen Dank für die Antworten.

Du hast recht mit den USB Ports passt etwas nicht

root@proxmox:~# ls -l /dev/serial/by-id
total 0
lrwxrwxrwx 1 root root 13 Sep 21 12:14 usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_8249600b9a74ef119288ca8c8fcc3fa0-if00-port0 -> ../../ttyUSB0

Am Port 0 habe ich den Homematic Adapter angeschlossen

Wenn ich den ZigBee Stick hier auswähle

erscheint er in HA allerdings immer als USB0

Habe auch schon die beiden Sticks getauscht

Funktioniert auch nicht

######################################################

Auch die Konfiguration unter einem LCX container habe ich bereits getestet.

Hier startet dieser aber nach dem Device-Passtrough nicht mehr.

grafik

()
safe_mount: 1425 No such file or directory - Failed to mount "/dev/ttyUSB1" onto "/usr/lib/x86_64-linux-gnu/lxc/rootfs/dev/ttyUSB1"
safe_mount: 1425 No such file or directory - Failed to mount "/dev/ttyACM0" onto "/usr/lib/x86_64-linux-gnu/lxc/rootfs/dev/ttyACM0"
safe_mount: 1425 No such file or directory - Failed to mount "/dev/ttyACM1" onto "/usr/lib/x86_64-linux-gnu/lxc/rootfs/dev/ttyACM1"
run_buffer: 571 Script exited with status 17
lxc_setup: 3948 Failed to run autodev hooks
do_start: 1273 Failed to setup container "102"
sync_wait: 34 An error occurred in another process (expected sequence number 4)
__lxc_start: 2114 Failed to spawn container "102"
TASK ERROR: startup for container '102' failed

Moin,

Wie ist der LXC eingestellt, als unprivilegiert, oder als privilegiert?
Wie genau sieht die Konfigurationsdatei des LXC 102 aus?

# cat /etc/pve/lxc/102.conf

VG
Bernd

Ist privilegiert

Meinst due die configuration.ymal?

> version: 4
> homeassistant:
> enabled: true
> frontend:
> port: 8080
> enabled: true
> mqtt:
> base_topic: zigbee2mqtt
> server: ‘mqtt://192.168.178.10:8123’
> user: \*\*\*\*
> password: ‘\*\*\*\*’
> keepalive: 60
> reject_unauthorized: true
> serial:
> port: /dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_8249600b9a74ef119288ca8c8fcc3fa0-if00-port0
> advanced:
> network_key:
> - 178
> - 249
> - 200
> - 152
> - 115
> - 246
> - 254
> - 219
> - 148
> - 154
> - 36
> - 159
> - 80
> - 174
> - 236
> - 51
> pan_id: 61192
> ext_pan_id:
> - 109
> - 196
> - 177
> - 132
> - 248

:crayon:by HarryP: Code-/Logzeilen formatiert (bitte immer in </> einbinden)
s.a.: (Neues Update & Features - Hier in der Community 🫶)

Moin,

nein, deswegen habe ich ja den Befehl angefügt :wink:

VG
Bernd

Linux proxmox 6.8.12-9-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-9 (2025-03-16T19:18Z) x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sun Sep 21 13:03:07 CEST 2025 on pts/0
root@proxmox:~# cat /etc/pve/lxc/102.conf
#<div align='center'>
#  <a href='https%3A//Helper-Scripts.com' target='_blank' rel='noopener noreferrer'>
#    <img src='https%3A//raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/images/logo-81x112.png' alt='Logo' style='width%3A81px;height%3A112px;'/>
#  </a>
#
#  <h2 style='font-size%3A 24px; margin%3A 20px 0;'>Zigbee2MQTT LXC</h2>
#
#  <p style='margin%3A 16px 0;'>
#    <a href='https%3A//ko-fi.com/community_scripts' target='_blank' rel='noopener noreferrer'>
#      <img src='https%3A//img.shields.io/badge/&#x2615;-Buy us a coffee-blue' alt='spend Coffee' />
#    </a>
#  </p>
#
#  <span style='margin%3A 0 10px;'>
#    <i class="fa fa-github fa-fw" style="color%3A #f5f5f5;"></i>
#    <a href='https%3A//github.com/community-scripts/ProxmoxVE' target='_blank' rel='noopener noreferrer' style='text-decoration%3A none; color%3A #00617f;'>GitHub</a>
#  </span>
#  <span style='margin%3A 0 10px;'>
#    <i class="fa fa-comments fa-fw" style="color%3A #f5f5f5;"></i>
#    <a href='https%3A//github.com/community-scripts/ProxmoxVE/discussions' target='_blank' rel='noopener noreferrer' style='text-decoration%3A none; color%3A #00617f;'>Discussions</a>
#  </span>
#  <span style='margin%3A 0 10px;'>
#    <i class="fa fa-exclamation-circle fa-fw" style="color%3A #f5f5f5;"></i>
#    <a href='https%3A//github.com/community-scripts/ProxmoxVE/issues' target='_blank' rel='noopener noreferrer' style='text-decoration%3A none; color%3A #00617f;'>Issues</a>
#  </span>
#</div>
arch: amd64
cores: 2
features: nesting=1
hostname: zigbee2mqtt
memory: 1024
net0: name=eth0,bridge=vmbr0,hwaddr=BC:24:11:CF:90:CB,ip=dhcp,type=veth
onboot: 1
ostype: debian
rootfs: local-lvm:vm-102-disk-0,size=5G
swap: 512
tags: community-script;mqtt;smarthome;zigbee
lxc.cgroup2.devices.allow: a
lxc.cap.drop: 
lxc.cgroup2.devices.allow: c 188:* rwm
lxc.cgroup2.devices.allow: c 189:* rwm
lxc.mount.entry: /dev/serial/by-id  dev/serial/by-id  none bind,optional,create=dir
lxc.mount.entry: /dev/ttyUSB0       dev/ttyUSB0       none bind,optional,create=file
lxc.mount.entry: /dev/ttyUSB1       dev/ttyUSB1       none bind,optional,create=file
lxc.mount.entry: /dev/ttyACM0       dev/ttyACM0       none bind,optional,create=file
lxc.mount.entry: /dev/ttyACM1       dev/ttyACM1       none bind,optional,create=file
lxc.cgroup2.devices.allow: c 226:128 rwm
lxc.mount.entry: /dev/dri/renderD128 dev/dri/renderD128 none bind,optional,create=file
lxc.mount.entry: /dev/dri dev/dri none bind,optional,create=dir

:laughing:

##################################################################

Habe jetzt einfach einmal die drei Zeilen gelöscht

  GNU nano 7.2                                                               102.conf                                                                         
#  <p style='margin%3A 16px 0;'>
#    <a href='https%3A//ko-fi.com/community_scripts' target='_blank' rel='noopener noreferrer'>
#      <img src='https%3A//img.shields.io/badge/&#x2615;-Buy us a coffee-blue' alt='spend Coffee' />
#    </a>
#  </p>
#
#  <span style='margin%3A 0 10px;'>
#    <i class="fa fa-github fa-fw" style="color%3A #f5f5f5;"></i>
#    <a href='https%3A//github.com/community-scripts/ProxmoxVE' target='_blank' rel='noopener noreferrer' style='text-decoration%3A none; color%3A #00617f;'>>
#  </span>
#  <span style='margin%3A 0 10px;'>
#    <i class="fa fa-comments fa-fw" style="color%3A #f5f5f5;"></i>
#    <a href='https%3A//github.com/community-scripts/ProxmoxVE/discussions' target='_blank' rel='noopener noreferrer' style='text-decoration%3A none; color%3>
#  </span>
#  <span style='margin%3A 0 10px;'>
#    <i class="fa fa-exclamation-circle fa-fw" style="color%3A #f5f5f5;"></i>
#    <a href='https%3A//github.com/community-scripts/ProxmoxVE/issues' target='_blank' rel='noopener noreferrer' style='text-decoration%3A none; color%3A #00>
#  </span>
#</div>
arch: amd64
cores: 2
features: nesting=1
hostname: zigbee2mqtt
memory: 1024
net0: name=eth0,bridge=vmbr0,hwaddr=BC:24:11:CF:90:CB,ip=dhcp,type=veth
onboot: 1
ostype: debian
rootfs: local-lvm:vm-102-disk-0,size=5G
swap: 512
tags: community-script;mqtt;smarthome;zigbee
lxc.cgroup2.devices.allow: a
lxc.cap.drop:
lxc.cgroup2.devices.allow: c 188:* rwm
lxc.cgroup2.devices.allow: c 189:* rwm
lxc.mount.entry: /dev/serial/by-id  dev/serial/by-id  none bind,optional,create=dir
lxc.mount.entry: /dev/ttyUSB0       dev/ttyUSB0       none bind,optional,create=file
lxc.cgroup2.devices.allow: c 226:128 rwm
lxc.mount.entry: /dev/dri/renderD128 dev/dri/renderD128 none bind,optional,create=file
lxc.mount.entry: /dev/dri dev/dri none bind,optional,create=dir

Jetzt erscheint diese Fehlermeldung

()
run_buffer: 571 Script exited with status 17
lxc_setup: 3948 Failed to run autodev hooks
do_start: 1273 Failed to setup container "102"
sync_wait: 34 An error occurred in another process (expected sequence number 4)
__lxc_start: 2114 Failed to spawn container "102"
TASK ERROR: startup for container '102' failed

Ich kann Erfolg vermelden :rofl:

Mit dieser configuration.yaml funktioniert es jetzt bei mir

 GNU nano 7.2                                                /opt/zigbee2mqtt/data/configuration.yaml                                                          
version: 4
homeassistant:
  enabled: true
frontend:
  port: 8080
  enabled: true
mqtt:
  base_topic: zigbee2mqtt
  server: mqtt://192.168.178.10:1883
  user: zigbee
  password: zigbee
  keepalive: 60
  reject_unauthorized: true
serial:
  port: >-
    /dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_8249600b9a74ef119288ca8c8fcc3fa0-if00-port0
  adapter: zstack
  baudrate: 115200
  rtscts: false
advanced:
  network_key:
   - 178
    - 249
    - 200
    - 152
    - 115
    - 246
    - 254
    - 219
    - 148
    - 154
    - 36
    - 159
    - 80
    - 174
    - 236
    - 51
 pan_id: 61192
  ext_pan_id:
    - 109
    - 196
    - 177
    - 132
    - 248
    - 17
    - 192
    - 64

Ich habe unter den Ressourcen keine Geräte durchgereicht.