Getting zigbee2mqtt to run with HamGeek POE Zigbee 3.0 Coordinator

Hi there!

I am trying to get this device running but I am not getting anywhere. I managed to install Z2M, got the device up and running with a dedicated IP address (x.x.x.9), but Z2M refuses to start due to an apparently wrong configuration.

This is the configuration.yaml for Z2M:

homeassistant: true
permit_join: true
mqtt:
  server: mqtt://x.x.x.100:8485
serial:
  port: tcp://x.x.x.9:6638
frontend:
  port: 8099
advanced:
  homeassistant_legacy_entity_attributes: false
  legacy_api: false
  legacy_availability_payload: false
device_options:
  legacy: false

The HamGeek device is configured as follows:

In the MQTT section:
Server IP: x.x.x.100 (that is the HA server address)
Port: 6638
Username: xxx (this is a HA user with admin rights)
Password: xxx
Topic: ZigStarGW-7342
Refresh Interval: 60

In the “Serial” section:
Serial Speed: 115200 baud
Socket Port 6638

This is my current error log:

[13:24:35] INFO: Preparing to start...
[13:24:36] INFO: Socat enabled
[13:24:36] INFO: Starting socat
Socat startup parameters:
Options:     -d -d
Master:      pty,raw,echo=0,link=/tmp/ttyZ2M,mode=777
Slave:       tcp-listen:8485,keepalive,nodelay,reuseaddr,keepidle=1,keepintvl=1,keepcnt=5
[13:24:36] INFO: Starting socat process ...
2024/08/14 13:24:36 socat[47] N PTY is /dev/pts/0
2024/08/14 13:24:36 socat[47] N listening on AF=2 0.0.0.0:8485
[13:24:39] INFO: Starting Zigbee2MQTT...
Starting Zigbee2MQTT without watchdog.
[2024-08-14 13:24:46] info: 	z2m: Logging to console, file (filename: log.log)
[2024-08-14 13:24:46] info: 	z2m: Starting Zigbee2MQTT version 1.39.1 (commit #unknown)
[2024-08-14 13:24:46] info: 	z2m: Starting zigbee-herdsman (0.55.3)
[2024-08-14 13:24:47] info: 	zh:zstack:znp: Opening TCP socket with x.x.x.9:8485
[2024-08-14 13:24:47] **info: 	zh:zstack:znp: Socket error**
[2024-08-14 13:24:47] **error: 	z2m: Error while starting zigbee-herdsman**
[2024-08-14 13:24:47] **error: 	z2m: Failed to start zigbee**
[2024-08-14 13:24:47] error: 	z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
[2024-08-14 13:24:47] error: 	z2m: Exiting...
[2024-08-14 13:24:47] **error: 	z2m: Error: Error while opening socket**
    at Socket.<anonymous> (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/znp/znp.ts:185:24)
    at Socket.emit (node:events:529:35)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at processTicksAndRejections (node:internal/process/task_queues:82:21)

Can anyone please help? I am sure it is only a small detail, but it is driving me crazy.

Try here:

But this is strange:

If using the add-on, socat should be false.

1 Like

It was the ports configuration. Thank you!