ESP32-C6 Zigbee router during its first flash via ESPHome, board connected to the laptop by USB-C next to the shipping box

Setting Up the ESP32-C6 as a Zigbee Router – Cheaply Extend Home Assistant Zigbee Range

What is an ESP32-C6 Zigbee router?

The ESP32-C6 is a RISC-V microcontroller from Espressif with a built-in IEEE 802.15.4 radio (Zigbee/Thread). Flashed with ESPHome and the router: true option, it becomes a mains-powered Zigbee router that joins an existing Zigbee 3.0 network (e.g. ZHA with a SONOFF ZBDongle-E) and extends its range. Usually cheaper than a ready-made repeater, no cloud, no subscription.
  • Cost: just the ESP32-C6 board
  • Effort: install the ESPHome app, tweak the YAML config, flash over USB – about 30–45 minutes
  • Result: an extra Zigbee router in your ZHA network that extends range for weak devices

When Zigbee sensors on the other side of the house or in the basement start dropping to a flaky signal, there are two classic fixes: move the device closer to the coordinator (impractical) or buy a repeater. Commercial Zigbee repeaters often do exactly one thing: relay the signal, nothing more.

A cheaper and more flexible route is an ESP32-C6 board*. The chip has a native 802.15.4 radio built in – the same radio protocol Zigbee itself uses. With ESPHome and a few lines of YAML, it becomes a Zigbee router that joins any Zigbee 3.0 coordinator (ZHA or Zigbee2MQTT) and runs permanently as a mesh node. One thing it won’t become is a Zigbee gateway: with ESPHome the ESP32-C6 can’t act as the coordinator, so your USB stick running ZHA or Zigbee2MQTT stays in charge.

Links marked with * are affiliate links, which makes them advertising. If you buy through one, I earn a commission at no extra cost to you. As an Amazon Associate I earn from qualifying purchases. Learn more

Why ESP32-C6 instead of a ready-made repeater?

Property ESP32-C6 (ESPHome) Commercial Zigbee repeater
Price Cheaper, just the board Usually more expensive than the board
Firmware Open, fully customizable (ESPHome YAML) Closed
Expandable Yes – can also expose sensors/buttons over Zigbee No, pure black box
Network compatibility Zigbee 3.0 standard – works with ZHA and Zigbee2MQTT Usually also Zigbee 3.0 standard

What you’ll need

  • An ESP32-C6 board with USB-C (in this article: Waveshare ESP32-C6-DEV-KIT-N8)
  • An already-running Zigbee network in Home Assistant (ZHA) with a coordinator
  • The ESPHome app (add-on) in Home Assistant
  • A USB-C cable and a free USB port on the computer you’ll flash from
Product Why
Waveshare ESP32-C6-DEV-KIT-N8* 8 MB flash, USB-C, CH343/CH334 for USB+UART over a single port
SONOFF ZBDongle-E* If you don’t have a Zigbee coordinator yet (EFR32MG21, ZHA standard)
Waveshare ESP32-C6-DEV-KIT-N8 product photo
The Waveshare ESP32-C6-DEV-KIT-N8 – USB-C, CH343/CH334 for USB+UART over a single port

Important to know before you start

The ESP32-C6 shares its antenna and radio timing between WiFi and 802.15.4. According to the ESPHome documentation, running WiFi in station mode together with a Zigbee router leads to an unstable Zigbee network. That’s why we deliberately build this router with no WiFi at all: no wifi:, no api:, no over-the-network OTA updates. Updates only happen over USB – a reasonable trade-off for a device that, after initial setup, just sits in an outlet forwarding packets anyway.

Second limitation: range. According to Espressif’s datasheet, the ESP32-C6 can transmit at up to +20 dBm on its Zigbee radio, but the board’s small PCB antenna limits how far it reaches. The ESPHome documentation also mentions reports of C6 boards that only work reliably right next to the coordinator, and considers the ESP32-H2 more reliable. So don’t push the router out to the far edge straight away – start somewhere between the coordinator and the weak-signal area, and move it closer if the connection drops.

Step 1: Install the ESPHome app in Home Assistant

The ESPHome Device Builder app is an official add-on, but it lives in its own repository that isn’t registered automatically on every installation. If it doesn’t show up in the add-on store: open Settings → Apps → App Store, click the ⋮ menu → Repositories in the top right, and add https://github.com/esphome/home-assistant-addon.

Then search the app store for “ESPHome Device Builder”, install it, and start it.

ESPHome Device Builder app in the Home Assistant app store
ESPHome Device Builder found in the Home Assistant app store

Step 2: Create a new device

Open the interface (“Open Web UI” on the app page) and, on first launch, pick the “New to ESPHome” view – that’s enough for what we’re doing here.

ESPHome app detail page with Open Web UI button
App detail page: Open Web UI
ESPHome choice between beginner and expert view
Pick the beginner-friendly view on first launch

Click “Create Device” → “Create New Project”, then pick ESP32-C6 as the board and specifically “ESP32-C6 DevKitC-1” – the Waveshare board is pin-compatible with it.

ESPHome create configuration dialog
Creating a new project via “Create Configuration”
ESPHome board selection ESP32-C6 DevKitC-1
Selecting the ESP32-C6 DevKitC-1 board

Give the device a name (e.g. ESP32-C6-Zigbee-Router).

ESPHome assigning a device name
Naming the device, e.g. ESP32-C6-Zigbee-Router

Important: the setup wizard asks for an SSID and password to generate a working initial configuration. Just enter your own WiFi and finish with “Finish Setup”. WiFi gets removed again in the next step anyway.

ESPHome WiFi configuration in the setup wizard
Entering WiFi credentials in the wizard (removed again later)

Step 3: Clean up the config and add the Zigbee component

The wizard creates a default config with wifi:, api:, and ota:. In the YAML editor on the right, delete these three blocks entirely and instead add the Zigbee Component via the device navigator on the left (“Add Component” → “Zigbee Component”). Your final config should look like this:

esphome:
  name: esp32-c6-zigbee-router
  friendly_name: ESP32-C6 Zigbee Router

esp32:
  board: esp32-c6-devkitc-1
  framework:
    type: esp-idf

logger:

zigbee:
  router: true
ESPHome YAML editor with the default config after the wizard
The generated default config in the YAML editor
ESPHome Zigbee component added with the final router config
Zigbee component added – final router config

Quick rundown:

  • board: esp32-c6-devkitc-1 – the Waveshare board is pin-compatible with the official ESP32-C6-DevKitC-1, so this board definition is all we need.
  • framework: esp-idf – ESPHome’s native Zigbee component requires the ESP-IDF framework, not Arduino.
  • logger: – debug output, which the ESP32-C6 sends through the chip’s built-in USB interface (USB Serial/JTAG) by default – handy while setting things up.
  • zigbee: router: true – with no additional sensor/switch entries, the device stays a pure router; ESPHome then only creates a single endpoint of the Range Extender type.

Step 4: Flashing

Plug the ESP32-C6 into the computer running the browser via USB-C. Click “Install” in the bottom right and choose “Plug into this computer”.

ESPHome install firmware dialog with the plug into this computer option
Install → Plug into this computer

The firmware now compiles – the very first time, this takes noticeably longer than a typical ESPHome project because of the Zigbee/mbedTLS libraries pulled in by the ESP-IDF build (several minutes; see the hero image above – the TLS library alone pulls in dozens of files).

ESPHome firmware compiling progress indicator
Firmware compiling (takes longer the first time)

After compiling, you’ll get a notice that flashing over USB isn’t possible from this page – the reason: Home Assistant here runs over http://homeassistant.local:8123 – or without the port on fresh Home Assistant OS installs from 2026.8 – i.e. without HTTPS. Browsers only allow the WebSerial interface (required for browser-based USB flashing) on secure origins (HTTPS or localhost). That’s why ESPHome shows an “Open USB flasher” button, which opens web.esphome.io over HTTPS in a new tab. Your browser hands the firmware straight to that tab without uploading it to any server, and the flash itself happens locally over USB.

ESPHome notice firmware built with a button to open the USB flasher
Notice after compiling: the button opens web.esphome.io for the USB flash

On the web.esphome.io page, the browser asks for a serial port via the WebSerial dialog – select the board here. On most Windows machines it shows up as “USB Single Serial (COMx),” named after the CH343 chip on the board.

Browser WebSerial dialog with COM port selection
Choosing the serial port in the WebSerial dialog

Click “Connect,” and flashing runs through automatically to the success message:

ESPHome configuration installed message after a successful flash
Successfully flashed: Configuration installed

Step 5: Joining the Zigbee network

In Home Assistant, go to Settings → Connectivity → Zigbee and click Add device in the bottom right corner. ZHA then keeps the network open for up to 254 seconds. With Zigbee2MQTT, click Permit join in its interface instead. Only then unplug the board briefly and plug it back in. After booting, the router retries a failed join up to ten times in quick succession, then only every 10 minutes. If the network was still closed when the board started up after flashing, it may otherwise wait up to 10 minutes before its next attempt.

Tip: stay within range for the initial join

Zigbee has a chicken-and-egg problem here: for a new device to join the network, it needs direct radio contact with the coordinator (or an already-joined router) – the new router can’t relay anything until it’s part of the network itself. On top of that, the board only has a small PCB antenna. If the board already sits at its final (difficult) location during initial setup, the join can fail even though that same position would work fine once it’s an established router. Fix: for the initial join, place the board temporarily in the same room as the coordinator (a few meters away), click Add device in ZHA, and plug the board in after that. Only then move it to its actual location – once it’s part of the mesh, the connection usually stays stable even with a weaker signal.

Once the join succeeds, the log shows a line with “Joined network successfully”, followed by the PAN ID, the channel and a few other details. Mine looked like this:

[I][zigbee:081][Zigbee_main]: Joined network successfully (PAN ID: 0xfe63, Channel:25)

And in ZHA (Settings → Connectivity → Zigbee) the router shows up as its own device – in my case with an LQI of 232 and −42 dBm right next to the coordinator:

Device LQI RSSI
esphome esp32-c6-zigbee-router 232 −42 dBm

Now move the board to its final spot.

Result: was it worth it?

It takes a few hours for devices on the Zigbee network to reorient themselves around the new router. We at least hit our goal and got the mobile thermometer I use for outdoor temperature readings connected to the Zigbee network reliably and very cost-effectively. The ESP32 can be repurposed for other use cases or future projects, and around here it’s not, to put it bluntly, “proprietary plastic landfill.” That thermometer hadn’t delivered a single reading before, blocked by a floor slab and reinforced concrete. The ZHA visualization gives a simple view into your network:

ZHA network visualization in Home Assistant
Zigbee network after one hour

After several hours, the picture looks the way we’d hoped: every device on the ground floor has connected to the new router.

Zigbee visualization with SONOFF coordinator, ESP32-C6 router and connected end devices
Zigbee network after a few hours

Conclusion: three ways to more Zigbee range

The ESP32-C6 is the cheapest option in this comparison – but not the most convenient one. If you don’t feel like dealing with ESPHome, YAML, and the pitfalls described above, there are two more ways to extend your Zigbee range:

Option 2: a pure plug-and-play repeater

Devices like the Aeotec Range Extender Zi* are built for exactly one purpose: plug it in, pair it in ZHA like any other Zigbee device, done. No flashing, no YAML config, no compile time. The trade-off: a pure black box – no expandability, no access to logs if something goes wrong.

Option 3: a Zigbee USB stick flashed with router firmware

The same type of stick that also serves as a coordinator – e.g. the SONOFF ZBDongle-E* (EFR32MG21) – can be flashed with router firmware instead of coordinator/NCP firmware, for example via the “SONOFF Dongle Flasher” app in Home Assistant or with Nabu Casa’s universal-silabs-flasher. After that, just plug it into a USB power adapter – done. No YAML required, but the stick costs more than the ESP32-C6, and you have to flash the router firmware yourself once. The app does it without a terminal; the universal-silabs-flasher is a command-line tool.

Solution Price Setup effort Flexibility Best for
ESP32-C6 + ESPHome* (this article) Lowest Medium – ESPHome/YAML, possible troubleshooting High – fully customizable, can also expose sensors Makers already comfortable with Home Assistant/ESPHome
Aeotec Range Extender Zi* Highest Minimal – plug in, pair None – pure black box Anyone who just wants it to work
SONOFF ZBDongle-E* with router firmware In between Low-medium – one-time firmware flash Medium – firmware choice, otherwise a black box Users comfortable with flashing who’d rather skip ESPHome
* Affiliate links (advertising). Learn more

Troubleshooting

  • First compile takes a long time: the ESP-IDF build for the Zigbee component pulls in far more toolchain and library code than a typical ESPHome project. Expect several minutes on the very first compile – that’s normal, later builds are faster thanks to caching.
  • WebSocket error during installation: if the ESPHome Device Builder UI drops with a WebSocket error while compiling, reload the page (F5). If the build is gone afterwards, start “Install” again.
  • Device doesn’t show up on the Zigbee network: the LEDs on the board tell you nothing about Zigbee status, since the config doesn’t drive any of them. To see what’s happening, watch the boot logs live through web.esphome.io, just like when flashing: click “Connect” and this time pick the other serial port, not “USB Single Serial”. The board’s USB-C port shows up as two ports: the CH343 converter you flashed through, and the ESP32-C6’s built-in USB interface, which is where ESPHome sends its logs.
  • “Failed to join network with status(0x..)” in the log: the join attempt failed. After booting, the router retries up to ten times in quick succession, then only every 10 minutes. Key thing to check in the log: as long as Current channel: 255 and Short pan id: 0xFFFF stay put, the router hasn’t found any joinable network yet – usually because the Zigbee network isn’t currently open for new devices, or because the board (see the tip above) is too far from the coordinator during initial setup. Click Add device in ZHA (Permit join in Zigbee2MQTT), then briefly unplug the board so it searches again right away. Once the join works, the router shows up in ZHA as a new device and the log shows Joined network successfully.
  • Boot loop after a config change: whenever the ESPHome config changes, the device should be removed from the Zigbee network and re-paired, and with Zigbee2MQTT also re-interviewed. For stubborn boot loops, it can help to erase the ESP32-C6’s flash completely and flash the firmware again. The wipe_on_boot option from the ESPHome docs only exists for nRF52 chips.
  • Router stays “unavailable”: the ESP32-C6 needs constant power (a wall outlet, not a USB hub that can switch off) – a router can’t go to sleep.
  • Weak reception despite the router: move the board closer to the coordinator, for example halfway to the problem zone. If the connection stays unstable, the ESPHome docs point to the ESP32-H2 as the more reliable option.
Does the ESP32-C6 router also work with Zigbee2MQTT?

Yes. The router speaks standard Zigbee 3.0 and works with ZHA as well as Zigbee2MQTT. For Zigbee2MQTT, the ESPHome docs call for version 2.8.0 or newer, since older versions can’t handle spaces in names.

Can the ESP32-C6 be the Zigbee gateway (coordinator)?

Not with ESPHome: its Zigbee component only supports the router and end-device roles. Zigbee2MQTT can run an ESP32-C6 or ESP32-H2 as a coordinator using the esp-coordinator firmware and its zboss adapter, but that support is explicitly experimental and can’t do backups, for example. For a network you rely on, a USB stick like the SONOFF ZBDongle-E is still the better choice.

Can the board act as a sensor and a router at the same time?

Yes, ESPHome’s zigbee: component can expose additional entities (e.g. sensor, switch) over Zigbee. For a pure range extender you leave them out.

Does the ESP32-C6 router need an external antenna?

Not necessarily. In my setup, the Waveshare board’s PCB antenna was enough. If the connection drops, move the router closer to the coordinator; the ESPHome docs consider the ESP32-H2 the more reliable choice.

What does the whole setup cost?

Just the ESP32-C6 board, assuming you already have a Zigbee coordinator and Home Assistant running. No subscription, no cloud.

Similar Posts