xyzroe ZigUSB
Usb power monitor and switch
A DIY Zigbee USB power monitor and switch that turns a USB-connected device on and off and measures its voltage and current, built on an INA219 and a CC2530 radio.
Compatibility
Compatible with EpiSensor Edge over Zigbee.
Pair it with the Zigbee radio on an EpiSensor Gateway. Edge reads it locally on the Gateway.
Edge reads 13 values from it, listed under Interface.
Connect it with
Specifications
A single Zigbee command can start an automatic restart loop for the connected device. USB data passes through, so a modem can be power-cycled while it stays connected. The radio is an E18-MS1PA2-PCB, a CC2530 module with a +20 dBi amplifier, and the project describes the unit as a usable Zigbee router. It comes in a touch version and a button version, designed for the AK-N-12 case.1
- Voltage and current sensor
- INA2191
- USB switch
- MIC2545A1
- Maximum USB current
- 1.0 to 3.2 A, set by an on-board variable resistor1
- Zigbee radio
- E18-MS1PA2-PCB, CC2530 module with +20 dBi amplifier1
- Versions
- Touch and button1
- Case
- Designed for the AK-N-12 case1
- Restart off time
- 1 to 30 s2
- Reporting interval
- 1 to 3600 s2
Where it is used
Remote power cycling of a USB-powered modem or small gateway at an unattended site, using the restart command.
Multi-site energy monitoringMeasuring the voltage, current and power of a small USB-powered load on a site.
Building energy management systems (BEMS)
Interface
On the Zigbee network it joins as a router and extends the mesh for other devices.1
Readings and settings, with units and ranges where xyzroe publishes them. readable, readable and writable, writable only.
| Reading | Unit | Range or values | Access |
|---|---|---|---|
| Measurements 7 | |||
| Switch | - | - | Read only |
| Action | - | singledoubletriple |
Read only |
| Current L2 | A | - | Read only |
| Voltage L2 | V | - | Read only |
| Power L2 | W | - | Read only |
| Temperature l4 | °C | - | Read only |
| Uptime l5 | seconds | - | Read only |
| Controls 1 | |||
| State L1 | - | Binary state | Read and write |
| Settings 5 | |||
| Restart L1 | seconds | 1 to 30 seconds | Write only |
| Button mode L1 | - | single_clickmulti_click |
Read and write |
| Link to output L1 | - | noyes |
Read and write |
| Bind command L1 | - | on/offtogglechange_level_upchange_level_downchange_level_up_with_offchange_level_down_with_offrecall_scene_0recall_scene_1and 4 more |
Read and write |
| Interval L2 | sec | 1 to 3,600 sec | Write only |
The project describes ZigUSB as usable as a Zigbee router.1
The repository notes partial support in some other Zigbee systems, with on/off control inverted on several.1
Setup
-
Open pairing in Edge
In Edge, open pairing on the Gateway’s Zigbee network. The Gateway accepts new devices while pairing is open.
-
Start joining on the ZigUSB
Repeat this cycle three times: plug the unit in, wait 2 seconds, unplug it. The project gives this as the pairing and factory reset step.1
-
Confirm the join
Check that Edge identifies it as xyzroe ZigUSB, then switch the output on and off from Edge.
-
Check the readings
Compare the reported voltage and current with a USB meter. Zigbee2MQTT offers percentage calibration offsets for current, voltage and power.2
Sources
- ZigUSB: Zigbee USB power monitor and switch (opens in a new tab)
- xyzroe ZigUSB device page (opens in a new tab)
- xyzroe ZigUSB Zigbee definition (opens in a new tab)
Further reading
Product names and trademarks belong to their owners. Publication does not imply endorsement or a commercial relationship.








