Library and CLI for communicating with Saeco-family coffee machines over BLE, with MQTT discovery for Home Assistant.
Project description
pysaeco
pysaeco is an early-stage Python library and CLI for communicating with Saeco-family
coffee machines over Bluetooth LE.
It uses bleak for cross-platform BLE support and
can emit Home Assistant MQTT discovery payloads.
Install for development
uv sync --extra dev
CLI
uv run pysaeco-server
By default the server scans for BLE machines, publishes MQTT/Home Assistant discovery to
localhost:1883, and serves the HTTP API/status page at http://127.0.0.1:8080.
Library sketch
from pysaeco import SaecoClient
from pysaeco.avanti import Espresso
with SaecoClient("AA:BB:CC:DD:EE:FF", pin=1234) as client:
status = client.read_status()
client.brew(Espresso(coffee_ml=45))
Development notes
- Keep BLE client details in
pysaeco.client. - Keep Avanti protocol packets, responses, recipes, and parsed status in
pysaeco.avanti. - Put Home Assistant discovery entities in
pysaeco.homeassistant.discovery.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pysaeco-0.1.0.tar.gz.
File metadata
- Download URL: pysaeco-0.1.0.tar.gz
- Upload date:
- Size: 55.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae049b81313e83a88a15aacef283a5d4a09a6ae999b5b8d6b7e1c578876bcc42
|
|
| MD5 |
7a684e01e24cf99ac7ab1951fd764957
|
|
| BLAKE2b-256 |
6f681b166c09a458258aa566e66f184d6aeea1550f7a1e742a38e2571613c021
|
File details
Details for the file pysaeco-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pysaeco-0.1.0-py3-none-any.whl
- Upload date:
- Size: 17.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b5b3984eb92fe263db3019af70fcc39d55e291c394f4ec4746ac4bb29d293abb
|
|
| MD5 |
735fbe39bdedf52e019cbe8718de4b40
|
|
| BLAKE2b-256 |
3c1a4e07c0409e4d98125c45a72c8a2dbe80b947965daab8ae25379e4689cc4d
|