pypck
LCN-PCK library
What it is and what it does
pypck is a Python async library that implements the LCN-PCK protocol to communicate with LCN (local control network) systems—a vendor-specific home automation platform. It abstracts the low-level protocol details into a connection manager and device objects, allowing you to control LCN modules (switches, dimmers, sensors) over a network connection. The library is actively maintained and used by Home Assistant's LCN integration.
To use pypck, you need an LCN-PCHK coupling software license and a hardware coupler device. The library provides async/await patterns for non-blocking control operations, making it suitable for integration into event-driven home automation systems. It has no external runtime dependencies beyond Python itself, keeping deployment simple.
Use it for:
- Integrate LCN home automation systems into Home Assistant or other Python-based home automation platforms
- Build custom control applications to remotely switch and dim LCN module outputs over the network
- Monitor and control LCN sensors and actuators from a Python application without blocking on I/O
- Automate lighting, heating, or other LCN-controlled devices via async event handlers
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
pypck is an asynchronous Python library for connecting to LCN (local control network) systems using the LCN-PCK protocol, enabling remote control of LCN modules.
Yes, if you own or manage an LCN system and need Python-based control. The library is actively maintained, has no external dependencies, and is proven in production use via Home Assistant. Requires Python 3.13+, an LCN-PCHK license, and a hardware coupler—verify those prerequisites before installing.
Install
pypck on PyPI
pip
pip install pypckuv
uv add pypckpoetry
poetry add pypckInstalling pypck
Before you install
Low install friction; pure Python wheel with no runtime dependencies. Active maintenance with recent release (44 days ago) and ongoing repository activity.
License in practice
MIT license permits unrestricted use, modification, and distribution with minimal restrictions—suitable for both commercial and open-source projects.
Quickstart
pip install pypck
import asyncio
from pypck.connection import PchkConnectionManager
from pypck.lcn_addr import LcnAddr
async def main():
async with PchkConnectionManager("192.168.2.41", 4114, username="lcn", password="lcn") as pck_client:
module = pck_client.get_device_connection(LcnAddr(0, 10, False))
await module.dim_output(0, 100, 0)
asyncio.run(main())
Requires Python 3.13+; also requires an LCN-PCHK coupling software license and hardware coupler to connect to an actual LCN system.
Verify before relying
- Whether the LCN-PCHK coupling software license and hardware coupler are freely available or require separate purchase
- Performance characteristics and scalability limits for controlling large numbers of LCN modules
- Whether the library supports all LCN-PCK protocol versions or specific versions only
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.13) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 44 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 78,317/month — #14,452 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pypck-0.9.14-py3-none-any.whl
Keywords: lcn, pck
Tags
More Home Automation packages
Represents and manipulates IPv4, IPv6, MAC…
permissive · top 5,000 on PyPI
homeassistantHome Assistant is an open-source home…
permissive · top 5,000 on PyPI
python-statemachineDefines finite state machines and statecharts…
permissive · top 5,000 on PyPI
btsocketA Python library for controlling BlueZ…
permissive · top 15,000 on PyPI
aiohomematicAn async Python library for controlling and…
permissive · top 15,000 on PyPI
hass-web-proxy-libProvides base classes and utilities for Home…
permissive · top 15,000 on PyPI
xknxXKNX is an asynchronous Python library for…
permissive · top 15,000 on PyPI
pysqueezeboxAsynchronous Python library to control Logitech…
permissive · top 15,000 on PyPI
pyotgwpyotgw is a Python library that communicates…
copyleft · top 15,000 on PyPI
python-ecobee-apiA Python library for communicating with Ecobee3…
permissive · top 15,000 on PyPI
aiohomekitAn asyncio-based HomeKit client library for…
permissive · top 15,000 on PyPI
directvAsynchronous Python client for controlling and…
permissive · top 15,000 on PyPI
pyisyPyISY is a Python library for asynchronous…
permissive · top 15,000 on PyPI
total-connect-clientA Python client library for authenticating with…
permissive · top 15,000 on PyPI