xknx
An Asynchronous Library for the KNX protocol. Documentation: https://xknx.io/
Decision gist · record as of 2026-08-14
Yes. XKNX is actively maintained, has no known vulnerabilities, installs with low friction, and is the standard library for KNX automation in Python. Install it if you need to control or monitor KNX devices from Python code or if you are extending Home Assistant's KNX support.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later; requires a KNX/IP gateway or tunneling interface on the network.
- Low friction installation with a pure-Python wheel and four lightweight runtime dependencies.
- Active maintenance with a recent release (4 days old) and steady repository activity.
License · maintenance · safety
MIT (permissive) — MIT license permits unrestricted use, modification, and distribution with minimal legal constraints.
last release 2026-08-10 (4 days) · last repo commit 2026-08-14 · 339 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 127,690 downloads/mo, #11,735 on PyPI
Alternatives
Verify before relying
pip install xknx
import asyncio
from xknx import XKNX
from xknx.devices import Light
async def main():
async with XKNX() as xknx:
light = Light(xknx, name="TestLight", group_address_switch="1/0/9")
xknx.devices.async_add(light)
await light.set_on()
asyncio.run(main())- Whether the library supports all KNX device types or only a subset (lights, switches, etc.)
- Performance characteristics under high-volume device communication
- Compatibility with specific KNX gateway hardware models
What it is and what it does
XKNX is an asynchronous Python library that implements the KNX protocol for home automation. It allows developers to programmatically control and monitor KNX devices—lights, switches, thermostats, and other hardware—over a KNX/IP network. The library is built on async/await patterns, making it suitable for integration into event-driven applications like Home Assistant.
The package depends on async_timeout, typing_extensions, cryptography, and ifaddr to handle network communication, type hints, encryption, and interface discovery. It requires Python 3.10 or later and is actively maintained with a production-stable status. The library is designed to abstract away KNX protocol complexity, exposing a device-oriented API where you instantiate objects representing physical KNX devices and call methods to control them.
Use it for
- Integrate KNX lighting control into a Python home automation system or dashboard
- Build scripts to automate KNX device state changes based on external triggers or schedules
- Monitor KNX device status and log state changes to a database or analytics platform
- Extend Home Assistant's KNX integration or develop a custom KNX management application
- Create a bridge between KNX networks and other smart home protocols or APIs
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
XKNX is actively maintained, has no known vulnerabilities, installs with low friction, and is the standard library for KNX automation in Python. Install it if you need to control or monitor KNX devices from Python code or if you are extending Home Assistant's KNX support.
Install
xknx on PyPI
Before you install
Low friction installation with a pure-Python wheel and four lightweight runtime dependencies. Active maintenance with a recent release (4 days old) and steady repository activity.
Requires Python 3.10 or later; requires a KNX/IP gateway or tunneling interface on the network.
License in practice
MIT license permits unrestricted use, modification, and distribution with minimal legal constraints.
Quickstart
pip install xknx
import asyncio
from xknx import XKNX
from xknx.devices import Light
async def main():
async with XKNX() as xknx:
light = Light(xknx, name="TestLight", group_address_switch="1/0/9")
xknx.devices.async_add(light)
await light.set_on()
asyncio.run(main())
Verify before relying
- Whether the library supports all KNX device types or only a subset (lights, switches, etc.)
- Performance characteristics under high-volume device communication
- Compatibility with specific KNX gateway hardware models
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.10.0 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 4 packagesasync_timeouttyping_extensionscryptographyifaddr |
| Maintenance | Actively maintained 4 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 127,690 / month, #11,735 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersProgramming Language :: Python :: 3Topic :: Home AutomationTopic :: System :: Hardware :: Hardware Drivers |
Evidence: xknx-3.19.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “KNX home automation library”
- xknxXKNX is an asynchronous Python library for communicating with KNX…
- xknxprojectExtracts and parses KNX project files (ETS 4, 5, and 6 formats,…
- knx-frontendProvides a web-based user interface panel for the KNX integration in…
Give your agent the search over MCP, or paste the wish link into any chat.
More Home Automation packages
Represents and manipulates IPv4, IPv6, MAC addresses and related network objects; supports CIDR notation, subnetting, set operations, IANA lookups, and DNS reverse generation.
Home Assistant is an open-source home automation platform that centralizes control of smart home devices and automations on a local server or Raspberry Pi, prioritizing local control and privacy over cloud dependency.
Defines finite state machines and statecharts with a declarative Python API, supporting flat states, compound hierarchies, parallel regions, history states, guards, and both sync and async callbacks.
Install it if you need to model workflows, control logic, or any system with discrete states and event-driven transitions — from simple state machines to complex…
A Python library for controlling BlueZ Bluetooth adapters on Linux via the Management API, supporting both synchronous and event-driven command patterns.
An async Python library for controlling and monitoring Homematic and HomematicIP devices through multiple backend systems (CCU3, OpenCCU, Homegear, CUxD, CCU-Jack) using XML-RPC and JSON-RPC protocols.
Install it if you need to control Homematic devices from Python; the only constraint is a requirement for Python 3.14 or later and network access to a compatible…
Provides base classes and utilities for Home Assistant integrations to proxy HTTP and WebSocket traffic through Home Assistant's web server.
Install only if you are building a custom Home Assistant integration; it is not useful as a standalone package.
See also knx-frontend · pypck · xknxproject · pyControl4 · aiohue · aioqsw · python-ecobee-api · aiohomekit · elkm1-lib