#Trying to get ZigBee2MQTT working with an Ethernet GW (HMG-01).

1 messages ยท Page 1 of 1 (latest)

last quail
#

Short: Zigbee2MQTT won't start on HASS

Hi folks, I'm trying to get ZigBee2MQTT working with an Ethernet GW (HMG-01). I can't seem to get HASS to start Zigbee2MQTT
[17:14:28] INFO: Preparing to start...
[17:14:29] INFO: Socat not enabled
[17:14:29] INFO: Starting Zigbee2MQTT...
Starting Zigbee2MQTT without watchdog.
[2024-09-24 17:14:31] info: z2m: Logging to console, file (filename: log.log)
[2024-09-24 17:14:31] info: z2m: Starting Zigbee2MQTT version 1.40.1 (commit #unknown)
[2024-09-24 17:14:31] info: z2m: Starting zigbee-herdsman (0.57.3)
[2024-09-24 17:14:31] error: z2m: Error while starting zigbee-herdsman
[2024-09-24 17:14:31] error: z2m: Failed to start zigbee
[2024-09-24 17:14:31] error: z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
[2024-09-24 17:14:31] error: z2m: Exiting...
[2024-09-24 17:14: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)
Zigbee2MQTT fails to start | Zigbee2MQTT
Zigbee to MQTT bridge, get rid of your proprietary Zigbee bridges
HASS running on an HP EliteDesk
Core
2024.9.3
Supervisor
2024.09.1
Operating System
13.1
Frontend
20240909.1

Config:

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: tcp://192.168.A.B:6638
baudrate: 115200
disable_led: false
advanced:
transmit_power: 20
serial: {}

I can ping and access the web interface on
192.168.A.B

fluid spearBOT
#

To format your text as code, enter three backticks on the first line, press Enter for a new line, paste your code, press Enter again for another new line, and lastly three more backticks.
```yaml
example: here
```
Don't forget you can edit your post rather than repeatedly posting the same thing.

charred grotto
#

Please share your config and use code blocks.

last quail
#

I only just found out about the second config (I post the config from the Z2M UI above but will repost here):

UI Config:

data_path: /config/zigbee2mqtt
socat:
  enabled: true
  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: true
  frontend: true
  data_path: /config/zigbee2mqtt
mqtt:
  serial:
    port: tcp://192.168.27.23:6638
    baudrate: 115200
    disable_led: false
  advanced:
    transmit_power: 20
serial: {}

zigbee2mqtt/configuation.yaml

homeassistant: true
advanced:
  network_key:
    - 142
    - 174
    - 245
    - 177
    - 139
    - 145
    - 94
    - 68
    - 243
    - 3
    - 151
    - 31
    - 136
    - 23
    - 25
    - 41
  pan_id: 4546
  ext_pan_id:
    - 77
    - 195
    - 60
    - 6
    - 227
    - 160
    - 62
    - 64
mqtt:
  server: mqtt://core-mosquitto:1883
  user: addons
  password: <secret>
frontend:
  port: 8099

A note: I also have ZHA using the Sonff 3.0 USB Dongle. But that's not what I've setup for Z2M.

#

Z2M should be using the HMG-01 GW. I do see the GW in MQTT

charred grotto
#

Your serial section is below/inside the mqtt section. It has to be its own key.
You also have serial twice due to that.

#

Can you screenshot the addon config UI?

last quail
#

Hmm

charred grotto
#

Yeah put that serial section into the serial section where it belongs.

#

But without the serial: and indented properly ๐Ÿ™‚

last quail
#

Good grief, let me try that.

#

Thanks

charred grotto
#

Something like this
Serial

port: tcp://192.168.27.23:6638
baudrate: 115200
disable_led: false

The advanced key probably has to be put into the config file or you have to edit as yaml via the top right menu.

last quail
#

It's running now.
Thanks

#

I failed to notice that.

#

Now to fight with remapping all my Zigbee devices. ๐Ÿ˜„

charred grotto
#

Well to be fair the configuration of the addon is kinda confusing.

last quail
#

Weird this is it kept pulling out the data_path

#

I had to add that back in several times