Skip to main content

releasebadge License GitHub Sponsors

AIO Homematic (hahomematic)

A lightweight Python 3 library that powers Home Assistant integrations for controlling and monitoring Homematic and HomematicIP devices. 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.

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 (e.g., thermostats, lights, covers, climate, locks, sirens).
  • Includes helpers for robust operation, such as automatic reconnection after CCU restarts.

Key features

  • Automatic entity discovery from device/channel parameters.
  • Extensible via custom entity classes for complex devices.
  • Caching of paramsets to speed up restarts.
  • Designed to integrate with Home Assistant.

Quickstart for Home Assistant

Use the Home Assistant custom integration "Homematic(IP) Local", which is powered by aiohomematic.

  1. Prerequisites
    • Use 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 below.
  2. Install the integration
  3. Configure via Home Assistant UI
    • In Home Assistant: Settings → Devices & Services → Add Integration → search for "Homematic(IP) Local".
    • Enter the CCU/Homegear host (IP or hostname). If you use HTTPS on the CCU, enable TLS and don't use verify if self‑signed.
    • Always enter credentials.
    • Choose which interfaces to enable (HM, HmIP, Virtual). Default ports are typically 2001 (HM), 2010 (HmIP), 9292 (Virtual).
  4. Network callbacks
    • The integration needs to receive XML‑RPC callbacks from the CCU. Make sure Home Assistant is reachable from the CCU (no NAT/firewall blocking). Callbacks are only required for special network setups.
  5. Verify
    • After setup, devices should appear under Devices & Services → Homematic(IP) Local. Discovery may take a few seconds after the first connection while paramsets are fetched and cached for faster restarts.

If you need to use aiohomematic directly in Python, see the Public API and example below.

Requirements

Due to a bug in earlier CCU2/CCU3 firmware, aiohomematic requires at least the following versions when used with HomematicIP devices:

  • CCU2: 2.53.27
  • CCU3: 3.53.26

See details here: https://github.com/OpenCCU/OpenCCU/issues/843. Other CCU‑like platforms using the buggy HmIPServer version are not supported.

Public API and imports

  • The public API of aiohomematic is explicitly defined via all in each module and subpackage.
  • Backwards‑compatible imports should target these modules:
    • aiohomematic.central: CentralUnit, CentralConfig and related schemas
    • aiohomematic.central.event: display received events from the backend
    • aiohomematic.client: Client, InterfaceConfig, create_client, get_client
    • aiohomematic.model: device/data point abstractions (see subpackages for details)
    • aiohomematic.exceptions: library exception types intended for consumers
    • aiohomematic.const: constants and enums (stable subset; see module all)
    • aiohomematic.performance: display some performance metrics (enabled when DEBUG is enabled)
  • The top‑level package only exposes version to avoid import cycles and keep startup lean. Prefer importing from the specific submodules listed above.

Example:

from aiohomematic.central import CentralConfig
from aiohomematic import client as hmcl

cfg = CentralConfig(
    central_id="ccu-main",
    host="ccu.local",
    username="admin",
    password="secret",
    default_callback_port=43439,
    interface_configs={hmcl.InterfaceConfig(interface=hmcl.Interface.HMIP, port=2010, enabled=True)},
)
central = cfg.create_central()

Useful links

  • Changelog: see for release history and latest changes.
  • Definition of calculated data points: see
  • Naming: see for how device, channel and data point names are created.
  • Homematic(IP) Local integration: https://github.com/sukramj/homematicip_local
  • Input select helper: see for an overview of how to use the input select helper.
  • Troubleshooting with Home Assistant: see for common issues and how to debug them.
  • Unignore mechanism: see for how to unignore devices that are ignored by default.

Useful developer links

  • Architecture overview: see for an overview of the architecture of the library.
  • Data flow: see for an overview of how data flows through the library.
  • Extending the model: see for adding custom device profiles and calculated data points.
  • Home Assistant lifecycle (discovery, updates, teardown): see for details on how the integration works and how to debug issues.
  • RSSI fix: see for how RSSI values are fixed for Home Assistant.
  • Sequence diagrams: see for a sequence diagram of how the library works.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aiohomematic-2025.9.8.tar.gz (211.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aiohomematic-2025.9.8-py3-none-any.whl (214.4 kB view details)

Uploaded Python 3

File details

Details for the file aiohomematic-2025.9.8.tar.gz.

File metadata

  • Download URL: aiohomematic-2025.9.8.tar.gz
  • Upload date:
  • Size: 211.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for aiohomematic-2025.9.8.tar.gz
Algorithm Hash digest
SHA256 8a6256de62b4fe86f89265ea60d95996ba6cb9b1bb366913f65eb816b98287f4
MD5 48b0ec52cc5ec5152f70b2776cc9b2c3
BLAKE2b-256 b8f20fee2424cb921b05533231b3741a0a4d00299473c6ad2b013ca26a1be33f

See more details on using hashes here.

Provenance

The following attestation bundles were made for aiohomematic-2025.9.8.tar.gz:

Publisher: python-publish.yml on SukramJ/aiohomematic

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aiohomematic-2025.9.8-py3-none-any.whl.

File metadata

  • Download URL: aiohomematic-2025.9.8-py3-none-any.whl
  • Upload date:
  • Size: 214.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for aiohomematic-2025.9.8-py3-none-any.whl
Algorithm Hash digest
SHA256 7660f6cf4356ad85de0e5096fc0ee063b45c0dbc83febcb4ea7aaa5c9126a297
MD5 7f2e9a0b26941e1b4c1504f0e04ac9b1
BLAKE2b-256 06dc2570533ccc93c00ade990080bb8e3faacf1b56829e57511ba18cb8877cff

See more details on using hashes here.

Provenance

The following attestation bundles were made for aiohomematic-2025.9.8-py3-none-any.whl:

Publisher: python-publish.yml on SukramJ/aiohomematic

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

2026.9.1

2 files

2026.8.8

2 files

2026.8.7

2 files

2026.8.6

2 files

2026.8.5

2 files

2026.8.4

2 files

2026.8.3

2 files

2026.8.2

2 files

2026.8.1

2 files

2026.8.0

2 files

2026.7.11

2 files

2026.7.10

2 files

2026.7.9

2 files

2026.7.7

2 files

2026.7.6

2 files

2026.7.5

2 files

2026.7.4

2 files

2026.7.3

2 files

2026.7.2

2 files

2026.7.1

2 files

2026.6.9

2 files

2026.6.8

2 files

2026.6.7

2 files

2026.6.6

2 files

2026.6.5

2 files

2026.6.4

2 files

2026.6.3

2 files

2026.6.2

2 files

2026.6.1

2 files

2026.6.0

2 files

2026.5.11

2 files

2026.5.10

2 files

2026.5.9

2 files

2026.5.8

2 files

2026.5.7

2 files

2026.5.6

2 files

2026.5.5

2 files

2026.5.4

2 files

2026.5.3

2 files

2026.5.2

2 files

2026.5.1

2 files

2026.5.0

2 files

2026.4.20

2 files

2026.4.19

2 files

2026.4.18

2 files

2026.4.17

2 files

2026.4.16

2 files

2026.4.15

2 files

2026.4.14

2 files

2026.4.13

2 files

2026.4.12

2 files

2026.4.11

2 files

2026.4.10

2 files

2026.4.9

2 files

2026.4.8

2 files

2026.4.7

2 files

2026.4.6

2 files

2026.4.5

2 files

2026.4.4

2 files

2026.4.3

2 files

2026.4.2

2 files

2026.4.1

2 files

2026.4.0

2 files

2026.3.23

2 files

2026.3.22

2 files

2026.3.21

2 files

2026.3.20

2 files

2026.3.19

2 files

2026.3.18

2 files

2026.3.17

2 files

2026.3.16

2 files

2026.3.15

2 files

2026.3.14

2 files

2026.3.13

2 files

2026.3.12

2 files

2026.3.11

2 files

2026.3.10

2 files

2026.3.9

2 files

2026.3.8

2 files

2026.3.7

2 files

2026.3.6

2 files

2026.3.5

2 files

2026.3.4

2 files

2026.3.3

2 files

2026.3.2

2 files

2026.3.1

2 files

2026.3.0

2 files

2026.2.32

2 files

2026.2.31

2 files

2026.2.30

2 files

2026.2.29

2 files

2026.2.28

2 files

2026.2.27

2 files

2026.2.26

2 files

2026.2.25

2 files

2026.2.24

2 files

2026.2.23

2 files

2026.2.22

2 files

2026.2.21

2 files

2026.2.20

2 files

2026.2.19

2 files

2026.2.18

2 files

2026.2.17

2 files

2026.2.16

2 files

2026.2.15

2 files

2026.2.14

2 files

2026.2.13

2 files

2026.2.12

2 files

2026.2.11

2 files

2026.2.10

2 files

2026.2.9

2 files

2026.2.8

2 files

2026.2.7

2 files

2026.2.6

2 files

2026.2.5

2 files

2026.2.4

2 files

2026.2.3

2 files

2026.2.2

2 files

2026.2.1

2 files

2026.2.0

2 files

2026.1.57

2 files

2026.1.56

2 files

2026.1.55

2 files

2026.1.54

2 files

2026.1.53

2 files

2026.1.52

2 files

2026.1.51

2 files

2026.1.50

2 files

2026.1.49

2 files

2026.1.48

2 files

2026.1.47

2 files

2026.1.46

2 files

2026.1.45

2 files

2026.1.44

2 files

2026.1.43

2 files

2026.1.42

2 files

2026.1.41

2 files

2026.1.40

2 files

2026.1.39

2 files

2026.1.38

2 files

2026.1.37

2 files

2026.1.36

2 files

2026.1.35

2 files

2026.1.34

2 files

2026.1.33

2 files

2026.1.32

2 files

2026.1.31

2 files

2026.1.30

2 files

2026.1.29

2 files

2026.1.28

2 files

2026.1.27

2 files

2026.1.26

2 files

2026.1.25

2 files

2026.1.24

2 files

2026.1.23

2 files

2026.1.22

2 files

2026.1.21

2 files

2026.1.20

2 files

2026.1.19

2 files

2026.1.18

2 files

2026.1.17

2 files

2026.1.16

2 files

2026.1.15

2 files

2026.1.14

2 files

2026.1.13

2 files

2026.1.12

2 files

2026.1.11

2 files

2026.1.10

2 files

2026.1.9

2 files

2026.1.8

2 files

2026.1.7

2 files

2026.1.6

2 files

2026.1.5

2 files

2026.1.4

2 files

2026.1.3

2 files

2026.1.2

2 files

2026.1.1

2 files

2026.1.0

2 files

2025.12.55

2 files

2025.12.54

2 files

2025.12.53

2 files

2025.12.52

2 files

2025.12.51

2 files

2025.12.50

2 files

2025.12.49

2 files

2025.12.48

2 files

2025.12.47

2 files

2025.12.46

2 files

2025.12.45

2 files

2025.12.44

2 files

2025.12.43

2 files

2025.12.42

2 files

2025.12.41

2 files

2025.12.40

2 files

2025.12.38

2 files

2025.12.37

2 files

2025.12.36

2 files

2025.12.35

2 files

2025.12.34

2 files

2025.12.33

2 files

2025.12.32

2 files

2025.12.31

2 files

2025.12.30

2 files

2025.12.29

2 files

2025.12.28

2 files

2025.12.27

2 files

2025.12.26

2 files

2025.12.25

2 files

2025.12.24

2 files

2025.12.23

2 files

2025.12.22

2 files

2025.12.21

2 files

2025.12.20

2 files

2025.12.19

2 files

2025.12.18

2 files

2025.12.17

2 files

2025.12.16

2 files

2025.12.15

2 files

2025.12.14

2 files

2025.12.13

2 files

2025.12.12

2 files

2025.12.11

2 files

2025.12.10

2 files

2025.12.9

2 files

2025.12.8

2 files

2025.12.7

2 files

2025.12.6

2 files

2025.12.5

2 files

2025.12.4

2 files

2025.12.3

2 files

2025.12.2

2 files

2025.12.1

2 files

2025.12.0

2 files

2025.11.30

2 files

2025.11.29

2 files

2025.11.28

2 files

2025.11.27

2 files

2025.11.26

2 files

2025.11.25

2 files

2025.11.24

2 files

2025.11.23

2 files

2025.11.22

2 files

2025.11.21

2 files

2025.11.20

2 files

2025.11.19

2 files

2025.11.18

2 files

2025.11.17

2 files

2025.11.16

2 files

2025.11.15

2 files

2025.11.14

2 files

2025.11.13

2 files

2025.11.12

2 files

2025.11.11

2 files

2025.11.10

2 files

2025.11.9

2 files

2025.11.8

2 files

2025.11.7

2 files

2025.11.6

2 files

2025.11.5

2 files

2025.11.4

2 files

2025.11.3

2 files

2025.11.2

2 files

2025.11.0

2 files

2025.10.26

2 files

2025.10.25

2 files

2025.10.24

2 files

2025.10.22

2 files

2025.10.21

2 files

2025.10.20

2 files

2025.10.19

2 files

2025.10.18

2 files

2025.10.17

2 files

2025.10.16

2 files

2025.10.15

2 files

2025.10.14

2 files

2025.10.10

2 files

2025.10.9

2 files

2025.10.8

2 files

2025.10.7

2 files

2025.10.6

2 files

2025.10.5

2 files

2025.10.4

2 files

2025.10.3

2 files

2025.10.2

2 files

2025.10.1

2 files

2025.10.0

2 files

This release

2025.9.8 This release

2 files

2025.9.7

2 files

2025.9.6

2 files

2025.9.5

2 files

2025.9.4

2 files

2025.9.3

2 files

2025.9.2

2 files

2025.9.1

2 files

2025.8.10

2 files

2025.8.9

2 files

2025.8.8

2 files

2025.8.7

2 files

2025.8.6

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page