Skip to main content

thermia-genesis

CI PyPI Python versions OpenSSF Scorecard License: MIT Coverage: 100% uv Ruff Checked with mypy Conventional Commits

Async Python library for Thermia heat pumps on the Genesis platform (Atlas, Calibra, Calibra E, Calibra Cool, Calibra RXT, Diplomat Inverter), using Modbus via modbus-connection.

Status: early development. Only Genesis firmware 17.1 is targeted.

This library powers the Thermia Genesis Home Assistant integration.

Installation

pip install "thermia-genesis[tmodbus]"

Usage

import asyncio

from modbus_connection import ModbusTcpParams
from modbus_connection.tmodbus import ModbusConnection

from thermia_genesis import ThermiaGenesis


async def main() -> None:
    connection = ModbusConnection(ModbusTcpParams(host="192.0.2.10"), timeout=5)
    await connection.connect()
    try:
        # On Modbus TCP the Genesis controller ignores the unit id.
        pump = ThermiaGenesis(connection.for_unit(1))
        report = await pump.async_update()
        print(report.complete, pump.firmware_version, pump.heat_pump.outdoor_temperature)
    finally:
        await connection.close()


asyncio.run(main())

The library only reads; it never writes to the pump.

Dump a pump

thermia-genesis dump reads every register the pump has and writes JSON: the firmware, the optional parts it found, the raw registers and the decoded values. Attach it to a bug report.

thermia-genesis dump 192.0.2.10 --output pump.json

Development

Changes are made in git worktrees under .worktrees/, and the tools run in the repository's devcontainer:

git config worktree.useRelativePaths true
git worktree add .worktrees/my-change -b my-change origin/main
devcontainer up --workspace-folder .
devcontainer exec --workspace-folder . uv run --directory .worktrees/my-change pytest

See AGENTS.md for the workflow and docs/design.md for the design.

Disclaimer

Not affiliated with Thermia AB. Controlling a heat pump remotely is at your own risk.

License

MIT

Metadata

Release files for thermia-genesis 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for thermia-genesis 0.3.0
File Size Uploaded Provenance Actions
thermia_genesis-0.3.0.tar.gz 16.0 kB With provenance Details for thermia_genesis-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for thermia-genesis 0.3.0
File Interpreter ABI Platform Actions
thermia_genesis-0.3.0-py3-none-any.whl Python 3 none any Details for thermia_genesis-0.3.0-py3-none-any.whl

Total release size: 38.0 kB

Release files / thermia_genesis-0.3.0.tar.gz

Download URL thermia_genesis-0.3.0.tar.gz
Size 16.0 kB
Tags Source
SHA-256 checksum
How to use checksums
670ae728fc4efde1c3a451fe74c4e32b681815d254812adc88e76975b4a66e1a
BLAKE2b-256 checksum
How to use checksums
961bcf1a1642916f12f736b11a8d812817dbc3008a4d1f80ff636410486cd198
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 25, 2026.

Transparency log

Release files / thermia_genesis-0.3.0-py3-none-any.whl

Download URL thermia_genesis-0.3.0-py3-none-any.whl
Size 22.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a4d3a6566e8b488a4efb9cbbb9087e6cc2a2670354a40317dd2753fd508737ba
BLAKE2b-256 checksum
How to use checksums
bf7c692629ac11d268977caab8cd3c818fa7948755f788d451019b5402774b8c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 25, 2026.

Transparency log

Security for thermia-genesis 0.3.0

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.

Select from 2 files

Attestation for thermia_genesis-0.3.0.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 Oct 25, 2026.

Transparency log

A 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.

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