This release is a pre-release and may not be stable for production use.
cremalink
A high-performance Python library and local API server for monitoring and controlling IoT coffee machines.
✨ Overview
Cremalink provides a unified interface to interact with smart coffee machines via Local LAN control or Cloud API. It allows for real-time state monitoring and precise command execution.
🚀 Installation
Install the package via pip (Cremalink requires Python 3.13+):
pip install cremalink
Optional Dependencies
To include tools for development or testing:
pip install "cremalink[dev]" # For notebooks and kernel support
pip install "cremalink[test]" # For running pytest suites
🛠 Usage
Integrated API Server
Cremalink includes an aiohttp-based server for headless environments:
# Start the server
cremalink-server --ip 0.0.0.0 --port 10280 --settings_path "conf.json"
More information: Local Server Setup
Python API (Local Control)
Connect to your machine directly via your local network for the lowest latency.
More information: Local Device Usage
ECAM protocol layer (cremalink.ecam)
The cremalink.ecam package exposes the native ECAM protocol used by
PrimaDonna/Eletta-class machines — CRC-verified command builders and
answer parsers, transport-independent (LAN or cloud):
from cremalink.ecam import builder, MachineProfile
profile = MachineProfile.from_map_name("ECAM610")
frame = builder.build_power(builder.PowerCommand.TURN_ON, profile)
wire = builder.encode_for_transport(frame, profile) # adds the timestamp
High-level Device methods built on it:
| Method | What it does |
|---|---|
brew(beverage_id, recipe=None, ...) |
Parametric 0x83 brew with the machine's recipe bytes |
stop_brew() / wake() / standby() / session_refresh() |
Power/session control (0x83/0x84) |
get_statistics() |
Native 0xA2 statistics pager (LAN) or cloud counters per the device map's statistics_source |
get_profiles() / select_profile(index) |
Read occupied profile slots; session-gated 0xA9 selection |
refresh_current_profile() |
Read the machine's own selected profile from param 0x03EE (0-based register, +1); session-announced, attempted in standby too (reads answer there — §14.8) |
get_settings() / set_setting(key, index) |
Read/write machine settings (auto-off, water hardness) via 0x95/0x90 |
get_setting_bits() / set_setting_bit(key, on) |
Boolean flags in the shared user-config param 0x003F (beep, energy saving, …) — merged bit writes via 0x90 |
read_catalog() |
Parse the recipe catalogue (b0f0/a6f0/aaf0/a8f0/baf0 blobs) |
Writes are session-gated: the device announces a ~300 s session
(device_connected property write) automatically before any 0x90/0xA9
frame. Callers never manage this themselves — but it means writes take a
round-trip and are LAN-only. Statistics via 0xA2 are likewise LAN-only;
cloud_counters maps resolve their counters from the cloud datapoint
snapshot instead.
🛠 Development
Testing
Run the comprehensive test suite using pytest:
pytest tests/
Contributing
Contributions are welcome! If you have a machine profile not yet supported, please check the Wiki: 5. Adding Custom Devices on how to add new .json device definitions.
Currently supported devices:
De'Longhi PrimaDonna Soul (ECAM612)De'Longhi Eletta Explore (ECAM452) (not tested yet)
☕ Credits
This project stands on the shoulders of giants. The reverse engineering and implementation is a community effort. A special thanks to the following projects and individuals for their pioneering work and documentation:
Technical Foundations, Protocol Research & Inspiration
- ECAMpy
- delonghi-comfort-client
- Hacking Bluetooth to Brew Coffee
- delonghi-coffee-link-python
- DlghIoT
- home_assistant_delonghi_primadonna
- longshot
Is a project missing or do you have suggestions for improvement? Feel free to open a PR or an issue!
💫 Star History
📄 License
Distributed under the AGPL-3.0-or-later License. See LICENSE for more information.
Developed by Midian Tekle Elfu. Supported by the community.
Metadata
Release files for cremalink-lodzen 2.0.0.dev4
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 |
|---|---|---|---|---|
| cremalink_lodzen-2.0.0.dev4.tar.gz | 648.8 kB | With provenance | Details for cremalink_lodzen-2.0.0.dev4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cremalink_lodzen-2.0.0.dev4-py3-none-any.whl | Python 3 | none | any | Details for cremalink_lodzen-2.0.0.dev4-py3-none-any.whl |
Total release size: 788.4 kB
Release files / cremalink_lodzen-2.0.0.dev4.tar.gz
| Download URL | cremalink_lodzen-2.0.0.dev4.tar.gz |
|---|---|
| Size | 648.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e0b30bc31e792868c2f835ed5ca4775b88e15ed59c7b93768ffeb2f81aa2e245
|
|
BLAKE2b-256 checksum How to use checksums |
8058e2ab7b04ae59e20047cd70ce74136349a51db9e310e91161c31fcc723cd7
|
| 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 Oct 30, 2026.
Transparency logRelease files / cremalink_lodzen-2.0.0.dev4-py3-none-any.whl
| Download URL | cremalink_lodzen-2.0.0.dev4-py3-none-any.whl |
|---|---|
| Size | 139.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
88b820ca1f020facd67e05f660d45bcb70a9bb0fc13e55939513ee218565d39b
|
|
BLAKE2b-256 checksum How to use checksums |
54005156f36efa27ca1e08837a96c8e5fac0dcfe473ffbeb48dfc69e31dc0c61
|
| 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 Oct 30, 2026.
Transparency logSecurity for cremalink-lodzen 2.0.0.dev4
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 cremalink_lodzen-2.0.0.dev4.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 30, 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.