Skip to content

FW + HW of Zigbee USB power monitor and switch based on ESP32 C6

License

Notifications You must be signed in to change notification settings

xyzroe/ZigUSB_C6

Repository files navigation

ZigUSB_C6

GitHub version GitHub Actions Workflow Status GitHub download GitHub Issues or Pull Requests

The ZigUSB C6 project is an innovative solution designed to enhance the control and monitoring of USB-powered devices through Zigbee communication. This project aims to provide a seamless integration for smart home enthusiasts and professionals alike, enabling remote control, automation, and monitoring of USB devices in a Zigbee-enabled ecosystem.

This project is based on the original ZigUSB but uses a modern chip and custom-developed firmware.

Using this device, you can remotely control the power of the USB port to turn on or off the connected device. Additionally, you can monitor the current voltage and current. It also functions as a reliable Zigbee network router.

Frequent use cases include converting a "dumb" USB lamp into a "smart" one, connecting modems/sticks/adapters that sometimes require a power reset, and monitoring the current consumption of any connected device.

Key Features

  • USB Power Control: Remotely manage the power supply to USB devices, allowing for energy savings and enhanced device management.
  • Zigbee Integration: Fully compatible with Zigbee networks, facilitating easy integration into existing smart home setups.
  • OTA Updates: Support for Over-The-Air (OTA) firmware updates, ensuring the device remains up-to-date with the latest features and security enhancements.
  • USB data transfer is available. This may be needed when connecting a USB modem to a router that does not know how to manage USB power, and the modem may need to be rebooted.
  • Monitoring of voltage and current - INA219 chip.
  • For power management, USB switch - AP22804AW5-7 chip.
  • WT0132C6-S5 module ​​was used as the Zigbee chip. It's ESP32 C6 based module.
  • Designed for AK-N-12 case.

To re-pairing or reset to factory defaults:

Hold touch button for more than 5 seconds

Project Goals

ZigUSB C6 was created with the vision of making smart home automation more accessible and versatile. By providing a bridge between USB devices and Zigbee networks, it opens up new possibilities for device automation and control. Whether you're looking to remotely manage lighting, charge devices on a schedule, or integrate USB devices into complex automation routines, ZigUSB C6 offers the flexibility and reliability needed for modern smart homes.

Stay tuned for updates as we continue to expand the capabilities of ZigUSB C6, and feel free to contribute to the project or suggest new features through our GitHub repository.

Overview

Photos

Schematic

zigbee2mqtt overview

Home Assistant overview

Hardware files

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License

Web Flasher

Go to xyzroe.cc/ZigUSB_C6.

Firmware Files

All source files are available in this repository. Pre-built firmware files can be found in the releases section.

OTA

zigbee2mqtt
  1. Put firmware update (.*ota) file next to config file
  2. Create index.json file:
[
    {
        "url": "ZigUSB_C6.ota",
        "force": true
    }
]
  1. Add config option to you zigbee2mqtt configuration.yaml file
ota:
  zigbee_ota_override_index_location: index.json
  1. Open OTA tab in z2m and click check update next to your device.
  2. Check update process via web UI
homed
  1. Put firmware update (.*ota) file to "ota" folder next to config file
  2. Open device page and click OTA button
  3. Click refresh and then update

Verified Supported Zigbee Systems

  • zigbee2mqtt - Full support, no longer requires an external converter ⭐⭐⭐⭐⭐
  • HOMEd - Partial support ⭐⭐⭐⭐
  • ZHA - Partial support ⭐⭐⭐⭐
  • Other systems must be tested. The device uses standard clusters and attributes, so most coordinators can support it out of the box.

Where to buy?

I sell on Tindie

Like ♥️?

badges badges badges

Contribute 🚀


ZigUSB_C6 is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License