Skip to main content

aioecam

Async, local-first Python client for De'Longhi ECAM coffee machines with Coffee Link Wi-Fi (Ayla module), e.g. PrimaDonna Soul (ECAM610/612) and Eletta Explore (ECAM452).

  • Local first: talks to the machine directly over Ayla LAN mode; no add-on, no extra server process.
  • Cloud second: the De'Longhi/Ayla cloud fetches the LAN key during onboarding and can step in for waking the machine. Machines without LAN mode run entirely through the cloud with CloudLink (slower, see below).
  • Pure asyncio, dependencies limited to aiohttp and cryptography, built to be embedded in Home Assistant.

Status: beta. See docs/plan.md for architecture and milestones. The protocol findings this library is built on are documented publicly in ecam-lan-protocol.md.

Hardware validation

Live testing has been performed on a PrimaDonna Soul ECAM610.75. Verified operations include LAN wake-up, settings and recipe reads, tank and milk accessory monitoring while awake, auto-off writes with restoration, profile switching, and a one-off 100 ml hot-water command.

Other models have not been tested on hardware by this project. This includes other ECAM610/612/613 variants and the Eletta Explore (ECAM452). Their coverage is limited to codec, captured-frame and simulated-device tests; passing these tests does not confirm that they work on a real machine. Model-specific behaviour needs confirmation from owners of those machines. One owner of an Eletta Explore confirmed power on, a coffee and power off through the cloud with 0.1.5b1 (default session id, cremaevolution-ha#27); 0.1.6b1 works unchanged on that machine; no other id was found there, so adopting the app's session id has not been exercised on hardware yet. Eletta write sessions over LAN are not implemented.

Not every code path has been verified live, even on the ECAM610.75: the final recipe-polling fix is covered by simulated-device tests, and whether monitor changes require polling remains open. Detailed results and limitations are documented in the M7 protocol notes.

Command line

python -m aioecam --device 192.168.1.50 status --watch 30
python -m aioecam --device 192.168.1.50 on          # confirmed by the monitor
python -m aioecam --device 192.168.1.50 brew espresso
python -m aioecam --device 192.168.1.50 stats       # full A2 table

The LAN key comes from ~/.config/aioecam.json ({"lan_key": "..."}) or AIOECAM_LAN_KEY.

Cloud mode

For machines the cloud gives no LAN key (it reports lan_enabled: false for some Eletta Explore units), CloudLink offers the same interface as LanLink over the Ayla cloud:

python -m aioecam onboard --email you@example.com --save
python -m aioecam --cloud status

Sign-in uses the login of the current Coffee Link app (Gigya mobile login and JWT) and, if that fails for any reason other than a wrong email or password, the older Coffee Link web login. onboard --login web|mobile forces one.

Writes become cloud datapoints; the link polls the machine's properties in one request, every 30 s and every 5 s for a minute after a command. A budget of 180 requests per hour (Ayla allows roughly 200) is enforced per kind of request; commands always go out. Every 5 minutes the link checks the machine's cloud connection and is down while the machine is offline, because the cloud keeps serving its last values. Commands reach the machine within seconds, state changes within the poll interval. Call EcamDevice.keep_cloud_session() about every 4 minutes, otherwise the cloud stops relaying writes. On an Eletta, the keep-alive first adopts the session id the Coffee Link app uses with the machine (EcamDevice.adopt_app_id(), read from the values the app last wrote): the machine ignores commands from a session with any other id. Until the app has been used once, a default id is used (EcamDevice.app_id_source says which). Status reads through the cloud were verified on the ECAM610.75; power on, brewing and power off through the cloud were confirmed by an Eletta Explore owner.

Development

python -m venv .venv
.venv/bin/pip install -e ".[dev]"
.venv/bin/ruff check . && .venv/bin/mypy && .venv/bin/pytest

Credits

Protocol knowledge builds on cremalink (AGPL-3.0) and the public protocol write-ups of the De'Longhi community. The cloud mode follows the findings of delonghi-ha by @sk7n4k3d (MIT): the Eletta request signature, the cloud keep-alive and the request limit. That an Eletta only obeys the app's session id was found by delonghi_coffeelink by @actabi (MIT), whose mobile sign-in and Ayla app id the fallback login uses. Not affiliated with De'Longhi or Ayla Networks.

License

AGPL-3.0-or-later

Passive catalogue and receipt diagnostics

EcamDevice.catalog.snapshot() reports only catalogue properties already received on the LAN link. It sends no reads, writes or session announcements. Descriptor (B0 F0), recipe (A6 F0), priority (A8 F0) and name-metadata frames are checked for length, CRC and payload structure. Unknown parameter tags stay numeric; priority lists do not establish availability. Source properties, reception/last-valid times and validation errors are included. Bad updates retain the last valid data with an explicit error. Reversed min/max bounds remain errors. Raw defaults outside those bounds are preserved with default_in_range: false; their meaning remains unconfirmed. Storage is bounded to 512 properties and resets with the device object.

Household names are redacted at parse time; serial, PIN and settings frames are excluded. The catalogue does not enable drinks or change brew validation. last_datapoint_at, last_monitor_at and monitor_query_* distinguish receipt, state changes and the last monitor-read outcome. Repeated valid frames count as new receipts. Successful reads may still return cached standby data; reception time does not prove a new physical state. machine_info keeps only observed, allowlisted model/firmware properties. Missing metadata remains unknown.

Metadata

Release files for aioecam 0.1.10

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

Source distribution (sdist)

Source distribution for aioecam 0.1.10
File Size Uploaded Provenance Actions
aioecam-0.1.10.tar.gz 108.9 kB With provenance Details for aioecam-0.1.10.tar.gz

Built distribution (wheel)

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

Total release size: 187.7 kB

Release files / aioecam-0.1.10.tar.gz

Download URL aioecam-0.1.10.tar.gz
Size 108.9 kB
Tags Source
SHA-256 checksum
How to use checksums
6d5ac9b98787aff879a4aca12eac6e837b31a5688b8a8125be4f9c9682de6934
BLAKE2b-256 checksum
How to use checksums
66e601c4daebe7473c490d982960a96ee027ee5fe5a1ba38f8ed05f66cac8490
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 29, 2026.

Transparency log

Release files / aioecam-0.1.10-py3-none-any.whl

Download URL aioecam-0.1.10-py3-none-any.whl
Size 78.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0c2468898d2518a1b66e20c7418b370ee833a19fc27dcfe06b80246c55b8c6ac
BLAKE2b-256 checksum
How to use checksums
f74724aba906286d3e05d76f6221ff59618294fdb5e9404c576799d0168d0605
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 29, 2026.

Transparency log

Security for aioecam 0.1.10

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 aioecam-0.1.10.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 29, 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