aioebus
A standalone, async, pure-Python eBUS library: it talks to an eBUS adapter (enhanced protocol over TCP) and decodes Vaillant/eBUS messages without an ebusd daemon. The ebus Home Assistant integration is built on it and runs it in the field.
It ports ebusd's behaviour to Python by spec (not line by line) and checks every layer against real captured telegrams.
What it does
| Module | |
|---|---|
link |
TCP connection to the adapter (connect), liveness probe |
engine |
One connection: decodes what other masters put on the bus (free), slips its own reads/writes in when the bus is idle, keeps a value cache, polls by priority (poll); a write can be read back (write_confirmed), a saved cache restored (restore) |
runner |
Keeps an engine connected: reconnects with a pause when the link ends |
discovery, scan |
Which devices are on the bus: scan, Vaillant identification (article, serial), deep scan of every slave address, phantom addresses |
catalog, cdn, conditions |
Each device's definitions: our bundled ones, else a user file, else the matching ebusd-configuration CSV from ebus.github.io (chosen as ebusd chooses it, with its !load includes and conditions), cached |
values |
What a message's values are: labels, stable keys, cache keys, the control a write allows |
messages, codecs, convert |
Message model, ebusd-CSV ingest (default rows, conditions, value tables, constants), every ebusd datatype, our JSON format |
translations |
Stable keys for display texts, and the texts per language from the ebusd CSVs |
frame, passive, transport, active |
Telegrams and CRC, matching telegrams to definitions, the adapter's byte protocol, the transaction state machine |
Everything in aioebus.__all__ is the public API, under the submodule paths as
well.
Example
import asyncio
from aioebus import (
Catalog, EbusEngine, EngineRunner, MessageRegistry, PollScheduler, connect, discover,
)
async def main() -> None:
engine = EbusEngine()
runner = EngineRunner(engine, lambda: connect("192.168.1.50", 9999))
await runner.start() # reconnects by itself from here
found = await discover(engine) # which devices answer
catalog = Catalog() # bundled definitions only
await catalog.load({a: d.scan for a, d in found.devices.items()},
{a: d.ident for a, d in found.devices.items() if d.ident})
engine.registry = MessageRegistry(catalog.all_messages())
engine.scheduler = PollScheduler(catalog.device_messages("r"), base_interval=60)
await asyncio.sleep(120)
print(engine.cache) # (device, message, label) -> value
runner.close()
asyncio.run(main())
To load ebusd-configuration CSVs for devices without a bundled definition, give
the catalog a cache directory and a fetch(url) -> str | None coroutine
("" when the server says the file does not exist, None when unreachable).
Writing is opt-in (EbusEngine(..., allow_write=True)). A write that went out
completely but was not acknowledged raises WriteUncertain and is never sent
twice. write_confirmed(msg, values, read_back=catalog.read_twin(msg)) reads
the register back afterwards, so the cache holds what the device took, and
reports an unconfirmed write instead of raising.
Decoding a captured telegram needs no bus:
from aioebus import MessageRegistry, decode_raw, parse_csv
reg = MessageRegistry(parse_csv(open("38.v32.csv").read()))
decode_raw(reg, "3138b509030d1800740003910100bb00") # (FlowTemp def, {'FlowTemp': 25.0625})
Definitions and licensing
The library ships only its own Vaillant definitions (aioebus/defs/vaillant,
Apache-2.0, provenance in its PROVENANCE.md): re-engineered from observed
telegrams or hand-written, facts only. The ebusd-configuration CSVs are GPL-3.0;
the catalog downloads them on the user's own machine and keeps them in the
caller's cache directory, never in this package. python -m aioebus.convert
turns an ebusd CSV into the native JSON format, for local use.
Dev
python -m pytest # tests, incl. real captures
ruff check src tests tools
mypy
python tools/validate_frame_db.py /path/to/telegrams.db # frames vs ebusd
python tools/replay.py /path/to/telegrams.db # a capture through the engine
Metadata
Release files for aioebus 0.7.7
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 |
|---|---|---|---|---|
| aioebus-0.7.7.tar.gz | 113.7 kB | With provenance | Details for aioebus-0.7.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aioebus-0.7.7-py3-none-any.whl | Python 3 | none | any | Details for aioebus-0.7.7-py3-none-any.whl |
Total release size: 195.5 kB
Release files / aioebus-0.7.7.tar.gz
| Download URL | aioebus-0.7.7.tar.gz |
|---|---|
| Size | 113.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4110f5dcd2078b76dc018737f040435e9d74ab774dd00559e52c9f84861fc682
|
|
BLAKE2b-256 checksum How to use checksums |
87bd3c61270c55015131284af4156283c0c1ff2aeb4ffea1d3bf60fcbb6ba8c2
|
| 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 4, 2026.
Transparency logRelease files / aioebus-0.7.7-py3-none-any.whl
| Download URL | aioebus-0.7.7-py3-none-any.whl |
|---|---|
| Size | 81.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f27c4c34339f2e5172f276769a6a921159b240e7a151f7ee6bff3b8919eab978
|
|
BLAKE2b-256 checksum How to use checksums |
0036c24bc9cd08ff497e8a071556cce7d99785d5e3e84b7c8d011d0486693c1f
|
| 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 4, 2026.
Transparency logSecurity for aioebus 0.7.7
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 aioebus-0.7.7.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 4, 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.