Skip to main content

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)
discovery Which devices are on the bus: scan, Vaillant identification (article, serial), deep scan of every slave address, phantom addresses
catalog 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), cached; display texts per language
values What a message's values are: labels, stable keys, cache keys, numeric or not, the control a write allows
messages, codecs Message model, ebusd-CSV ingest (default rows, conditions, value tables), every ebusd datatype
frame, passive, transport, active Telegrams and CRC, matching telegrams to definitions, the adapter's byte protocol, the transaction state machine

Example

import asyncio

from aioebus import Catalog, EbusEngine, MessageRegistry, PollScheduler, connect, discover


async def main() -> None:
    link = await connect("192.168.1.50", 9999)
    engine = EbusEngine(link.send, link.recv, MessageRegistry([]))
    run = asyncio.create_task(engine.run())

    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
    engine.stop()
    link.close()
    await run


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; read the value back instead.

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

Metadata

Release files for aioebus 0.7.3

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

Source distribution (sdist)

Source distribution for aioebus 0.7.3
File Size Uploaded Provenance Actions
aioebus-0.7.3.tar.gz 101.3 kB With provenance Details for aioebus-0.7.3.tar.gz

Built distribution (wheel)

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

Total release size: 175.3 kB

Release files / aioebus-0.7.3.tar.gz

Download URL aioebus-0.7.3.tar.gz
Size 101.3 kB
Tags Source
SHA-256 checksum
How to use checksums
616614726b8925ac0aaa43ba7ff5d2fff5198b328a8202d5c8149f94aad70036
BLAKE2b-256 checksum
How to use checksums
535f31db4eee0ce97b64cba6c30a1ce180275a2afadaff895324b10d7642c7f1
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 2, 2026.

Transparency log

Release files / aioebus-0.7.3-py3-none-any.whl

Download URL aioebus-0.7.3-py3-none-any.whl
Size 74.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
93eae84b307f86a9e686bd7e0e5eb675ace1ca96f40ad8269c7c8386ddaa0d05
BLAKE2b-256 checksum
How to use checksums
48db3cf1294729f824fd7e97f6f04c53835e1c784ba50416b6b99642e8ff6b08
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 2, 2026.

Transparency log

Security for aioebus 0.7.3

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 aioebus-0.7.3.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 2, 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