Library implementing a ZigBee stack
Project description
zigpy
zigpy is Zigbee protocol stack integration project to implement the Zigbee Home Automation standard as a Python 3 library.
Zigbee Home Automation integration with zigpy allows you to connect one of many off-the-shelf Zigbee adapters using one of the available Zigbee radio library modules compatible with zigpy to control Zigbee based devices. There is currently support for controlling Zigbee device types such as binary sensors (e.g., motion and door sensors), sensors (e.g., temperature sensors), lightbulbs, switches, and fans.
zigpy contains common code implementing Zigbee ZCL, ZDO and application state management which is being used by various radio libraries implementing the actual interface with the radio modules from different manufacturers. The separate radio libraries interface with radio hardware adapters/modules over USB and GPIO using different native UART serial protocols.
Reference implementation of the zigpy library exist in Home Assistant (Python based open source home automation software) as part of its ZHA integration component.
How to install and test, report bugs, or contribute to this project
For specific instructions on how-to install and test zigpy or contribute bug-reports and code to this project please see the guidelines in the CONTRIBUTING.md file:
This CONTRIBUTING.md file will contain information about using zigpy, testiing new releases, troubleshooting and bug-reporting as, as well as librar + code instructions for developers and more.
You can contribute to this project either as an end-user, a tester (advanced user contributing constructive issue/bug-reports) or as a developer contributing code.
Compatible hardware
Radio libraries for zigpy include bellows (which communicates with EZSP/ZNet based radios), zigpy-xbee (which communicates with XBee based Zigbee radios), and as zigpy-deconz for deCONZ serial protocol (for communicating with ConBee and RaspBee USB and GPIO radios from Dresden-Elektronik). There are also experimental radio libraries called zigpy-zigate for communicating with ZiGate based radios and zigpy-cc for communicating with Texas Instruments based radios based radios that have custom Z-Stack coordinator firmware.
Known working Zigbee radio modules
- EmberZNet based radios using the EZSP protocol (via the bellows library for zigpy)
- ITEAD Sonoff ZBBridge (Note! This first have to be flashed with Tasmota firmware and EmberZNet firmware)
- Nortek GoControl QuickStick Combo Model HUSBZB-1 (Z-Wave & Zigbee USB Adapter)
- Elelabs Zigbee USB Adapter
- Elelabs Zigbee Raspberry Pi Shield
- Telegesis ETRX357USB (Note! First have to be flashed with other EmberZNet firmware)
- Telegesis ETRX357USB-LRS (Note! First have to be flashed with other EmberZNet firmware)
- Telegesis ETRX357USB-LRS+8M (Note! First have to be flashed with other EmberZNet firmware)
- XBee Zigbee based radios (via the zigpy-xbee library for zigpy)
- Digi XBee Series 2C (S2C) modules
- Digi XBee Series 2 (S2) modules. Note: These will need to be manually flashed with the Zigbee Coordinator API firmware via XCTU.
- Digi XBee Series 3 (xbee3-24) modules
- deCONZ based radios (via the zigpy-deconz library for zigpy)
- ConBee II (a.k.a. ConBee 2) USB adapter from dresden dlektronik
- ConBee USB radio adapter from dresden elektronik
- RaspBee II (a.k.a. RaspBee 2) GPIO radio adapter from dresden elektronik
- RaspBee GPIO radio adapter from dresden elektronik
Experimental support for additional Zigbee radio modules
- ZiGate open source ZigBee adapter hardware (via the zigpy-zigate library for zigpy)
- ZiGate USB-TTL (Note! Requires ZiGate firmware 3.1a or later)
- ZiGate USB-DIN (Note! Requires ZiGate firmware 3.1a or later)
- PiZiGate (ZiGate module for Raspberry Pi GPIO) (Note! Requires ZiGate firmware 3.1a or later)
- ZiGate Pack WiFi (Note! Requires ZiGate firmware 3.1a or later)
- Texas Instruments CC253x, CC26x2R, and CC13x2 based radios (via the zigpy-cc library for zigpy)
- CC2531 USB stick hardware flashed with custom Z-Stack coordinator firmware from the Zigbee2mqtt project
- CC2530 + CC2591/CC2592 USB stick hardware flashed with custom Z-Stack coordinator firmware from the Zigbee2mqtt project
- CC2538 + CC2592 dev board hardware flashed with custom Z-Stack coordinator firmware from the Zigbee2mqtt project
- CC2652P/CC2652R/CC2652RB USB stick and dev board hardware flashed with custom Z-Stack coordinator firmware from the Zigbee2mqtt project
- CC1352P/CC1352R USB stick and dev board hardware flashed with custom Z-Stack coordinator firmware from the Zigbee2mqtt project
Release packages available via PyPI
New packages of tagged versions are also released via the "zigpy" project on PyPI
Older packages of tagged versions are still available on the "zigpy-homeassistant" project on PyPI
Packages of tagged versions of the radio libraries are released via separate projects on PyPI
Related projects
ZHA Device Handlers
ZHA deviation handling in Home Assistant relies on the third-party ZHA Device Handlers project. Zigbee devices that deviate from or do not fully conform to the standard specifications set by the Zigbee Alliance may require the development of custom ZHA Device Handlers (ZHA custom quirks handler implementation) to for all their functions to work properly with the ZHA component in Home Assistant. These ZHA Device Handlers for Home Assistant can thus be used to parse custom messages to and from non-compliant Zigbee devices. The custom quirks implementations for zigpy implemented as ZHA Device Handlers for Home Assistant are a similar concept to that of Hub-connected Device Handlers for the SmartThings platform as well as that of zigbee-herdsman converters as used by Zigbee2mqtt, meaning they are each virtual representations of a physical device that expose additional functionality that is not provided out-of-the-box by the existing integration between these platforms.
ZHA integration component for Home Assistant
ZHA integration component for Home Assistant is a reference implementation of the zigpy library as integrated into the core of Home Assistant (a Python based open source home automation software). There are also other GUI and non-GUI projects for Home Assistant's ZHA components which builds on or depends on its features and functions to enhance or improve its user-experience, some of those are listed and linked below.
ZHA Custom Radios
zha-custom-radios adds support for custom radio modules for zigpy to [Home Assistant's ZHA (Zigbee Home Automation) integration component]. This custom component for Home Assistant allows users to test out new modules for zigpy in Home Assistant's ZHA integration component before they are integrated into zigpy ZHA and also helps developers new zigpy radio modules without having to modify the Home Assistant's source code.
ZHA Custom
zha_custom is a custom component package for Home Assistant (with its ZHA component for zigpy integration) that acts as zigpy commands service wrapper, when installed it allows you to enter custom commands via to zigy to example change advanced configuration and settings that are not available in the UI.
ZHA Map
zha-map for Home Assistant's ZHA component can build a Zigbee network topology map.
ZHA Network Visualization Card
zha-network-visualization-card is a custom Lovelace element for Home Assistant which visualize the Zigbee network for the ZHA component.
ZHA Network Card
zha-network-card is a custom Lovelace card for Home Assistant that displays ZHA component Zigbee network and device information in Home Assistant
ZHA Device Exporter
zha-device-exporter is a custom component for Home Assistant to allow the ZHA component to export lists of Zigbee devices.
ZHA Custom Radios
zha-custom-radios A now obsolete custom component package for Home Assistant (with its ZHA component for zigpy integration) that allows users to test out new zigpy radio libraries and hardware modules before they have officially been integrated into ZHA. This enables developers and testers to test new or updated zigpy radio modules without having to modify the Home Assistant source code.
Zigpy Deconz Parser
zigpy-deconz-parser allow you to parse Home Assistant's ZHA component debug log using zigpy-deconz
library if you are using a deCONZ based adapter like ConBee or RaspBee.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file zigpy-0.23.1.tar.gz
.
File metadata
- Download URL: zigpy-0.23.1.tar.gz
- Upload date:
- Size: 82.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.3.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13f1d1c978ddad29ea2226ff78595f8ecb0d985fce4b19488608a29c48f04177 |
|
MD5 | 50b6ddd4570d1b8e3223bee2f59b5b9d |
|
BLAKE2b-256 | e4a2d7e0c12609fdf6fb4d28da8d1a545286fbf6245ff841ace7bc6deec6eb79 |
File details
Details for the file zigpy-0.23.1-py3-none-any.whl
.
File metadata
- Download URL: zigpy-0.23.1-py3-none-any.whl
- Upload date:
- Size: 105.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.3.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7536c2d4b3394330c0f506fa88440d1092eaf6d0d9720d78bccc02c27ab5fce3 |
|
MD5 | dd4cc7cb9da24e415722487b1668c434 |
|
BLAKE2b-256 | 6d762b0b17d828ee687026782249ef31afd7cb94edbf0934bfe66a5067a1f16a |