{"id":48521128,"url":"https://github.com/firsttris/esp32c6-thread-router","last_synced_at":"2026-04-07T21:01:31.440Z","repository":{"id":333270589,"uuid":"1136756340","full_name":"firsttris/esp32c6-thread-router","owner":"firsttris","description":"Extend Your Thread Network Coverage with an Affordable ESP32-C6!","archived":false,"fork":false,"pushed_at":"2026-01-19T17:27:07.000Z","size":304,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-21T23:05:10.644Z","etag":null,"topics":["esp32-c6","esphome","home-assistant","range-extender","repeater","router","thread"],"latest_commit_sha":null,"homepage":"","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-18T09:47:34.000Z","updated_at":"2026-02-17T23:49:27.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/firsttris/esp32c6-thread-router","commit_stats":null,"previous_names":["firsttris/esp32c6-thread-router"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/firsttris/esp32c6-thread-router","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firsttris%2Fesp32c6-thread-router","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firsttris%2Fesp32c6-thread-router/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firsttris%2Fesp32c6-thread-router/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firsttris%2Fesp32c6-thread-router/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/firsttris","download_url":"https://codeload.github.com/firsttris/esp32c6-thread-router/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firsttris%2Fesp32c6-thread-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":["esp32-c6","esphome","home-assistant","range-extender","repeater","router","thread"],"created_at":"2026-04-07T21:00:55.855Z","updated_at":"2026-04-07T21:01:31.434Z","avatar_url":"https://github.com/firsttris.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# 🔗 ESP32-C6 Thread Router\n\n**Extend Your Thread Network Coverage with an Affordable ESP32-C6!**\n\n\u003cimg src=\"./thread-router-image.jpg\" alt=\"ESP32-C6 Thread Router\" width=\"600\"\u003e\n\n[![ESPHome](https://img.shields.io/badge/ESPHome-Compatible-blue?logo=esphome)](https://esphome.io/)\n[![Thread](https://img.shields.io/badge/Thread-1.3-green)](https://www.threadgroup.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 Thread FTD (Full Thread Device) router that seamlessly integrates with Home Assistant to expand your Thread mesh network and improve connectivity for your Thread 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** | Thread Border Router in network (e.g., Home Assistant with Thread integration) |\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## 🔑 Required Information\n\n### 🌐 1. Thread Network Dataset (TLV)\n\n\u003e **💡 Important:** The TLV contains ALL network parameters - you don't need to generate or enter anything manually!\n\n#### 📥 Retrieve TLV from existing Thread network:\n\n**✅ Recommended method - via SSH/Terminal:**\n\n**Step 1:** SSH to your Server\n\n**Step 2:** Retrieve TLV data:\n```bash\ndocker exec otbr ot-ctl dataset active -x\n```\n\n**Step 3:** Copy the hex string (e.g., `0e080000000000010000...`)\n\n**Step 4:** Add to `secrets.yaml`:\n```yaml\nthread_tlv: \"YOUR_TLV_HEX_HERE\"\n```\n\n**🎉 That's it!** The TLV contains:\n\n\u003ctable\u003e\n\u003ctr\u003e\u003ctd\u003e✅ Channel\u003c/td\u003e\u003ctd\u003e✅ Network Name\u003c/td\u003e\u003ctd\u003e✅ PAN ID \u0026 Extended PAN ID\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\u003ctd\u003e✅ Network Key (encrypted)\u003c/td\u003e\u003ctd\u003e✅ PSKc (encrypted)\u003c/td\u003e\u003ctd\u003e✅ Mesh-Local Prefix\u003c/td\u003e\u003c/tr\u003e\n\u003c/table\u003e\n\n### 🔐 2. ESPHome Secrets\n\nIn `secrets.yaml` you need:\n\n| Key | Description | Required |\n|-----|-------------|----------|\n| **thread_tlv** | Your Thread network commissioning data | ✅ Required |\n\n## 🚀 Installation\n\n### 📝 Step 1: Configure Secrets\n\nEdit `secrets.yaml` with your Thread TLV:\n```yaml\nthread_tlv: \"YOUR_TLV_HEX_HERE\"\n```\n\nThat's all you need - no WiFi credentials required!\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 esp32c6-thread-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### 🔐 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/Thread/esp32c6-thread-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/Thread/` 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 Thread 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 `esp32c6-thread-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## ✅ Verification \u0026 Testing\n\n### 🔍 Check if Thread Router is working:\n\n#### 📋 Method 1: View Logs\n\n\u003e **🎉 Good news:** You can view logs over-the-air even with WiFi disabled!\n\n**Logging Options:**\n\n**🔌 Option A: Serial Connection (USB)**\n- Always available - Connect via USB cable\n\n**📡 Option B: Over Thread Network (OTA)**\n- Works without WiFi! The device uses its Thread IPv6 address to connect.\n\n```bash\nesphome logs esp32c6-thread-router.yaml\n```\n\nChoose \"Over The Air\" option when prompted. You should see:\n- IPv6 address like `fd3d:8f96:a13d:1:...` (Thread mesh-local address)\n- `[openthread:xxx] Device Type: FTD`\n- No continuous error messages\n\n---\n\n#### 🌐 Method 2: Check Thread Network\n```bash\n# List all Thread devices in network\npodman exec otbr ot-ctl router table\n# Your ESP32-C6 should appear with Extended MAC and good Link Quality\n\n# Show network state\npodman exec otbr ot-ctl state\n```\n\n---\n\n#### 🏠 Method 3: Home Assistant Integration\n- Go to **Settings → Devices \u0026 Services**\n- The ESP32-C6 should appear as a discovered device\n- Add it to Home Assistant (use `esp32c6-thread-router.local` or IPv6 address)\n- Check device status - should show \"Online\"\n\n##  Multiple Thread Routers\n\nTo flash multiple ESP32-C6 devices and use them as separate routers in the same Thread network:\n\n### 1. Create Device-Specific Configuration Files\n\nFor each additional device, create a new YAML file (e.g., `esp32c6-thread-router-2.yaml`):\n\n```yaml\nesphome:\n  name: esp32c6-thread-router-2          # Must be unique!\n  friendly_name: ESP32-C6 Thread Router 2  # Optional but helpful\n\nopenthread:\n  device_type: FTD\n  tlv: !secret thread_tlv  # Same TLV = same Thread network\n```\n### 2. Flash Additional Devices\n\nEach device will join the same Thread network and act as an independent router, extending your mesh coverage.\n\n## 📂 File Structure\n\n```\n.\n├── esp32c6-thread-router.yaml    # Main ESPHome configuration\n├── esp32c6-thread-router-2.yaml  # Optional: Second router\n├── esp32c6-thread-router-3.yaml  # Optional: Third router\n├── secrets.yaml                  # Shared credentials (not in git)\n├── .gitignore                    # Excludes secrets and build artifacts\n└── README.md                     # This file\n```\n\n## 📚 Further Resources\n\n| Resource | Description |\n|----------|-------------|\n| 📖 [ESPHome OpenThread Documentation](https://esphome.io/components/openthread/) | Official ESPHome Thread component docs |\n| 🔗 [OpenThread Primer](https://openthread.io/guides/thread-primer/) | Learn the basics of Thread networking |\n| 🏠 [Home Assistant Thread Integration](https://www.home-assistant.io/integrations/thread/) | How Thread works in Home Assistant |\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-thread-router) • 🐛 [Report a Bug](https://github.com/firsttris/esp32c6-thread-router/issues) • 💡 [Request a Feature](https://github.com/firsttris/esp32c6-thread-router/issues)\n\n\u003c/div\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirsttris%2Fesp32c6-thread-router","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffirsttris%2Fesp32c6-thread-router","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirsttris%2Fesp32c6-thread-router/lists"}