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.1.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.1.0
File Size Uploaded Provenance Actions
thermia_genesis-0.1.0.tar.gz 13.9 kB With provenance Details for thermia_genesis-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 33.2 kB

Release files / thermia_genesis-0.1.0.tar.gz

Download URL thermia_genesis-0.1.0.tar.gz
Size 13.9 kB
Tags Source
SHA-256 checksum
How to use checksums
7a9f496104241dc30bd95446e00ca6bf06bafa374353dfe5900bd8dda7510f96
BLAKE2b-256 checksum
How to use checksums
3026f2de289b1a1d9c933df8753b10f820b0d77ba8a426b98984d6e03b5ec9d7
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.1.0-py3-none-any.whl

Download URL thermia_genesis-0.1.0-py3-none-any.whl
Size 19.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c2ec6ab234f09e433d307f7e6f98a2bf3ebeea71ef738ed98fa3a6a63ae47e43
BLAKE2b-256 checksum
How to use checksums
3e369c241fcfb920f168508b6501c2d1a18c95361b94e0d29e762c0ecc5f312e
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.1.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.1.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