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
- 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.
- Configuration: the list of boilers of the account, the description of their parameters and the current value of each parameter.
- Real time: a STOMP connection subscribes to one topic per boiler and receives
{"<parameter>": <value>}messages. - 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
- Bump
versioninpyproject.tomland push tomain. - 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 environmentpypi, no token) and creates the GitHub release. - In the Home Assistant integration, update the pin
py-centrometal-web-boiler-androflo==<version>inmanifest.jsonand 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)
| 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)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| 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 logRelease 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 logSecurity 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.
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 logA 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.