#I need help configuring Zigbee2mqtt -
1 messages Β· Page 1 of 1 (latest)
Or your dongle is in use by ZHA
Also, please don't edit your posts to get around the bot
Spam will not be tolerated, including but not limited to: self-promotion, flooding, textwalls (longer than 15 lines - use Hastebin or similarΒ³) and unapproved bots.
Please take the time now to review all of the rules and references in #rules.
Sorry, just realised that providing the config would be helpful π
Or your dongle is in use by ZHA
How do I check?
I'm doing some Googling simultaneously, and I found that I could run ls -l /dev/serial/by-id in the terminal. Doing that showed me that the path should be ttyACM0 and not ttyUSB0. I changed that path, and now I am getting a different error:
[21:58:48] INFO: Socat not enabled
[21:58:49] INFO: Starting Zigbee2MQTT...
Zigbee2MQTT:info 2023-11-30 21:58:50: Logging to console and directory: '/config/zigbee2mqtt/log/2023-11-30.21-58-50' filename: log.txt
Zigbee2MQTT:info 2023-11-30 21:58:50: Starting Zigbee2MQTT version 1.33.2 (commit #unknown)
Zigbee2MQTT:info 2023-11-30 21:58:50: Starting zigbee-herdsman (0.21.0)
Zigbee2MQTT:error 2023-11-30 21:59:10: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2023-11-30 21:59:10: Failed to start zigbee
Zigbee2MQTT:error 2023-11-30 21:59:10: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
Zigbee2MQTT:error 2023-11-30 21:59:10: Exiting...
Zigbee2MQTT:error 2023-11-30 21:59:10: Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)
at ZStackAdapter.start (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/adapter/zStackAdapter.ts:103:27)
at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:132:29)
at Zigbee.start (/app/lib/zigbee.ts:60:27)
at Controller.start (/app/lib/controller.ts:101:27)
at start (/app/index.js:107:5)```
You should be using the /dev/serial/by-id/ path
Open your Home Assistant instance and show your integrations
And you can look there for ZHA - it'll be named after the Zigbee stick
Talking of that... which stick are you using?
ls -l /dev/serial/by-id
total 0
lrwxrwxrwx 1 root root 13 Nov 30 21:05 usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20230509092400-if00 -> ../../ttyACM0
lrwxrwxrwx 1 root root 13 Nov 30 21:05 usb-Silicon_Labs_CP2102N_USB_to_UART_Bridge_Controller_b435aab56525ed1180596ec2f9a97352-if00-port0 -> ../../ttyUSB0```
Is what I see. I don't know what the full path is because it won't display it.
I'm using a Sonoff ZB-Dongle E (This one: https://www.amazon.de/-/en/gp/product/B0B6P22YJC)
Ah... well.. that helps
You need to read the Adapter page in the Z2M docs
Click on your adapter name
It says that I should add adapter: ezsp to the serial section. New error this time.
[22:06:46] INFO: Preparing to start...
[22:06:46] INFO: Socat not enabled
[22:06:46] INFO: Starting Zigbee2MQTT...
Zigbee2MQTT:info 2023-11-30 22:06:48: Logging to console and directory: '/config/zigbee2mqtt/log/2023-11-30.22-06-48' filename: log.txt
Zigbee2MQTT:info 2023-11-30 22:06:48: Starting Zigbee2MQTT version 1.33.2 (commit #unknown)
Zigbee2MQTT:info 2023-11-30 22:06:48: Starting zigbee-herdsman (0.21.0)
Zigbee2MQTT:info 2023-11-30 22:06:52: zigbee-herdsman started (reset)
Zigbee2MQTT:info 2023-11-30 22:06: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-11-30 22:06:52: Currently 0 devices are joined:
Zigbee2MQTT:info 2023-11-30 22:06:52: Zigbee: disabling joining new devices.
Zigbee2MQTT:info 2023-11-30 22:06:52: Connecting to MQTT server at mqtt://localhost:1883
Zigbee2MQTT:error 2023-11-30 22:06:52: MQTT error: connect ECONNREFUSED 127.0.0.1:1883
Zigbee2MQTT:error 2023-11-30 22:06:52: MQTT failed to connect, exiting...
Zigbee2MQTT:info 2023-11-30 22:06:52: Stopping zigbee-herdsman...
Zigbee2MQTT:info 2023-11-30 22:06:52: Stopped zigbee-herdsman```
This tells me that `server: mqtt://localhost:1883` is perhaps the issue in my config. How do I find out what it should actually be?
Should that be the IP address of HA?
You're using the add-on?
Yes, and YESS! Seems that was it!
If only the add-on had docs telling you how to configure it π
leave empty when using the Mosquitto broker addon
No you don't get it - those docs - they make perfect sense IF you know what you're doing.
That is ENTIRELY wrong.
Leaving it empty causes it to NOT start
You had other problems
And if following the docs doesn't work you should open an issue
Sorry, this is just a bit overwhelming. I installed this thing last evening, and it's just been one issue after the other that I'm trying to fix. I know precious little about linux so this is incredibly hard π
Then take a step back. Your startup problems were down to not having the adapter set correctly
Now you've fixed that try leaving the MQTT settings blank
Is the Sonoff stick supposed to show up in the list? When using ZWave JS UI, the ZStick 7 shows up as a device.
No
okay
Guess I'll start pairing things then
Remember to start with the router devices
Actually, remember to read the pinned messages in #zigbee-archived
Started going through them and came across this one here #zigbee-archived message. I installed that addon and am about to update the firmware on my USB Stick, but the addon wants me to add a network path. Based on the YouTube video that the author uploaded, selecting a USB device is also required when updating a network device, and the selection is inconsequential - is it therefore safe to assume that if I am updateing a USB device, then the IP address is inconsequential and that I can enter whatever text in that field?