Skip to content
MCU Atlas

XZG: ESP32 network Zigbee coordinator firmware

Firmware for ESP32 + CC2652 boards that turns them into Ethernet or Wi-Fi Zigbee coordinators for Zigbee2MQTT and ZHA.

Difficulty:IntermediateSource available

Key Facts

  • Chip: ESP32
  • Radio: TI CC2652P/CC2652P7
  • Uplink: Ethernet (LAN8720) or Wi-Fi
  • Software: Zigbee2MQTT, ZHA

About This Project

XZG unifies earlier community Zigbee gateway projects into one firmware for ESP32 boards paired with a TI CC2652 radio. The ESP32 bridges the radio's serial port over Ethernet or Wi-Fi so Home Assistant (ZHA) or Zigbee2MQTT can use it remotely, letting you place the coordinator centrally in the house. A web UI handles radio firmware updates and settings.

Source & Attribution

Source: GitHub
Also from: xzg.xyzroe.cc
License: GPL-3.0
Last verified: 10/15/2026
XZG: ESP32 network Zigbee coordinator firmware

Illustration

How to Build It

XZG is firmware for ESP32-based network Zigbee coordinators with a TI CC2652P or CC2652P7 radio. It exposes the radio over Ethernet or Wi-Fi, so Zigbee2MQTT or ZHA can use it from anywhere on your network, and adds a web UI for updates and settings.

Parts Needed

  • ESP32 coordinator board with a CC2652P/P7 module (e.g. SLZB or ZigStar-style)
  • LAN8720 Ethernet (recommended) or Wi-Fi
  • Network cable / PoE if supported
  • Home Assistant with ZHA or Zigbee2MQTT

Steps

  1. 1

    Flash XZG

    Open the XZG Web Flasher, connect the ESP32 over USB and install the build for your hardware. Follow the guide for your device model.

  2. 2

    Connect to the network

    Plug in Ethernet (preferred for stability), or join the setup hotspot to configure Wi-Fi.

  3. 3

    Open the web UI

    Browse to the coordinator's IP to update the Zigbee radio firmware and set network options. Note the TCP port (6638 by default).

  4. 4

    Point your Zigbee stack at it

    In Zigbee2MQTT set serial port to tcp://IP:6638, or in ZHA choose a socket connection to the same address.

  5. 5

    Build from source (optional)

    Install Python, npm and PlatformIO, then run pio run (add -e env_name -t upload to build one environment and flash it).

Available as a complete kit

ESP32 paired with TI CC2652 radio

Buy from DIY

Bill of Materials

Parts list

3 parts · 1 linked

Heads up: some Buy links are affiliate links. If you buy through one, MCU Atlas may earn a small commission at no extra cost to you. It never changes which parts we list. How this works

No verified link — check the original project
No verified link — check the original project

Not included: 3D-printed case, wire, solder, USB cable

Download CSV

Related Projects

OpenEPaperLink: reuse e-ink shelf labels with an ESP32-S3 access point
Illustration
ESP32ESP32-S3
Turns cheap second-hand electronic shelf labels into a Wi-Fi-managed e-ink display fleet via an ESP32-S3 access point.
Advanced·Code
6 parts listed
ESPHome wake-word voice assistants for Home Assistant
Illustration
ESP32ESP32-S3
ESPHome wake word satellites for Home Assistant Assist: official configs, the ESP32-S3 hardware floor, and every voice change from ESPHome 2025.5 to 2026.11.
Beginner·Code
3 parts listed
WLED: Wi-Fi control for addressable LED strips on ESP32
Illustration
ESP32
The go-to firmware for WS2812B-style LED strips on ESP32: 100+ effects, sound-reactive audio built in, browser installer, Home Assistant support, stable 16.0.1.
Beginner·Code
4 parts listed