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.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 py-centrometal-web-boiler-androflo 0.1.0
File Size Uploaded
py_centrometal_web_boiler_androflo-0.1.0.tar.gz 20.0 kB Details

Built distribution (wheel)

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

Total release size: 40.3 kB

Release files / py_centrometal_web_boiler_androflo-0.1.0.tar.gz

Download URL py_centrometal_web_boiler_androflo-0.1.0.tar.gz
Size 20.0 kB
Tags Source
SHA-256 checksum
How to use checksums
8fd0b040f9e3bf608e7c57df240494b2ad8cef4f5a4642278c6d65f9f1dad259
BLAKE2b-256 checksum
How to use checksums
0f0c8229e3b9ef6d1d4e1e420024a0e9eccf29a8652b48ce9dcec675ee3893b8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 30, 2026.

Transparency log

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

Download URL py_centrometal_web_boiler_androflo-0.1.0-py3-none-any.whl
Size 20.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f1b02855a661f7e79e1e9e403cfc91c8378684618c838b62783d702cea33cd95
BLAKE2b-256 checksum
How to use checksums
988ab9e28b24c2a0a98f4fee71041986c5691436e6d6f6c5b60c91917aeff96c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 30, 2026.

Transparency log

Release history Release notifications | RSS feed

0.2.0

2 release files

This release

0.1.0 This release

2 release files

0.0.59

2 release files

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