
Zigbee2Tasmota (Z2T) is a lightweight Zigbee-to-MQTT bridge running on ESP8266/ESP32 microcontrollers with an integrated Zigbee radio module. It enables TapHome to communicate with Zigbee devices over your local MQTT broker — no cloud connection required.
This gateway template is the prerequisite for all Zigbee2Tasmota device templates. It must be imported first, before adding any Zigbee device templates. The gateway handles device pairing and provides a Permit Join switch and a Devices Found counter in TapHome.
Supported gateway hardware
The following Zigbee coordinators are compatible with Zigbee2Tasmota:
| Gateway | Processor | Zigbee Radio | Connectivity | Notes |
|---|---|---|---|---|
| eWeLink ZB-GW03 (recommended) | ESP32 | EFR32 (EZSP) | Ethernet + Zigbee | Available with Tasmota pre-installed |
| Sonoff ZBBridge | ESP8266 | EFR32 (EZSP) | WiFi + Zigbee | Requires manual Tasmota flashing |
| Sonoff ZBBridge Pro | ESP32 | CC2652P (ZNP) | WiFi + Zigbee | Up to 128 devices, requires flashing |
Other compatible hardware includes Tube’s Ethernet Zigbee Gateway (EFR32-based) and custom DIY builds using ESP32 with CC2530/CC2652 modules.
The eWeLink ZB-GW03 is recommended for its Ethernet connectivity (more reliable than WiFi) and availability with Tasmota pre-installed — no flashing needed.
Configuration
Setting up the Tasmota gateway
- Flash Tasmota firmware on your Zigbee coordinator (skip if pre-installed)
- Connect the gateway to your network via the Tasmota web UI
- Navigate to Configuration → Configure MQTT and set:
- Host: your MQTT broker IP (e.g.,
192.168.1.10) - Port:
1883
- Host: your MQTT broker IP (e.g.,
- Note down the Topic name (e.g.,
tasmota_XXXXX) — this is the Gateway name parameter needed during template import
TapHome has a built-in MQTT broker — enable it in Settings → Hardware → MQTT Broker. No additional broker software is needed.
Template import parameters
The gateway template requires 3 parameters:
| Parameter | Description | Example |
|---|---|---|
| MQTT Broker IP Address | IP of your MQTT broker | 192.168.1.10 |
| MQTT Broker Port | Broker port (default 1883) | 1883 |
| Gateway name | Tasmota MQTT topic from Configuration → MQTT → Topic | tasmota_XXXXX |
After import, the module subscribes to tele/{GWname}/# and two devices appear: Permit Join and Devices Found.
Device capabilities
Pairing Zigbee devices
The Permit Join switch controls the gateway’s pairing mode:
- Turn on Permit Join in TapHome — this publishes a
ZbPermitJoincommand to open a 60-second pairing window - Start the pairing procedure on your Zigbee device (typically hold the reset button for 5 seconds until the LED blinks)
- Watch the Devices Found counter — it increments when a new device successfully joins the network
- Check the New devices service attribute on the gateway to see the paired device’s ID (e.g.,
0x1234), manufacturer, and model - The pairing mode deactivates automatically after the timeout
The Device ID (short address like 0x1234) displayed in the service attributes is needed when importing device-specific templates.
Device monitoring
The gateway module polls ZbInfo every hour to refresh information about all paired Zigbee devices. The New devices service attribute shows details of recently discovered devices including their Zigbee short address, manufacturer, and model identifier.
Additional capabilities
The Tasmota Zigbee gateway also supports listing all paired devices (ZbStatus), network configuration viewing (ZbConfig — PanID, channel, encryption keys), device naming, group management, and direct device-to-device binding. These diagnostic and management capabilities can be added in a future template update.
Supported Zigbee device templates
After pairing a device, import the corresponding device-specific template. Each device template requires 4 parameters: MQTT Broker IP, Port, Gateway name (same as the gateway), and the Device ID from pairing.
Available Zigbee2Tasmota device templates:
- Aqara Temperature, Humidity and Pressure Sensor
- Aqara Door and Window Sensor
- Aqara Vibration Sensor
- Aqara Water Leak Sensor
- Aqara Single Switch Module T1 (With Neutral)
- IKEA TRADFRI E1810 Remote
- Livarno SMART TS0505B
- Moes Smart Switch
Troubleshooting
Gateway not connecting to MQTT broker
- Verify the Tasmota gateway is connected to the network (check the Tasmota web UI)
- Confirm the MQTT broker IP and port match between the Tasmota MQTT configuration and the TapHome template import parameters
- Check that the MQTT broker is running and accessible on the specified port
Permit Join not finding devices
- Ensure the Zigbee device is in pairing mode — most devices require holding a button for 5+ seconds
- Check that the Permit Join switch is ON in TapHome before starting the device pairing procedure
- Move the Zigbee device closer to the gateway during initial pairing (within 2-3 meters)
- Some devices require a factory reset before they can pair with a new coordinator
Device ID not appearing
- After successful pairing, check the New devices service attribute on the gateway module for the device ID, manufacturer, and model
- If the service attribute is empty, try toggling Permit Join OFF and ON again, then re-pair the device
- The Device ID can also be found in the Tasmota console (
ZbStatuscommand) via the gateway’s web UI
The Zigbee radio channel should not overlap with your Wi-Fi channel. For best results, use Zigbee channels 15, 20, or 25 which have minimal Wi-Fi interference. Check the current channel with the
ZbConfigcommand in the Tasmota console.