Skip to main content

zigpy

Build Coverage Status

zigpy is a hardware independent Zigbee protocol stack integration project to implement Zigbee standard specifications as a Python 3 library.

Zigbee integration via zigpy allows you to connect one of many off-the-shelf Zigbee Coordinator 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), lights, switches, buttons, covers, fans, climate control equipment, locks, and intruder alarm system devices.

Zigbee stacks and hardware from many different hardware chip manufacturers are supported via radio libraries which translate their proprietary communication protocol into a common API which is shared among all radio libraries for zigpy. If some Zigbee stack or Zigbee Coordinator hardware for other manufacturers is not supported by yet zigpy it is possible for any independent developer to step-up and develop a new radio library for zigpy which translates its proprietary communication protocol into the common API that zigpy can understand.

zigpy contains common code implementing ZCL (Zigbee Cluster Library) and ZDO (Zigbee Device Object) 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.

The ZHA integration component for Home Assistant, the Zigbee Plugin for Domoticz, and the Zigbee Plugin for Jeedom (competing open-source home automation software) are all using zigpy libraries as dependencies, as such they could be used as references of different implementations if looking to integrate a Zigbee solution into your application.

Zigpy - A library from the Open Home Foundation

Zigbee device OTA updates

zigpy have ability to download and perform Zigbee OTAU (Over-The-Air Updates) of Zigbee devices firmware. The Zigbee OTA update firmware image files should conform to standard Zigbee OTA format and OTA provider source URLs need to be published for public availability. Updates from a local OTA update directory also is also supported and can be used as an option for offline firmware updates if user provide correct Zigbee OTA formatted firmware files themselves.

Support for automatic download from existing online OTA providers in zigpy OTA provider code is currently only available for IKEA, Inovelli, LEDVANCE/OSRAM, SONOFF/ITEAD, and ThirdReality (3reality) devices. Support for additional OTA providers for other manufacturers devices could be added to zigpy in the future, if device manufacturers publish their firmware images publicly and developers contribute the needed download code for them.

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, testing new releases, troubleshooting and bug-reporting as, as well as library + code instructions for developers and more. This file also contain short summaries and links to other related projects that directly or indirectly depends in zigpy libraries.

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 Zigbee coordinator hardware

Radio libraries for zigpy are separate projects with their own repositories and include bellows (for communicating with Silicon Labs EmberZNet based radios), zigpy-deconz (for communicating with deCONZ based radios from Dresden Elektronik), and zigpy-xbee (for communicating with XBee based Zigbee radios), zigpy-zigate for communicating with ZiGate based radios, zigpy-znp or zigpy-cc for communicating with Texas Instruments based radios that have Z-Stack ZNP coordinator firmware.

Note! zigpy supports Zigbee 3.0, but your Zigbee coordinator hardware and its firmware must also support it. Some Zigbee coordinator hardware can support Zigbee 3.0 but might ship with older firmware that does not, in which case you may want to upgrade the firmware yourself. Other Zigbee coordinator hardware may not support Zigbee 3.0 capable firmware at all, but can still be fully functional for all your other needs (this is common, as most Zigbee devices are backwards-compatible with older Zigbee profiles that are supported by almost all Zigbee coordinator hardware and firmware). Also, if you need direct Zigbee Green Power (ZGP) support, so that ZGP devices such as batteryless switches and buttons can connect directly to the Zigbee coordinator instead of through a ZGP proxy (which many Zigbee router devices and zigpy radio libraries support), be aware that direct ZGP is not supported by all zigpy radio libraries and Zigbee stacks.

Compatible zigpy radio libraries

  • Ziggurat (fully open-source host-side Zigbee-stack implemented in Rust) via zigpy-ziggurat library for zigpy.
  • Silicon Labs (EmberZNet) based Zigbee radios using the EZSP protocol via the bellows library for zigpy.
  • Texas Instruments based Zigbee radios with all compatible Z-Stack firmware via the zigpy-znp library for zigpy.
  • dresden elektronik deCONZ based Zigbee radios via the zigpy-deconz library for zigpy.
  • Digi XBee based Zigbee radios via the zigpy-xbee library for zigpy.
  • ZiGate based Zigbee radios via the zigpy-zigate library for zigpy.

Legacy or obsolete zigpy radio libraries

  • Texas Instruments with Z-Stack legacy firmware via the zigpy-cc library for zigpy.

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

Metadata

Release files for zigpy 2.5.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for zigpy 2.5.1
File Size Uploaded Provenance Actions
zigpy-2.5.1.tar.gz 434.1 kB Without provenance Details for zigpy-2.5.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for zigpy 2.5.1
File Interpreter ABI Platform Actions
zigpy-2.5.1-py3-none-any.whl Python 3 none any Details for zigpy-2.5.1-py3-none-any.whl

Total release size: 747.5 kB

Release files / zigpy-2.5.1.tar.gz

Download URL zigpy-2.5.1.tar.gz
Size 434.1 kB
Tags Source
SHA-256 checksum
How to use checksums
5d12ce103b462ee37878dd7210ffd17d86dccc5b4369b8c6704dfa290c0bfab9
BLAKE2b-256 checksum
How to use checksums
6ee3467743c48c3c5daabc7857806405015478c3801dc44e11f8554f65f9e63c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / zigpy-2.5.1-py3-none-any.whl

Download URL zigpy-2.5.1-py3-none-any.whl
Size 313.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7047b9d57145084120d92ef920db28e779908d10f6bcf70e0e8d3801995e027f
BLAKE2b-256 checksum
How to use checksums
cd47af96a9a2901e92d4902975fbef5560b6fb212fcb55feae20b59f20941101
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for zigpy 2.5.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.5.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page