OZ1SEJ
(Steen Eiler Jørgensen)
1
I’ve installed the Zigbee2MQTT add-on, but whenever I click on it in the left menu, I just get a “502 Bad Gateway” error.
Log excerpt:
> [email protected] start
> node index.js
Zigbee2MQTT:info 2022-08-31 13:09:34: Logging to console and directory: '/config/zigbee2mqtt/log/2022-08-31.13-09-34' filename: log.txt
Zigbee2MQTT:info 2022-08-31 13:09:35: Starting Zigbee2MQTT version 1.27.0 (commit #unknown)
Zigbee2MQTT:info 2022-08-31 13:09:35: Starting zigbee-herdsman (0.14.46)
Zigbee2MQTT:error 2022-08-31 13:09:43: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2022-08-31 13:09:43: Failed to start zigbee
Zigbee2MQTT:error 2022-08-31 13:09:43: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
Zigbee2MQTT:error 2022-08-31 13:09:43: Exiting...
Zigbee2MQTT:error 2022-08-31 13:09:43: Error: spawn udevadm ENOENT
at Process.ChildProcess._handle.onexit (node:internal/child_process:283:19)
at onErrorNT (node:internal/child_process:478:16)
at processTicksAndRejections (node:internal/process/task_queues:83:21)
[13:09:51] INFO: Handing over control to Zigbee2MQTT Core ...
> [email protected] start
> node index.js
khvej8
(Khvej8)
2
How is your setup, coordinator, HW etc.
Z2M configuration?
This is not enough information to help.
OZ1SEJ
(Steen Eiler Jørgensen)
3
Ah, good point. I’m running Home Assistant on a Raspberry Pi 3B. My Zigbee2MQTT configuration is:
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: {}
(It’s the default configuation - I haven’t changed anything since installing it.)
khvej8
(Khvej8)
4
MQTT installed as mosquitto broker add-on on same RPi?
The zigbee coordinator is a ?
The default configuration is not enough. The MQTT part need to be configured before Z2M can start Something like this in the z2m configuration file.
mqtt:
base_topic: zigbee2mqtt
user: MQTTUser
password: XXXXXX
server: mqtt://core-mosquitto:1883
The coordinator HW serial should afterward be set, something like
serial:
port: >-
/dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_d617560171d9eb11bf30158e6fe9f4d9-if00-port0