aiohomematic
A modern, async Python library for controlling and monitoring Homematic and HomematicIP devices. Powers the Home Assistant integration "Homematic(IP) Local". Some third-party devices/gateways (e.g., Bosch, Intertechno) may be supported as well.
This project is the modern successor to pyhomematic, focusing on automatic entity creation, fewer manual device definitions, and faster startups.
Key Features
- Automatic entity discovery from device/channel parameters
- Extensible via custom entity classes for complex devices (thermostats, lights, covers, locks, sirens)
- Fast startups through caching of paramsets
- Robust operation with automatic reconnection after CCU restarts
- Fully typed with strict mypy compliance
- Async/await based on asyncio
How It Works
Unlike pyhomematic, which required manual device mappings, aiohomematic automatically creates entities for each relevant parameter on every device channel (unless blacklisted). To achieve this it:
- Fetches and caches device paramsets (VALUES) for fast successive startups
- Provides hooks for custom entity classes where complex behavior is needed
- Includes helpers for robust operation, such as automatic reconnection after CCU restarts
Requirements
Python
- Python 3.13 or higher
CCU Firmware
Due to a bug in earlier CCU2/CCU3 firmware, aiohomematic requires at least the following versions when used with HomematicIP devices:
| Platform | Minimum Version |
|---|---|
| CCU2 | 2.53.27 |
| CCU3 | 3.53.26 |
See details: OpenCCU Issue #843
Installation
For Home Assistant Users
Use the Home Assistant custom integration "Homematic(IP) Local", which is powered by aiohomematic:
-
Prerequisites
- Latest version of Home Assistant
- A CCU3, OpenCCU, or Homegear instance reachable from Home Assistant
- For HomematicIP devices, ensure CCU firmware meets the minimum versions listed above
-
Install the integration
- Add the custom repository: https://github.com/sukramj/homematicip_local
- Follow the installation guide
-
Configure via Home Assistant UI
- Settings → Devices & Services → Add Integration → "Homematic(IP) Local"
- Enter CCU/Homegear host (IP or hostname)
- Enable TLS if using HTTPS (skip verification for self-signed certificates)
- Enter credentials
- Choose interfaces: HM (2001), HmIP (2010), Virtual (9292)
-
Network callbacks
- Ensure Home Assistant is reachable from the CCU (no NAT/firewall blocking)
New to Homematic? See the Glossary for definitions of terms like Backend, Interface, Device, Channel.
For Developers
pip install aiohomematic
Or install from source:
git clone https://github.com/sukramj/aiohomematic.git
cd aiohomematic
pip install -r requirements.txt
Quick Start
from aiohomematic.central import CentralConfig
from aiohomematic.client import InterfaceConfig, Interface
config = CentralConfig(
central_id="ccu-main",
host="ccu.local",
username="admin",
password="secret",
default_callback_port=43439,
interface_configs={
InterfaceConfig(interface=Interface.HMIP, port=2010, enabled=True)
},
)
central = config.create_central()
await central.start()
# Access devices
for device in central.devices:
print(f"{device.name}: {device.device_address}")
await central.stop()
Public API
The public API is explicitly defined via __all__ in each module:
| Module | Contents |
|---|---|
aiohomematic.central |
CentralUnit, CentralConfig and related schemas |
aiohomematic.client |
Client, InterfaceConfig, Interface |
aiohomematic.model |
Device/channel/data point abstractions |
aiohomematic.exceptions |
Library exception types |
aiohomematic.const |
Constants and enums |
Import from specific submodules for stable imports:
from aiohomematic.central import CentralConfig, CentralUnit
from aiohomematic.client import InterfaceConfig, Interface
from aiohomematic.exceptions import ClientException
Documentation
For Users
- Changelog - Release history and latest changes
- Calculated data points - Derived metrics
- Naming conventions - How names are created
- Input select helper - Using input select helpers
- Troubleshooting - Common issues and debugging
- Unignore mechanism - Unignoring default-ignored devices
For Developers
- Architecture overview - Library architecture
- Data flow - How data flows through the library
- Extension points - Adding custom device profiles
- Home Assistant lifecycle - Integration internals
- Sequence diagrams - Interaction flows
- RSSI fix - RSSI value handling
Contributing
Contributions are welcome! Please read our Contributing Guide for details on:
- Development environment setup
- Code standards and type annotations
- Pull request process
- Testing guidelines
See CLAUDE.md for comprehensive development guidelines.
Related Projects
- Homematic(IP) Local - Home Assistant integration
License
This project is licensed under the MIT License - see the LICENSE.md file for details.
Support
If you find this project useful, consider sponsoring the development.
Metadata
Release files for aiohomematic 2025.12.44
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| aiohomematic-2025.12.44.tar.gz | 388.8 kB | With provenance | Details for aiohomematic-2025.12.44.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aiohomematic-2025.12.44-py3-none-any.whl | Python 3 | none | any | Details for aiohomematic-2025.12.44-py3-none-any.whl |
Total release size: 843.8 kB
Release files / aiohomematic-2025.12.44.tar.gz
| Download URL | aiohomematic-2025.12.44.tar.gz |
|---|---|
| Size | 388.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
012e607fd1dd7a41bb6b92307da5a2989cea50da9a0d28bd963521c2ea3c9c2f
|
|
BLAKE2b-256 checksum How to use checksums |
f56e4c1d1901c7828172aab91723177963fd5c3eb914ecca0f6d8555e68d18a5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 23, 2025.
Transparency logRelease files / aiohomematic-2025.12.44-py3-none-any.whl
| Download URL | aiohomematic-2025.12.44-py3-none-any.whl |
|---|---|
| Size | 455.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5a90a53df72b4af34af40972d66e2acdb1299c68b2a03fc0686b82c80f756139
|
|
BLAKE2b-256 checksum How to use checksums |
542044b4dcb6aa4d02d363265ccc65d012ab86d2d9c91c0c98ea8dc8bc5d1f74
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 23, 2025.
Transparency logSecurity for aiohomematic 2025.12.44
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for aiohomematic-2025.12.44.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 23, 2025.
Transparency logA 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.