Is adding Sonoff USB dongle needed when using Zigbee2MQTT and not ZHA?

I had ZHA installed and it installed well and Sonoff Zigbee USB dongle added ok. Then I removed ZHA and installed Zigbee2MQTT and I see the Sonoff Zigbee requesting to be added. When I try to add it I get below error. Do I need to even add the Sonoff Zigbee dongle here or must it be done in configuration of Zigbee2MQTT somewhere? What is the issue and how to get Zigbee2MQTT working?

Thanks.

Must I see the Sonoff USB dongle here or just the end point zigbee devices? How to scan for endpoint devices?

I had ZHA installed and it installed well and Sonoff Zigbee USB dongle added ok. Then I removed ZHA and installed Zigbee2MQTT and I see the Sonoff Zigbee requesting to be added. When I try to add it I get below error. Do I need to even add the Sonoff Zigbee dongle here or must it be done in configuration of Zigbee2MQTT somewhere? What is the issue and how to get Zigbee2MQTT working?

Thanks.

Must I see the Sonoff USB dongle here or just the end point zigbee devices? How to scan for endpoint devices?

You can use ZHA or Zigbee2MQTT, but not both. Whichever integration you use, you absolutely must have a coordinator. That’s essential for your Zigbee network. The Sonoff USB dongle is the coordinator.

I have no idea what the error means- check your log files.

Do you have MQTT installed via Devices and Services?

Hi, Yes MQTT broker is installed and so is Zigbee2MQTT. After installation, do I need to do yaml configurations etc as per Zigbee2MQTT install process? There is a lengthy many pages of what to do.

Am I supposed to see the Sonoff USB under integrations?

You need to edit the configuration in Z2M so it recognizes your Sonoff dongle and MQTT

Do not just copy these settings as there are different settings for each type of dongle. This is just an example.

1 Like

Hi @LiQuid_cOOled thanks for the picture. Helps a lot.
Would you please post (dpaste or code copy here) your full Zigbee2MQTT configuration for me to copy and I will replace the USB device to my own which is a ttyUSB0.

The Zigbee2MQTT has many pages of configuration to enter it says and is confusing to me. A working template should help me a lot.

My USB dongle is a Sonoff and it is at ttyUSB0 I think. What would be the configs for that?

Thanks.

Lets start here

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-mosquitto:1883
  base_topic: zigbee2mqtt
serial:
  port:
  adapter: 
  rtscts: false
advanced:
  homeassistant_legacy_entity_attributes: false
  homeassistant_legacy_triggers: false
  legacy_api: false
  legacy_availability_payload: false
device_options:
  legacy: false

Fill in

serial:
  port:
  adapter: 

Once you start Z2M and it’s working you’ll see a green icon here

If not Z2M will shut down itself

1 Like