pyecobulles
pyecobulles is an unofficial async Python client for the Ecobulles customer portal. Ecobulles produces CO₂ water treatment systems that reduce limescale without salt. A connected box reports water use, device status, alerts and its latest sensor readings through the portal.
Version 0.2 uses the new customer portal. Ecobulles announced that its older mobile application will be discontinued. The client uses the same account email and password as the portal; it does not store credentials on disk.
Install
pip install pyecobulles
Example
import asyncio
import os
from aiohttp import ClientSession
from pyecobulles import EcobullesClient
async def main() -> None:
async with ClientSession() as session:
client = EcobullesClient(
session,
email=os.environ["ECOBULLES_EMAIL"],
password=os.environ["ECOBULLES_PASSWORD"],
)
boxes = await client.list_devices()
for box in boxes:
eco_ref = box["eco_ref"]
print(box["name"], await client.get_total_water_and_co2_usage(eco_ref))
print(await client.get_device_info(eco_ref))
print(await client.get_alerts(eco_ref))
asyncio.run(main())
The caller owns the aiohttp.ClientSession. EcobullesClient maintains the portal cookies in memory and automatically signs in again after an HTTP 401 or 403. This also works with a session whose cookie jar does not persist cookies, such as a shared Home Assistant web session.
Available methods
authenticate(email, password)returns(success, user_id, first_eco_ref, first_box_name)for callers of the previous library version. For accounts with several boxes, uselist_devices().list_devices()returns the boxes associated with the signed-in account.account_idexposes the authenticated portal account identifier after login.get_total_water_and_co2_usage(eco_ref)returns the current box water counter (total_eau, in L), the portal's raw gas counter (total_gas) and the last graph timestamp. The gas counter is an injection-time counter, not kilograms of CO₂.get_device_info(eco_ref)returns device metadata in the earlierdata.boiteshape. The latest bottle contact is exposed asbottle_empty_raw;bottle_emptyremainsNonebecause observed installations disagree on whether raw0or1means empty.get_alerts(eco_ref)returns the portal's alert records, including theircurrentlyflag.get_configuration(eco_ref)andget_readings(eco_ref)expose the portal's read-only raw configuration and sensor payloads.get_login_payload(email, password)returns an earlier mobile-API-compatible payload, including alerts, for existing integrations.
The package only reads data. It does not send activation, suspension, actuator or configuration commands. Portal fields and endpoints are reverse engineered and may change without notice.
The API does not expose a confirmed bottle-replacement event or a documented
per-bottle water counter. Both total_eau and total_gas may decrease after a
technical reset such as a device restart, so consumers that need monotonic
accounting should persist their own offsets without assuming that a decrease
proves the bottle was replaced. The portal may report total_gas = 0 (or omit
it); the library returns the actual value (or None) without estimating
consumption. Each box is queried separately using its own eco_ref.
Compatibility
Python 3.12 or newer and aiohttp 3.9 or newer are supported. The package is typed and accepts an injected clock (now_fn) for applications and tests.
This project is not affiliated with Ecobulles. If the portal API changes, please report the affected endpoint and a redacted response shape in GitHub Issues. Do not post passwords, cookies or full device dumps.
Metadata
Release files for pyecobulles 0.2.3
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 |
|---|---|---|---|---|
| pyecobulles-0.2.3.tar.gz | 11.8 kB | With provenance | Details for pyecobulles-0.2.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyecobulles-0.2.3-py3-none-any.whl | Python 3 | none | any | Details for pyecobulles-0.2.3-py3-none-any.whl |
Total release size: 23.9 kB
Release files / pyecobulles-0.2.3.tar.gz
| Download URL | pyecobulles-0.2.3.tar.gz |
|---|---|
| Size | 11.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
34c185014a200db2d0485dd6aa08c604d0ebd2706c6d83e425686c87788e99f9
|
|
BLAKE2b-256 checksum How to use checksums |
8d14572dcf2d10eb3fce1b27a80b8d68970872a47d51f55fd5e104c9b55bf18a
|
| 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 Oct 3, 2026.
Transparency logRelease files / pyecobulles-0.2.3-py3-none-any.whl
| Download URL | pyecobulles-0.2.3-py3-none-any.whl |
|---|---|
| Size | 12.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
86071a28b6425b301f6101e9278c6dc5eafa7b3db5dc641cc8ab0f5e6e5bcacc
|
|
BLAKE2b-256 checksum How to use checksums |
e6c2397bb78699b6b12ba9f31df694e53c55eaaf814d46bb7bb94226554749bb
|
| 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 Oct 3, 2026.
Transparency logSecurity for pyecobulles 0.2.3
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 pyecobulles-0.2.3.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 3, 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.