juracoffeemachine
Python package to control a Jura E6 coffee machine through its service UART. It is used by coffee_tag, an app that tracks how many coffees each person takes, so it aims for high reliability and low maintenance.
Features
- Brew (or stop) a coffee with a chosen quantity of beans and water.
- Check the machine state before brewing (sleeping, trays, water tank, etc.).
- Read the coffee counters.
Install
Requires Python >= 3.11.
pipx install juracoffeemachine
Usage
For the wiring, see the hardware section of coffee_tag.
From the command line (juracoffeemachine -h lists all the actions):
juracoffeemachine /dev/ttyUSB0 brew_coffee
From python:
from juracoffeemachine import CoffeeMaker
machine = CoffeeMaker.create_from_uart("/dev/ttyUSB0")
machine.brew_coffee(4, 100, lambda result, date: print(result, date)) # 4 beans, 100 mL
Where to look when something breaks
- Brewing or machine state: coffee_machine.py
- Protocol (encoding, commands, EEPROM addresses): jura.py
- Parsing of the machine's status messages (
HZ,CS,IC): response.py - Serial port errors: serial.py
Development
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
pip install -e .
pytest tests/
Every commit on the default branch is published to PyPI by GitHub Actions, so remember to bump the version in
pyproject.toml. Bug reports, feature requests and pull requests are welcome.
Acknowledgments & license
All the protocol used in this project was decoded by COM8 in protocol-cpp (see also the Jutta-Proto organisation). Juramote, q42 and at.ua were also of great help.
See LICENSE.
Metadata
Release files for juracoffeemachine 1.5.9
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 |
|---|---|---|---|---|
| juracoffeemachine-1.5.9.tar.gz | 31.7 kB | With provenance | Details for juracoffeemachine-1.5.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| juracoffeemachine-1.5.9-py3-none-any.whl | Python 3 | none | any | Details for juracoffeemachine-1.5.9-py3-none-any.whl |
Total release size: 61.2 kB
Release files / juracoffeemachine-1.5.9.tar.gz
| Download URL | juracoffeemachine-1.5.9.tar.gz |
|---|---|
| Size | 31.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
55b4b67f4312b360aac0128b634f5d18fa3ac6b9e829c5dd43c90ecb3e9413a8
|
|
BLAKE2b-256 checksum How to use checksums |
8d16f5a9a1fad8a804f3cb104452ec83748c7aa0632ddd65d1c1a3f8dd83671e
|
| 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 30, 2026.
Transparency logRelease files / juracoffeemachine-1.5.9-py3-none-any.whl
| Download URL | juracoffeemachine-1.5.9-py3-none-any.whl |
|---|---|
| Size | 29.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bc8df3d21f98785480b474e36d5787a96896ea2b66dcb56b20673f765a45465f
|
|
BLAKE2b-256 checksum How to use checksums |
98b07a7724790a5d8ff7c00d5f35555f0eb2f41cb9c9c13959dbc80863063d34
|
| 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 30, 2026.
Transparency logSecurity for juracoffeemachine 1.5.9
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 juracoffeemachine-1.5.9.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 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.