A command-line interface for managing Zigbee coordinators and devices using the ZHA library.
- Coordinator Detection: Automatically probe serial ports to detect Zigbee coordinators (EZSP, ZNP, deCONZ, ZiGate, XBee)
- Network Management: Start and stop Zigbee networks
- Device Pairing: Enable pairing mode to add new Zigbee devices
- Device Control: Turn on/off switches and lights
Requires uv for dependency management.
# Clone the repository
git clone https://github.com/your-username/zha-cli.git
cd zha-cli
# Install dependencies and create virtual environment
uv sync
# Run the CLI
uv run zha-cliuv run zha-cli # Run the CLI
uv run zha-cli -v # Run with verbose logging- Probe for coordinators - Scan serial ports for Zigbee coordinators
- Start network - Connect to the selected coordinator and start the Zigbee network
- Pair device - Enable pairing mode to add new devices
- List devices - Show all paired Zigbee devices
- Control device - Turn devices on/off
- Exit - Shut down and exit
| Radio Type | Description |
|---|---|
| EZSP | Silicon Labs EmberZNet (Elelabs, HUSBZB-1, Telegesis) |
| ZNP | Texas Instruments Z-Stack (CC253x, CC26x2, CC13x2) |
| deCONZ | dresden elektronik (ConBee I/II, RaspBee I/II) |
| ZiGate | ZiGate radios (PiZiGate, ZiGate USB-TTL, ZiGate WiFi) |
| XBee | Digi XBee Zigbee radios (Series 2, 2C, 3) |
- Python 3.12+
- uv package manager
- A supported Zigbee coordinator connected via USB/serial
Apache-2.0