Component guide · Intermediate · 3 min read
Sonoff ZBDongle-E and Zigbee Switches (ZBMINIR2, MINI-ZBD)

Home Assistant Setup
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
The Sonoff ZBDongle-E is a USB Zigbee 3.0 coordinator that lets Home Assistant control Zigbee devices locally, with no cloud. The ZBMINIR2 is a tiny Zigbee in-wall switch that keeps your wall switch working and also acts as a router to extend the mesh, and the MINI-ZBD is a dry-contact Zigbee relay for gates, boilers and low-voltage circuits.
Key specs at a glance
- ZBDongle-E
- EFR32MG21 chip, Zigbee 3.0 coordinator or router, USB, external antenna
- ZBMINIR2
- Zigbee 3.0 in-wall switch, 10 A, S1/S2 wall switch input, router
- MINI-ZBD
- Zigbee dry-contact relay, 10 A, potential-free output
- Software
- Home Assistant ZHA or Zigbee2MQTT (ember adapter)
- Range
- About 10 to 20 m indoors per hop; mains devices extend the mesh
This part is often wired to 230 V mains. Do all wiring with the plug pulled out, keep mains wires inside a closed box with strain relief, add a fuse, and never touch the board while it is plugged in. If you are new to mains wiring, have an electrician check it before you switch on.
Models in this guide
These are alternatives. Pick the one that fits your project; you only need one.
Option 1Sonoff ZBDongle-E Zigbee 3.0 USB Dongle Plus₹3,041
Option 2Sonoff ZBMINIR2 ZigBee Smart External Switch₹1,109
Option 3Sonoff MINI-ZBD Zigbee 3.0 Dry Contact Smart Relay Switch₹2,519
What the Sonoff Zigbee dongle and switches is
Zigbee devices form a mesh: mains-powered devices like the ZBMINIR2 route messages for battery sensors further away. Zigbee uses 2.4 GHz but very little power, and keeps working when the internet or Wi-Fi is down.
Plug the dongle in through a USB extension cable to keep it away from the Pi's USB 3 ports, which cause interference.
Sonoff Zigbee dongle and switches pinout
The pins on the Sonoff Zigbee dongle and switches and what each one does.
| Pin | Function |
|---|---|
| USB (ZBDongle-E) | To the Home Assistant host |
| L / N (ZBMINIR2) | Mains supply |
| L out | Switched light output |
| S1 / S2 | Wall switch input |
| COM / NO (MINI-ZBD) | Dry contact output |
- USB (ZBDongle-E)
- To the Home Assistant host
- L / N (ZBMINIR2)
- Mains supply
- L out
- Switched light output
- S1 / S2
- Wall switch input
- COM / NO (MINI-ZBD)
- Dry contact output
Wiring the Sonoff Zigbee dongle and switches
Mains wiring must be done with the power off, in a proper enclosure, with cable and a fuse or MCB rated for the load. If you are not sure, have a qualified electrician install it. The ZBMINIR2 needs a neutral wire in the switch box.
| Sonoff Zigbee dongle and switches pin | ZBDongle-E | ZBMINIR2 |
|---|---|---|
| USB | Home Assistant Green or Pi via USB extension | - |
| L / N | - | Supply live and neutral |
| L out | - | Light |
| S1 / S2 | - | Existing wall switch |
- USB
- ZBDongle-E:
- Home Assistant Green or Pi via USB extension
- ZBMINIR2:
- -
- L / N
- ZBDongle-E:
- -
- ZBMINIR2:
- Supply live and neutral
- L out
- ZBDongle-E:
- -
- ZBMINIR2:
- Light
- S1 / S2
- ZBDongle-E:
- -
- ZBMINIR2:
- Existing wall switch
Example code
In ZHA, choose the dongle's serial port and the EZSP/ember radio type. Then press Add device and hold the ZBMINIR2 button 5 s to pair.
serial:
port: /dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_V2-if00-port0
adapter: ember
mqtt:
server: mqtt://localhost:1883
frontend: true
permit_join: false
homeassistant: trueSetup and tuning
update the ZBDongle-E to current EmberZNet firmware for Zigbee2MQTT's ember adapter.
pick a Zigbee channel (15, 20 or 25) away from your Wi-Fi channel.
add mains-powered routers first, then battery sensors.
central location, USB extension cable, away from metal and the Pi's USB 3 ports.
What you need
Shop this list5 of 6 found in our store · ₹29,995
Sonoff ZBDongle-E Zigbee 3.0 USB Dongle Plus: the part this guide coversSonoff ZBDongle-E Zigbee 3.0 USB Dongle Plus₹3,041
Sonoff ZBMINIR2 ZigBee Smart External Switch: another version this guide coversSonoff ZBMINIR2 ZigBee Smart External Switch₹1,109
Sonoff MINI-ZBD Zigbee 3.0 Dry Contact Smart Relay Switch: another version this guide coversSonoff MINI-ZBD Zigbee 3.0 Dry Contact Smart Relay Switch₹2,519
Home Assistant Green smart home hub: to control the switches locallyHome Assistant Green Smart Home Hub₹23,149- Fuse holder: to fuse the switched circuitFind this part
Digital multimeter: to check supply and signal voltagesDigital Multimeter₹177
Alternatives and when to choose them
- Zigbee and XBee: how Zigbee mesh networks work.
- ESP32-C6 boards: build your own Zigbee devices.
- MQTT and Home Assistant: automations with Zigbee2MQTT.
Common mistakes to avoid
- Plugging the dongle straight into a USB 3 port.
- Choosing a Zigbee channel that overlaps busy Wi-Fi.
- Adding battery sensors before any routers.
- Installing the ZBMINIR2 without a neutral.
Frequently asked questions
ZHA or Zigbee2MQTT?
ZHA is built into Home Assistant and simpler; Zigbee2MQTT supports more devices and settings.
Does it need internet?
No. Zigbee runs locally through the dongle.
Can I use it without Home Assistant?
Yes, with Zigbee2MQTT or the eWeLink hub for some devices.
How many devices can it handle?
Dozens directly and hundreds with routers in the mesh.
Is the ZBMINIR2 a router?
Yes, it extends the Zigbee mesh.
Parts for this guide
Keep learning
Sources
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

