$npx skillfedfor your agent

xknx

An Asynchronous Library for the KNX protocol. Documentation: https://xknx.io/

Worth itPyPI Home AutomationReleased Aug 2026127.7K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — xknx-3.19.0-py3-none-any.whl
v3.19.0 · released 2026-08-10 · Python >=3.10.0 · 4 runtime deps: async_timeout, typing_extensions, cryptography, ifaddr

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

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
Same gist for agents: .md · .json

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.

Worth 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

LicenseMIT permissive
Python supportSupports the current Python release >=3.10.0
Install frictionLow. Pure-Python wheel
Runtime dependencies
4 packages
async_timeouttyping_extensionscryptographyifaddr
MaintenanceActively maintained 4 days since the last release
Last repo commit
First released
Downloads127,690 / month, #11,735 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone 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

Capabilities
KNX home automation libraryKNX/IP protocol Pythonasync KNX device controlhome assistant KNX integrationEIB protocol librarysmart home KNX communication
Topics
home-automationknx-protocolasync-io
PyPI keywords
KNXEIBHome Assistanthome automation

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

netaddr Worth it
PyPI · Software Development · released May 2024

Represents and manipulates IPv4, IPv6, MAC addresses and related network objects; supports CIDR notation, subnetting, set operations, IANA lookups, and DNS reverse generation.

BSD-3-Clausepure Python · 3.7+dormant
14.0Mdownloads / mo
homeassistant Worth it
PyPI · Home Automation · released Aug 2026

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.

Apache-2.0pure Python · 3.14.2+
2.1Mdownloads / mo
python-statemachine Worth it
PyPI · Libraries · released Aug 2026

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…

MITpure Python · 3.10+
1.3Mdownloads / mo
btsocket With conditions
PyPI · Home Automation · released Jun 2024

A Python library for controlling BlueZ Bluetooth adapters on Linux via the Management API, supporting both synchronous and event-driven command patterns.

MITpure Pythonaging
625.5Kdownloads / mo
aiohomematic Worth it
PyPI · Python Modules · released Aug 2026

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…

MITpure Python · 3.14+
621.2Kdownloads / mo
hass-web-proxy-lib With conditions
PyPI · Home Automation · released May 2026

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.

MITpure Python
606.7Kdownloads / mo

See also knx-frontend · pypck · xknxproject · pyControl4 · aiohue · aioqsw · python-ecobee-api · aiohomekit · elkm1-lib