{"id":48521116,"url":"https://github.com/firsttris/esp32c6-zigbee-router","last_synced_at":"2026-04-07T21:01:30.738Z","repository":{"id":333520180,"uuid":"1137640023","full_name":"firsttris/esp32c6-zigbee-router","owner":"firsttris","description":null,"archived":false,"fork":false,"pushed_at":"2026-01-19T17:26:22.000Z","size":277,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-21T23:05:11.481Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/firsttris.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-19T16:26:05.000Z","updated_at":"2026-01-21T18:19:27.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/firsttris/esp32c6-zigbee-router","commit_stats":null,"previous_names":["firsttris/esp32c6-zigbee-router"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/firsttris/esp32c6-zigbee-router","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firsttris%2Fesp32c6-zigbee-router","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firsttris%2Fesp32c6-zigbee-router/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firsttris%2Fesp32c6-zigbee-router/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firsttris%2Fesp32c6-zigbee-router/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/firsttris","download_url":"https://codeload.github.com/firsttris/esp32c6-zigbee-router/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firsttris%2Fesp32c6-zigbee-router/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31528751,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T16:28:08.000Z","status":"ssl_error","status_checked_at":"2026-04-07T16:28:06.951Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-04-07T21:00:51.593Z","updated_at":"2026-04-07T21:01:30.698Z","avatar_url":"https://github.com/firsttris.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# 📡 ESP32-C6 Zigbee Router\n\n**Extend Your Zigbee Network Coverage with an Affordable ESP32-C6!**\n\n\u003cimg src=\"./zigbee-router-image.jpg\" alt=\"ESP32-C6 Zigbee Router\" width=\"600\"\u003e\n\n[![ESPHome](https://img.shields.io/badge/ESPHome-Compatible-blue?logo=esphome)](https://esphome.io/)\n[![Zigbee](https://img.shields.io/badge/Zigbee-3.0-green)](https://zigbeealliance.org/)\n[![Home Assistant](https://img.shields.io/badge/Home%20Assistant-Integration-41BDF5?logo=homeassistant)](https://www.home-assistant.io/)\n\nThis ESPHome configuration turns an ESP32-C6 board into a Zigbee router that seamlessly integrates with your Zigbee network to expand coverage and improve connectivity for your Zigbee devices.\n\n---\n\n\u003c/div\u003e\n\n## 📋 Prerequisites\n\n| Requirement | Description |\n|-------------|-------------|\n| **🔧 Hardware** | ESP32-C6 board (tested with [Seeed Studio XIAO ESP32C6](https://www.seeedstudio.com/Seeed-Studio-XIAO-ESP32C6-p-5884.html)) |\n| **🌐 Network** | Zigbee Coordinator in your network (e.g., Home Assistant with Zigbee2MQTT or ZHA) |\n| **💻 Software** | ESPHome installed |\n| **🔌 Cable** | USB cable for initial flashing |\n| **📦 Optional** | 3D-printed case - [XIAO ESP32-C6 Case](https://www.printables.com/model/1543275-xiao-esp32-c6-zigbee-router-case-split-lid-sma-ext) |\n\n---\n\n## 🔑 Required Information\n\n### 📡 Zigbee Router - How does it work?\n\nA Zigbee router is a **mains-powered device** that:\n- ✅ Relays Zigbee signals between devices (mesh network)\n- ✅ Extends the range of your Zigbee network\n- ✅ Improves stability and reliability\n- ✅ Connects battery-powered devices (End Devices) to the Coordinator\n\n## 🚀 Installation\n\n### 📝 Step 1: Configure Settings (Optional)\n\nThe default configuration works right away! You can optionally customize:\n\n**`esp32-c6-zigbee-router.yaml`:**\n```yaml\nsubstitutions:\n  device_name: esp32-c6-zigbee-router  # Unique name\n  friendly_name: ESP32-C6 Zigbee Router  # Display name\n```\n\n**Enable WiFi (optional):**\n```yaml\n# Uncomment lines in the YAML file:\nwifi:\n  ssid: !secret wifi_ssid\n  password: !secret wifi_password\n\napi:\n  encryption:\n    key: !secret api_encryption_key\n\nota:\n  - platform: esphome\n```\n\n### ⚡ Step 2: Compile and Flash Firmware\n\nConnect your ESP32-C6 via USB and flash the firmware using local ESPHome:\n\n```bash\nesphome run esp32-c6-zigbee-router.yaml --device=/dev/ttyACM0\n```\n\n\u003e **💡 Note:** Replace `/dev/ttyACM0` with your device path (see troubleshooting below)\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cb\u003e📚 Important Notes \u0026 Troubleshooting\u003c/b\u003e\u003c/summary\u003e\n\n### 📍 Device Paths by OS\n\n| OS | Typical Paths |\n|----|--------------|\n| 🐧 Linux | `/dev/ttyUSB0`, `/dev/ttyACM0`, `/dev/ttyUSB1` |\n| 🍎 macOS | `/dev/cu.usbserial-*`, `/dev/cu.wchusbserial*` |\n| 🪟 Windows | `COM3`, `COM4`, etc. |\n\n**Check available ports:**\n- Linux/macOS: `ls /dev/tty*`\n- Windows: Device Manager\n\n---\n\n### 🔐 USB Permission Issues\n\n**Standard Linux - Add user to dialout group:**\n```bash\nsudo usermod -a -G dialout $USER\n# Then log out and back in\n```\n\n**Fedora Atomic/Bazzite with rootless Docker/Podman:**\n\nThe dialout group doesn't work reliably on immutable systems. You need to fix permissions before each flash:\n\n```bash\n# Check permissions\nls -la /dev/ttyACM0\n# Output: crw-rw----. 1 root dialout 166, 0 ...\n\n# Fix temporarily (resets on USB reconnect)\nsudo chmod 666 /dev/ttyACM0\n\n# If using Docker/Podman, restart the container\ndocker-compose restart\n```\n\n\u003e ⚠️ **Note:** You need to run `sudo chmod 666` each time you reconnect the USB device.\n\n\u003c/details\u003e\n\n---\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cb\u003e🐳 Alternative: Using Docker/Podman\u003c/b\u003e\u003c/summary\u003e\n\n\u003e ⚠️ **Important:** When using Docker/Podman (rootless), you need to fix USB permissions before flashing.\n\n```bash\n# 1. Start container\ndocker-compose up -d\n\n# 2. Flash the firmware\ndocker-compose exec esphome esphome run /config/zigbee/esp32-c6-zigbee-router.yaml --device=/dev/ttyACM0\n```\n\n\u003e **📌 Note:** The docker-compose.yml mounts the parent `config/` directory to `/config` in the container. That's why you need `/config/zigbee/` in the path above. This is necessary so ESPHome can find the build files in `.esphome/`.\n\n\u003c/details\u003e\n\n---\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cb\u003e🌐 Alternative: Web Dashboard (GUI)\u003c/b\u003e\u003c/summary\u003e\n\nChoose between local or hosted dashboard:\n\n**Docker Dashboard:**\n```bash\n# Start container if not already running\ndocker-compose up -d\n\n# Start the dashboard\ndocker-compose exec esphome esphome dashboard /config\n```\nThen open **http://localhost:6052** in your browser and navigate to the zigbee folder.\n\n**Local Dashboard** (requires local ESPHome):\n```bash\nesphome dashboard .\n```\nThen open **http://localhost:6052** in your browser and use the web interface.\n\n**Hosted Dashboard** (no installation needed):\n\u003e **🎉 No installation needed!** Flash directly from your browser.\n\n1. Visit **https://web.esphome.io/**\n2. Click \"Connect\" and select your ESP32-C6 device\n3. Upload your `esp32-c6-zigbee-router.yaml` configuration file\n4. Click \"Install\" to compile and flash\n\n**Perfect for:** Users who prefer GUI over command line, or quick flashing without local ESPHome installation.\n\n\u003c/details\u003e\n\n---\n\n### 🔗 Step 3: Connect Router to Coordinator\n\nAfter flashing is complete, enable pairing mode on your Zigbee Coordinator:\n\n**Zigbee2MQTT:**\n1. Open the Zigbee2MQTT Web UI\n2. Click **\"Permit join (All)\"** button (top right)\n3. Pairing mode stays active for 4-5 minutes\n4. The ESP32-C6 will automatically appear in the device list\n\n**ZHA (Home Assistant):**\n1. Go to **Settings → Devices \u0026 Services → ZHA**\n2. Click **\"Add Device\"**\n3. Select **\"Add Zigbee device\"**\n4. The ESP32-C6 will be discovered and added\n\n\u003e **⏱️ Note:** The device will search for and join the network automatically within 30-60 seconds after boot. Keep pairing mode active until the device appears!\n\n---\n\n## ✅ Verification \u0026 Testing\n\n### 🔍 Check if Zigbee Router is working:\n\n#### 📋 Method 1: View Logs\n\n**Logging Options:**\n\n**🔌 Option A: Serial Connection (USB)**\n- Always available - Connect via USB cable\n\n**📡 Option B: Over WiFi (OTA)**\n- Only works when WiFi is enabled\n\n```bash\nesphome logs esp32-c6-zigbee-router.yaml\n```\n\nYou should see:\n- No continuous error messages\n- `[zigbee:xxx] Device Type: Router`\n- Successful connection to Zigbee network\n\n---\n\n#### 🌐 Method 2: Check Zigbee Network\n\n**Zigbee2MQTT:**\n- Open the Zigbee2MQTT Web UI\n- Go to \"Map\"\n- The ESP32-C6 should be visible as a router\n- Check the Link Quality to other devices\n\n**ZHA (Home Assistant):**\n- Go to **Settings → Devices \u0026 Services → ZHA**\n- Click \"Visualize\"\n- The ESP32-C6 should be displayed as a router\n\n---\n\n#### 🏠 Method 3: Home Assistant Integration (only with WiFi)\n\n- Go to **Settings → Devices \u0026 Services**\n- The ESP32-C6 should appear as a discovered device\n- Add it to Home Assistant (use `esp32-c6-zigbee-router.local` or IP address)\n- Check device status - should show \"Online\"\n\n---\n\n## 🔄 Multiple Zigbee Routers\n\nTo flash multiple ESP32-C6 devices and use them as separate routers in the same Zigbee network:\n\n### 1. Create Device-Specific Configuration Files\n\nFor each additional device, create a new YAML file (e.g., `esp32-c6-zigbee-router-2.yaml`):\n\n### 2. Flash Additional Devices\n\nEach device will join the same Zigbee network and act as an independent router, extending your mesh coverage.\n\n```bash\nesphome run esp32-c6-zigbee-router-2.yaml --device=/dev/ttyACM0\n```\n\n---\n\n## 📂 File Structure\n\n```\n.\n├── esp32-c6-zigbee-router.yaml     # Main ESPHome configuration\n├── esp32-c6-zigbee-router-2.yaml   # Optional: Second router\n├── esp32-c6-zigbee-router-3.yaml   # Optional: Third router\n├── partitions_zb.csv               # Custom Partition Table for Zigbee\n├── secrets.yaml                    # Shared credentials (not in git)\n├── .gitignore                      # Excludes secrets and build artifacts\n├── docker-compose.yml              # Docker/Podman setup for ESPHome\n└── README.md                       # This file\n```\n\n---\n\n## 📚 Further Resources\n\n| Resource | Description |\n|----------|-------------|\n| 📖 [ESPHome Zigbee Component](https://github.com/luar123/zigbee_esphome) | External Zigbee component for ESPHome |\n| 🔗 [Zigbee Alliance](https://zigbeealliance.org/) | Learn the basics of Zigbee networking |\n| 🏠 [Home Assistant Zigbee Integration](https://www.home-assistant.io/integrations/zha/) | How Zigbee works in Home Assistant |\n| 📡 [Zigbee2MQTT](https://www.zigbee2mqtt.io/) | Alternative Zigbee bridge |\n\n---\n\n\u003cdiv align=\"center\"\u003e\n\n**Made by the open source community**\n\n⭐ Star us on [GitHub](https://github.com/firsttris/esp32c6-zigbee-router) • 🐛 [Report a Bug](https://github.com/firsttris/esp32c6-zigbee-router/issues) • 💡 [Request a Feature](https://github.com/firsttris/esp32c6-zigbee-router/issues)\n\n\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirsttris%2Fesp32c6-zigbee-router","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffirsttris%2Fesp32c6-zigbee-router","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirsttris%2Fesp32c6-zigbee-router/lists"}