Stuck getting Sonoff Zigbee 3 Dongle E working with zigbee2mqtt

Hello, complete HA n00b.

I followed the following tutorial:

In my log I’m getting “assertion failed” errors as well as MQTT failed to connect: getaddrinfo ENOTFOUND core-mosquito.
I appreciate any feedback, THANK YOU!

My Z2M 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:
server: mqtt://core-mosquito:1883
user: mqtt-user
password: mypassword
serial:
port: /dev/ttyACM0
adapter: ezsp

when I try to open the web UI I get - “502: Bad Gateway”

The Z2M log:
s6-rc: info: service z2m: starting
s6-rc: info: service socat: starting
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service z2m successfully started
s6-rc: info: service socat successfully started
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
[16:01:24] INFO: Socat not enabled
[16:01:24] INFO: Handing over control to Zigbee2MQTT Core …
Zigbee2MQTT:info 2022-09-10 16:02:06: Logging to console and directory: ‘/config/zigbee2mqtt/log/2022-09-10.16-02-06’ filename: log.txt
Zigbee2MQTT:info 2022-09-10 16:02:06: Starting Zigbee2MQTT version 1.27.2 (commit #unknown)
Zigbee2MQTT:info 2022-09-10 16:02:06: Starting zigbee-herdsman (0.14.53)
Assertion failed: Command (setConfigurationValue) returned unexpected state: [object Object]
Assertion failed: Command (setConfigurationValue) returned unexpected state: [object Object]
Assertion failed: Command (setValue) returned unexpected state: [object Object]
Assertion failed: Command (setValue) returned unexpected state: [object Object]
Zigbee2MQTT:info 2022-09-10 16:02:08: zigbee-herdsman started (resumed)
Zigbee2MQTT:info 2022-09-10 16:02:08: Coordinator firmware version: ‘{“meta”:{“maintrel”:"3 ",“majorrel”:“6”,“minorrel”:“10”,“product”:8,“revision”:“6.10.3.0 build 297”},“type”:“EZSP v8”}’
Zigbee2MQTT:info 2022-09-10 16:02:08: Currently 0 devices are joined:
Zigbee2MQTT:info 2022-09-10 16:02:08: Zigbee: disabling joining new devices.
Zigbee2MQTT:info 2022-09-10 16:02:08: Connecting to MQTT server at mqtt://core-mosquito:1883
Zigbee2MQTT:error 2022-09-10 16:02:11: MQTT failed to connect: getaddrinfo ENOTFOUND core-mosquito
Zigbee2MQTT:error 2022-09-10 16:02:11: Exiting…
Zigbee2MQTT:info 2022-09-10 16:02:11: Stopping zigbee-herdsman…
Zigbee2MQTT:info 2022-09-10 16:02:12: Stopped zigbee-herdsman
[16:02:12] INFO: Handing over control to Zigbee2MQTT Core …

1 Like

Hi all,

i have the same issue…

Hi all,
Same issues over here, dont get it working with zigbee2mqtt , ZHA works but issues with pairing

I accidentally fixed it and found the issue… I am quite rather embarrassed. Happy to solve it though. Three hours of my life wasted… LOL. server: mqtt://core-mosquito:1883 should be mqtt://core-mosquitto:1883, that’s mosquitto with TWO T’s. OOPS.

6 Likes

Hope you got yours fixed

Did you get it resolved?

Hello
Bit of a late reply but I am having this problem trying to install today. 20/5/23. I have checked that I have spelt it correctly and watched the same video on how to set up as your self but still keep getting the error.

MQTT error: getaddrinfo ENOTFOUND mqtt-mosquitto

I am a total newbiie on home assistant .

[15:58:47] INFO: Preparing to start...
[15:58:47] INFO: Socat not enabled
[15:58:48] INFO: Starting Zigbee2MQTT...
Zigbee2MQTT:info  2023-05-20 15:58:49: Logging to console and directory: '/config/zigbee2mqtt/log/2023-05-20.15-58-49' filename: log.txt
Zigbee2MQTT:info  2023-05-20 15:58:49: Starting Zigbee2MQTT version 1.30.4 (commit #unknown)
Zigbee2MQTT:info  2023-05-20 15:58:49: Starting zigbee-herdsman (0.14.111)
Zigbee2MQTT:info  2023-05-20 15:58:52: zigbee-herdsman started (resumed)
Zigbee2MQTT:info  2023-05-20 15:58:52: Coordinator firmware version: '{"meta":{"maintrel":"3 ","majorrel":"6","minorrel":"10","product":8,"revision":"6.10.3.0 build 297"},"type":"EZSP v8"}'
Zigbee2MQTT:info  2023-05-20 15:58:52: Currently 0 devices are joined:
Zigbee2MQTT:info  2023-05-20 15:58:52: Zigbee: disabling joining new devices.
Zigbee2MQTT:info  2023-05-20 15:58:52: Connecting to MQTT server at mqtt://mqtt-mosquitto:1883
Zigbee2MQTT:error 2023-05-20 15:58:56: MQTT error: getaddrinfo ENOTFOUND mqtt-mosquitto
Zigbee2MQTT:error 2023-05-20 15:58:56: MQTT failed to connect, exiting...
Zigbee2MQTT:info  2023-05-20 15:58:56: Stopping zigbee-herdsman...
Zigbee2MQTT:info  2023-05-20 15:58:56: Stopped zigbee-herdsman

any help would be much appreciated

cheers

edit: fixed the problem. my mqtt server is named “core-mosquitto” NOT “mqtt-mosquitto”

1 Like

lol…I did the same exact thing. :rofl:

Thanks. Hahaha

I know this was a while ago, but I struggled for over a day with the setup, and this was my issue. I couldn’t believe how simple my mistake was!!! thanks!