Skip to content

Zigbee2MQTT Setup

Medium 30 min ~$25

Zigbee2MQTT

Zigbee is fantastic for smart home - low power consumption, mesh networking, and devices that last years on one battery. Zigbee2MQTT gives you one USB dongle for all Zigbee devices - IKEA, Aqara, Sonoff, Philips Hue, everything.

Zigbee mesh network diagram

FeatureZigbee2MQTTManufacturer Hub (IKEA/Hue)
Price~$25 (one time)$40-70 per hub
Devices2800+ from all brandsOnly own brand
Local✅ 100% local⚠️ Often cloud
Open✅ Open source❌ Closed
ModelPriceRecommendation
Sonoff Zigbee 3.0 USB Dongle Plus$20-25⭐ Best value
SLZB-06 (Ethernet)$50Best for range
Conbee II$45Good, but pricier
  1. Install Mosquitto MQTT broker

    Go to SettingsAdd-onsAdd-on store

    Search “Mosquitto broker”InstallStart

  2. Create MQTT user

    SettingsPeopleUsersAdd user

    • Username: mqtt
    • Password: (choose something secure)
    • Administrator: ❌ No
  3. Add Zigbee2MQTT repository

    SettingsAdd-onsAdd-on store (three dots) → Repositories

    Add:

    https://github.com/zigbee2mqtt/hassio-zigbee2mqtt
  4. Install Zigbee2MQTT

    Search “Zigbee2MQTT”Install (use edge version for latest features)

  5. Find your USB dongle

    SettingsSystemHardwareAll Hardware

    Find the path like:

    /dev/serial/by-id/usb-Silicon_Labs_Sonoff_Zigbee_3.0_USB_Dongle_Plus-if00-port0
  6. Configure Zigbee2MQTT

    Click Zigbee2MQTT add-on → Configuration:

    serial:
    port: /dev/serial/by-id/usb-Silicon_Labs_Sonoff...
    mqtt:
    server: mqtt://core-mosquitto
    user: mqtt
    password: your-mqtt-password
    frontend:
    port: 8485
  7. Start and open

    Click Start and open: http://homeassistant.local:8485

  1. Open Zigbee2MQTT web interface

  2. Click “Permit join (All)” at top

  3. Pair the device (see table below)

  4. Device appears - give it a descriptive name

  5. Click “Disable join” when finished

DeviceHow to pair
Aqara sensorsHold button 5 sec until LED blinks
IKEA bulbTurn on/off 6 times quickly
IKEA remoteHold pairing button 10 sec near battery
Sonoff switchHold button 5 sec
Philips HueTurn on/off 5 times (or use Hue Bluetooth app)

Zigbee is a mesh network. Powered devices (routers) amplify the signal.

TypeDescriptionExamples
CoordinatorYour USB dongleSonoff Dongle
RouterAmplifies signalBulbs, smart plugs
End deviceOnly receivesSensors (battery)

Zigbee and WiFi both use 2.4 GHz. Avoid problems:

  • Set WiFi to channel 1 or 11
  • Let Zigbee2MQTT choose channel automatically (default 11)
  • Use USB extension cable for coordinator
DevicePriceComment
Aqara door/window$10Super reliable, small
Aqara temperature$12Battery lasts 2+ years
Aqara motion$15Fast response
DevicePriceComment
IKEA TRETAKT$10Cheap smart plug
Sonoff ZBMINI$12Fits behind light switch
IKEA TRÅDFRI bulb$10Good light, works as router