Zigbee2Mqtt failed to start Sonoff Dongle P

I have a sonoff usb dongle P flashed to the 2023 Koenkk CC2652P firmware. I have installed mqtt and zigbee2mqtt and configured it as recommended.

I keep getting an error starting zigbee2mqtt. Here is the log entry

Is there anything I’m doing wrong?

Post your configuration.
You have placed a specific configuration for the E dongle.

1 Like

Delete the adapter line

Still failing to start

Go to the zigbee2mqtt folder, rename the configuation.yaml file to something different and delete the file coordinator_backup.json.

If you have a Sonoff Dongle P then you should configure Zigbee2MQTT to use zstack because the “P” model has components from Texas Instruments (CC2652P).

Your screenshots show you have it configured for ezsp which is for a different component made by Silicon Labs. You have configured Zigbee2MQTT to work with something that is not a Sonoff Dongle P.

I did that and now this is the error. MQTT failed to start. I checked the user credentials and it’s accurate

changed the config to remove the adapter settings. This is my new error

The new error is that Zigbee2MQTT is unable to login to the MQTT Broker.

That means whatever you specified for the username and password needs to be checked because it’s invalid and preventing Zigbee2MQTT from connecting to the MQTT Broker.

I checked the username and password and it’s accurate. Checked Mosquito broker and it’s running

What are you using to test the username and password to confirm they allow connection to the Broker?

For example have you used an MQTT client, such as MQTT Explorer, to login to the Broker with those credentials?

I just installed mqtt explorer and successfully connected with the credentials

That’s good news. What did you specify as the MQTT Broker’s address when using MQTT Explorer? Is it the same as what you have specified as the Broker’s address using Zigbee2MQTT?

I used Home assistant IP. so I went back to the z2m config and used the ip instead and this is the new error

Got it to work. Thank you @123 and @walberjunior for all the help. With the ip address, I just added the mqtt:// protocol and it worked!

1 Like

If you are using the z2m and mosquito addons then you shouldn’t have to specify anything for mqtt. This is 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: {}
serial:
  port: /dev/serial/by-id/usb-1a86_TubesZB_971207DO-if00-port0
1 Like

In my configuration for Zigbee2MQTT Addon, the mqtt section visible in “Configuration” is empty.


Ninja’d by nickrout

1 Like

Unusual to beat you Taras. Made my day!

1 Like