Skip to main content

py-centrometal-web-boiler

Python library for Centrometal boilers connected to the web-boiler.com cloud (CM WiFi-Box). It is the communication layer of the Home Assistant integration hass-centrometal-boiler.

This is a fork of 9a4gl/py-centrometal-web-boiler, published on PyPI as py-centrometal-web-boiler-androflo (the original package name belongs to the upstream author). The Python module is still centrometal_web_boiler.

Centrometal publishes no API: the library does what the Centrometal web application does. Use it at your own risk.

How it works

web-boiler.com
├── website (HTTPS)        login, list of boilers, current values, commands   → HttpClient
└── broker (STOMP over     real-time values pushed by the boilers             → WebBoilerWsClient
    secure WebSocket)
                     both combined by WebBoilerClient, data stored in WebBoilerDeviceCollection
  1. Login: the login page gives a CSRF token, then the login form is posted with the e-mail and password. The session cookie is kept for the next calls.
  2. Configuration: the list of boilers of the account, the description of their parameters and the current value of each parameter.
  3. Real time: a STOMP connection subscribes to one topic per boiler and receives {"<parameter>": <value>} messages.
  4. Commands: on/off, heating circuits on/off, pellet mode — HTTPS POSTs.

A parameter is a raw Centrometal code such as B_Tak1_1 (temperature) or B_STATE.

Usage

from centrometal_web_boiler import WebBoilerClient

client = WebBoilerClient()
if await client.login("you@example.com", "password") and await client.get_configuration():
    for serial, device in client.data.items():
        print(serial, device["product"], device.get_parameter("B_STATE")["value"])

    async def on_update(device, parameter, created=False):
        print(device["serial"], parameter["name"], parameter["value"])

    await client.start_websocket(on_update)
    await client.refresh()  # ask the boilers to push every value
    await client.turn(serial, True)  # turn_circuit(serial, circuit, on), set_pellet_mode(serial)
    ...
    await client.close_websocket()
    await client.http_client.close_session()

Try it with your account (read-only, nothing is sent to the boiler):

pip install -e .
export CENTROMETAL_USERNAME=you@example.com CENTROMETAL_PASSWORD=...
python examples/test_client.py --duration 60

Development

python -m venv .venv && . .venv/bin/activate
pip install -e ".[test]"
pytest              # tests against a local fake of web-boiler.com, no account needed
ruff check . && ruff format .

Release

  1. Bump version in pyproject.toml and push to main.
  2. Push a tag equal to that version: git tag 0.1.0 && git push origin 0.1.0. The Upload Python Package workflow checks the tag, runs the tests, publishes to PyPI through Trusted Publishing (GitHub environment pypi, no token) and creates the GitHub release.
  3. In the Home Assistant integration, update the pin py-centrometal-web-boiler-androflo==<version> in manifest.json and bump the integration version.

Metadata

Release files for py-centrometal-web-boiler-androflo 0.2.1

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

Source distribution (sdist)

Source distribution for py-centrometal-web-boiler-androflo 0.2.1
File Size Uploaded Provenance Actions
py_centrometal_web_boiler_androflo-0.2.1.tar.gz 20.6 kB With provenance Details for py_centrometal_web_boiler_androflo-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for py-centrometal-web-boiler-androflo 0.2.1
File Interpreter ABI Platform Actions
py_centrometal_web_boiler_androflo-0.2.1-py3-none-any.whl Python 3 none any Details for py_centrometal_web_boiler_androflo-0.2.1-py3-none-any.whl

Total release size: 41.2 kB

Release files / py_centrometal_web_boiler_androflo-0.2.1.tar.gz

Download URL py_centrometal_web_boiler_androflo-0.2.1.tar.gz
Size 20.6 kB
Tags Source
SHA-256 checksum
How to use checksums
57f00acf4e2779bef9bab06cb27243b897e9fc745e1b04f1a7b4a6092bebfbc5
BLAKE2b-256 checksum
How to use checksums
880f2baa6c29321b14594c1011aaf6ba842e575e38b8b34b520242fd9910d92d
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 16, 2026.

Transparency log

Release files / py_centrometal_web_boiler_androflo-0.2.1-py3-none-any.whl

Download URL py_centrometal_web_boiler_androflo-0.2.1-py3-none-any.whl
Size 20.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1d664b6bdd610ed1c779bb88960004c198d62fd70a6ab340492de69a6a2a4061
BLAKE2b-256 checksum
How to use checksums
19673b8df76de94021c5311fe1e12a6e9a0bb690b8aa0e7cbdf0fbed017c7ee7
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 16, 2026.

Transparency log

Security for py-centrometal-web-boiler-androflo 0.2.1

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 py_centrometal_web_boiler_androflo-0.2.1.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 16, 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