How to Install Zigbee2MQTT on Home Assistant: Step-by-Step Guide

My 6th video on this channel was about how to install Zigbee2MQTT on HomeAssistant and I released in August of 2023. Just this week (1/7/25) there was an update to Zigbee2MQTT 2.0.0 that contained a breaking change. I wanted to update my write-up but noticed I never made one! Better late than never.

How to Install Zigbee2MQTT on Home Assistant: Step-by-Step Guide

My 6th video on this channel was about how to install Zigbee2MQTT on HomeAssistant and I released in August of 2023. Just this week (1/7/25) there was an update to Zigbee2MQTT 2.0.0 that contained a breaking change. I wanted to update my write-up but noticed I never made one! Better late than never.

Original Video: https://youtu.be/MFfC28WkYfE


2.0.0 Breaking Change:

If you've previously followed the above video, the only change is in the "Serial" section of the Zigbee2MQTT configuration. You need to add "adapter: zstack" after the port.

For my Sonoff ZB Dongle Folks use : "zstack"

For anyone using the HomeAssistant SkyConnect use: "ember"

Just add the following to the serial section of your Zigbee2MQTT Serial Settings under the Configuration Tab.

adapter: zstack

Step by Step

In this tutorial, I'll walk you through setting up Zigbee2MQTT on Home Assistant, including a list of recommended devices and optional tools for a smoother experience.

Optional Tools:

Amazon Links: (I earn a small commission if you make a purchase through my links)


Step 1: Install the Mosquitto Broker Add-on

  1. Navigate to Settings → Add-ons → Add-on Store in Home Assistant.
  2. Search for the Mosquitto broker add-on, install it, and start it.
  3. I recommend enabling the "Start on Boot," "Watchdog," and "Auto-Update" toggles.

Step 2: Add Zigbee2MQTT Repository

  1. In the Add-on Store, click the 3-dot menu in the top-right corner and select "Repositories, then enter the repository URL and click "Add".
https://github.com/zigbee2mqtt/hassio-zigbee2mqtt
  1. Click Add.

or

  1. It's easier to click this link to populate it.
Link to Add repository – My Home Assistant
Show the add add-on repository dialog with a specific repository URL pre-filled in Home Assistant.
  1. Click Add.

Step 3: Refresh the Add-on Store

  1. Press the Check for Updates button in the Add-on Store.
  2. If you don’t see the Zigbee2MQTT add-on, press Ctrl+F5 to refresh your browser cache.

Step 4: Install Zigbee2MQTT

  1. Find Zigbee2MQTT in the Add-on Store and click Install.

Step 5: Connect the Zigbee Dongle

  1. Connect your SONOFF Zigbee Dongle to the USB Extender and then plug the USB extender into your Home Assistant host.

Step 6: Identify the USB Port

  1. Navigate to Settings → System → Hardware. Then click on "All Hardware".
  1. Scroll through the list until you find a tty entry corresponding to your device (e.g., ttyUSB1).
  2. Click on it to expand and copy the Device Path or ID.
    1. I recommend using the ID for better reliability across USB port changes.

Step 7: Configure Zigbee2MQTT

  1. Go back to Settings → Add-ons and open Zigbee2MQTT.
  2. Navigate to the Configuration tab.
  3. In the serial section, replace the port with your copied Device ID, like this:
port: [PASTE DEVICE ID HERE]
adapter: zstack

so, for me it looks like this (don't mind the ">-" it might automatically add that) :

port: >-
  /dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_6696eb0d6499ec11b0aaffc844d80d13-if00-port0
adapter: zstack
💡
Note: Ensure that adapter: zstack is set, as it's required for Zigbee2MQTT version 2.0.0+.
  1. Click Save.

Step 8: Start Zigbee2MQTT

  1. Start the Zigbee2MQTT add-on and ensure that the Mosquitto broker is also running.
  2. If you're running MQTT on a different host, you’ll need to configure the MQTT section:
mqtt:
  base_topic: zigbee2mqtt
  user: [YOUR_ADDON_USER]
  password: [YOUR_ADDON_USER_PASSWORD]
  server: mqtt://core-mosquitto:1883

Step 9: Verify Logs

  1. Check the Zigbee2MQTT logs for any errors. If everything looks good, proceed.

Step 10: Open Zigbee2MQTT Web-UI

  1. Click Open Web-UI to access the Zigbee2MQTT interface.

Step 11: Change Zigbee Channel (Optional)

  1. To minimize interference with WiFi, you might want to change the Zigbee channel. For more detailed instructions, check the video at the 4:28 mark or refer to my other blog post.

Privacy Policy
Terms and Conditions