Skip to main content

pyecobulles

CI codecov PyPI

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, use list_devices().
  • list_devices() returns the boxes associated with the signed-in account. account_id exposes 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 earlier data.boite shape, including the latest bottle_empty reading when available.
  • get_alerts(eco_ref) returns the portal's alert records, including their currently flag.
  • get_configuration(eco_ref) and get_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 current total_eau counter can reset when the CO₂ bottle changes. Consumers that need lifetime accounting should track resets separately. 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.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 pyecobulles 0.2.0
File Size Uploaded Provenance Actions
pyecobulles-0.2.0.tar.gz 11.4 kB With provenance Details for pyecobulles-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyecobulles 0.2.0
File Interpreter ABI Platform Actions
pyecobulles-0.2.0-py3-none-any.whl Python 3 none any Details for pyecobulles-0.2.0-py3-none-any.whl

Total release size: 23.2 kB

Release files / pyecobulles-0.2.0.tar.gz

Download URL pyecobulles-0.2.0.tar.gz
Size 11.4 kB
Tags Source
SHA-256 checksum
How to use checksums
b948d088e48d692a69dc74e591c152803931777edfb0fc0d4daa56e64da0e563
BLAKE2b-256 checksum
How to use checksums
55cfd340b3333c74dd69e8b83e67e5500a29d53a87eb1a2a8942b402e1ffcb56
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 21, 2026.

Transparency log

Release files / pyecobulles-0.2.0-py3-none-any.whl

Download URL pyecobulles-0.2.0-py3-none-any.whl
Size 11.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
68b4a869481413e73354b48ad0c143ec4aa80449b4f68829a82895b4dd02f0f1
BLAKE2b-256 checksum
How to use checksums
e457315cf52543e71c9e111a2b676f724f05dfd2ae12f2e4b5d91d88a9ecfc39
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 21, 2026.

Transparency log

Security for pyecobulles 0.2.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 pyecobulles-0.2.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 Sep 21, 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