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())

A few settings can be written; the pump applies them on its own terms and the next update reads back what it accepted:

from thermia_genesis.v17_1.heat import Heat

await pump.heat.write(Heat.comfort_wheel_setting, 21.5)

Heat.comfort_wheel_setting.writable tells whether a field can be written. Writing a setting changes how the pump runs; only write what you understand.

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.4.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.4.0
File Size Uploaded Provenance Actions
thermia_genesis-0.4.0.tar.gz 17.3 kB With provenance Details for thermia_genesis-0.4.0.tar.gz

Built distribution (wheel)

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

Total release size: 40.8 kB

Release files / thermia_genesis-0.4.0.tar.gz

Download URL thermia_genesis-0.4.0.tar.gz
Size 17.3 kB
Tags Source
SHA-256 checksum
How to use checksums
c5b514d4453f406555550f658f75c5bf1b339f229cacc641be114b0b8a7ac63d
BLAKE2b-256 checksum
How to use checksums
4de0eaf112022faa2888f44c45f41d4f64e9c129b9f3b347c478ffac1a5c3bad
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 Nov 10, 2026.

Transparency log

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

Download URL thermia_genesis-0.4.0-py3-none-any.whl
Size 23.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3ce2e235a7772d6f62c6176b6bf97c51c273754b5613369b8349bc502ec56d8a
BLAKE2b-256 checksum
How to use checksums
77aef4a203f2701b99bfd62bc3d78be4ff74e696c30f6342a065b78aa28b04f9
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 Nov 10, 2026.

Transparency log

Security for thermia-genesis 0.4.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.4.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 Nov 10, 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