⚡ Automations
Use your new sensors for smart automations.

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.
| Feature | Zigbee2MQTT | Manufacturer Hub (IKEA/Hue) |
|---|---|---|
| Price | ~$25 (one time) | $40-70 per hub |
| Devices | 2800+ from all brands | Only own brand |
| Local | ✅ 100% local | ⚠️ Often cloud |
| Open | ✅ Open source | ❌ Closed |
| Model | Price | Recommendation |
|---|---|---|
| Sonoff Zigbee 3.0 USB Dongle Plus | $20-25 | ⭐ Best value |
| SLZB-06 (Ethernet) | $50 | Best for range |
| Conbee II | $45 | Good, but pricier |
Install Mosquitto MQTT broker
Go to Settings → Add-ons → Add-on store
Search “Mosquitto broker” → Install → Start
Create MQTT user
Settings → People → Users → Add user
mqttAdd Zigbee2MQTT repository
Settings → Add-ons → Add-on store → ⋮ (three dots) → Repositories
Add:
https://github.com/zigbee2mqtt/hassio-zigbee2mqttInstall Zigbee2MQTT
Search “Zigbee2MQTT” → Install (use edge version for latest features)
Find your USB dongle
Settings → System → Hardware → All Hardware
Find the path like:
/dev/serial/by-id/usb-Silicon_Labs_Sonoff_Zigbee_3.0_USB_Dongle_Plus-if00-port0Configure 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-passwordfrontend: port: 8485Start and open
Click Start and open: http://homeassistant.local:8485
services: mosquitto: container_name: mosquitto image: eclipse-mosquitto volumes: - ./mosquitto/config:/mosquitto/config - ./mosquitto/data:/mosquitto/data ports: - "1883:1883" restart: unless-stopped
zigbee2mqtt: container_name: zigbee2mqtt image: koenkk/zigbee2mqtt volumes: - ./zigbee2mqtt/data:/app/data - /run/udev:/run/udev:ro devices: - /dev/ttyUSB0:/dev/ttyUSB0 ports: - "8080:8080" environment: - TZ=Europe/London restart: unless-stoppedOpen Zigbee2MQTT web interface
Click “Permit join (All)” at top
Pair the device (see table below)
Device appears - give it a descriptive name
Click “Disable join” when finished
| Device | How to pair |
|---|---|
| Aqara sensors | Hold button 5 sec until LED blinks |
| IKEA bulb | Turn on/off 6 times quickly |
| IKEA remote | Hold pairing button 10 sec near battery |
| Sonoff switch | Hold button 5 sec |
| Philips Hue | Turn on/off 5 times (or use Hue Bluetooth app) |
Zigbee is a mesh network. Powered devices (routers) amplify the signal.
| Type | Description | Examples |
|---|---|---|
| Coordinator | Your USB dongle | Sonoff Dongle |
| Router | Amplifies signal | Bulbs, smart plugs |
| End device | Only receives | Sensors (battery) |
Zigbee and WiFi both use 2.4 GHz. Avoid problems:
| Device | Price | Comment |
|---|---|---|
| Aqara door/window | $10 | Super reliable, small |
| Aqara temperature | $12 | Battery lasts 2+ years |
| Aqara motion | $15 | Fast response |
| Device | Price | Comment |
|---|---|---|
| IKEA TRETAKT | $10 | Cheap smart plug |
| Sonoff ZBMINI | $12 | Fits behind light switch |
| IKEA TRÅDFRI bulb | $10 | Good light, works as router |
⚡ Automations
Use your new sensors for smart automations.
🔧 ESP32 projects
Build your own WiFi sensors with ESP32.