skillfed

pydeconz

Python library for communicating with deCONZ REST-API

pydeconz v120 77.2K downloads/30d#14,546 on PyPI47
Permissive license MIT Active released

What it is and what it does

pydeconz is a Python wrapper around the deCONZ REST API that enables programmatic control and monitoring of Zigbee devices connected through deCONZ gateways. It is designed primarily for Home Assistant integration but can be used in any Python application that needs to communicate with deCONZ-compatible Zigbee networks. The library handles authentication via host address and API key, abstracts the REST API details, and provides async-first communication using aiohttp.

The package requires Python 3.12.0 or later and uses orjson for efficient JSON handling. It has been actively maintained since 2017-11-03 and is classified as production-stable. Installation is straightforward with minimal dependencies, making it suitable for embedded systems running Home Assistant or other home automation platforms.

Use it for:

  • Integrate Zigbee devices into Home Assistant via deCONZ gateway without manual REST API calls
  • Build custom home automation scripts that control Zigbee lights, switches, and sensors through deCONZ
  • Monitor Zigbee device state and receive updates asynchronously in Python applications
  • Automate Zigbee device management tasks in headless or containerized environments

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Python library that wraps the deCONZ REST API to communicate with Zigbee devices and gateways supported by deCONZ, primarily for Home Assistant integration.

Yes, if you have a deCONZ gateway and need Python integration. The package is actively maintained, production-stable, has low install friction, carries a permissive MIT license, and has no known vulnerabilities. The requirement for Python 3.12.0 or later is a constraint but aligns with current Python versions. Verify that your deCONZ hardware and API setup are in place before installing.

Install

pydeconz on PyPI

pip

pip install pydeconz

uv

uv add pydeconz

poetry

poetry add pydeconz

Installing pydeconz

Before you install

Low install friction with only two runtime dependencies (aiohttp and orjson). The package is actively maintained with a recent commit on 2026-08-14 and has been in production use since its first release in 2017-11-03.

License in practice

MIT license is permissive, allowing use in commercial and private projects with minimal restrictions—only requiring attribution and including a copy of the license.

Quickstart

pip install pydeconz

import asyncio
from pydeconz import DeconzSession
import aiohttp

async def main():
    async with aiohttp.ClientSession() as session:
        deconz = DeconzSession(session, host='gateway', apikey='key')
        await deconz.get_state()

asyncio.run(main())

Requires Python 3.12.0 or later and an active deCONZ gateway with a valid API key.

Verify before relying

  • Whether the library supports all device types currently supported by deCONZ or only a subset
  • Performance characteristics when managing large numbers of Zigbee devices
  • Specific Home Assistant version compatibility requirements

Package facts

License MIT (permissive)
Python support supports the current Python release (>=3.12.0)
Install friction low — pure-Python wheel
Runtime dependencies 2 — aiohttp, orjson
Maintenance actively maintained — 509 days since the last release
Last repo commit
First released
Downloads 77,213/month — #14,546 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: pydeconz-120-py3-none-any.whl

Keywords: deconz, zigbee, homeassistant

Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3.12Topic :: Home Automation

Tags

deconz rest api pythonzigbee device control libraryhome automation deconzzigbee gateway integrationdeconz python wrapper
zigbeehome-automationasync-api

More Home Automation packages