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.2.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.2.0
File Size Uploaded Provenance Actions
thermia_genesis-0.2.0.tar.gz 15.2 kB With provenance Details for thermia_genesis-0.2.0.tar.gz

Built distribution (wheel)

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

Total release size: 36.0 kB

Release files / thermia_genesis-0.2.0.tar.gz

Download URL thermia_genesis-0.2.0.tar.gz
Size 15.2 kB
Tags Source
SHA-256 checksum
How to use checksums
975914db048065f343297278bb24f3ec8b0e4fdfd43bc549e114f6157d6e4876
BLAKE2b-256 checksum
How to use checksums
7b855f029bc35414377e4b8d1690189b715e0a6b788a8f64547c015f351f0ae4
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.2.0-py3-none-any.whl

Download URL thermia_genesis-0.2.0-py3-none-any.whl
Size 20.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3f1e0b1c2c818e0ecdc4ef4dfaa97d8156adf8296279eccdc2ea6aaf620b5b70
BLAKE2b-256 checksum
How to use checksums
36277b30bb4c0b0cae9c1384f642545fa675109fcd55801918b1159c584575ce
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.2.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.2.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