Skip to main content

Eltako14Bus Python library

This repository contains a library and some tools for interacting with the Eltako Series 14 bus system, which is an extension to the EnOcean Serial Protocol ESP2.

This is part of the reverse engineering approach that allows using Eltako Series 14 devices without a FAM.

It can work both on a direct RS485 serial connection to the bus, with or without a FAM14 present on the bus, through a FAM14's serial connection, or through a bespoke CoAP interface to the ESP2 protocol.

It provides native ESP2/ESP3 framing, EEP metadata and catalog APIs, deterministic message classification, optional LAN discovery, replayable virtual-bus testing and explicit safety boundaries for teach-in and memory operations.

Start with the documentation index, which organizes all guides by user task instead of requiring knowledge of the repository layout.

Tools

The eltakotool program shipped with it can do various raw interactions with the bus (replacing some FAM14 functionality, locking and unlocking the bus, sending arbitrary messages) as well as reading and writing the bus participants' memory (including verification and annotation of the memory contents).

Hardware-changing commands are opt-in application operations. Parsing, diagnostics, replay and virtual-bus tests do not open hardware or transmit telegrams by themselves.

Developer documentation

The documentation index is the central entry point and groups the guides by user, application, protocol, testing and release tasks.

The developer guide covers installation, serial and CoAP transports, asynchronous bus access, discovery, device and EEP APIs, locking, caching, the command-line tool, offline testing, and extension points. The gateway overview compares supported gateway families, protocols, transports, baud rates and usage examples. The ESP2 tutorial and ESP3 tutorial show complete protocol-level examples, including LAN discovery and offline ESP3 decoding. The user guide provides a short operational quick start. The release guide documents version selection, local verification, tagging, GitHub Releases, and PyPI publication.

The independent device catalog documents device-to-EEP metadata and lookup helpers. Teach-in support describes the Eltako-specific sender telegrams, and compatibility tests protect the public API used by external applications without adding a dependency on Home Assistant.

The complete EEP reference lists all implemented profiles, organizations, fields, units, and value ranges. The D2 v2 migration guide explains the correction of the formerly mislabeled D2-00-01 window-sensor decoder.

The A5-38-08 command guide describes all supported central switching, dimming, HVAC, fan and blind/shutter commands.

The library roadmap records planned protocol, EEP, diagnostic and testing improvements and clarifies which integration-specific features intentionally do not belong in this repository. The roadmap status records completed milestones, validation results, the active iteration and the procedure for continuing work.

The ESP3 framing guide, VLD field guide and reference comparison document the new protocol-layer architecture. The ESP2 framing guide documents the shared parser used by the TCP and RS485 transports. The ESP2 message parser guide documents deterministic message classification without probing decoder classes through exceptions. The ESP3 dispatcher guide documents typed native ESP3 packets, serialized command handling, and diagnostics. The opt-in EEP schema guide documents compatibility-safe D2 schema migration. The UTE session guide documents explicit, fail-closed teach-in decisions and the separate opt-in learned-device registry.

The message parser guide explains how mixed ESP2 streams are classified from validated wire markers without probing every decoder with exceptions. The diagnostics guide covers passive snapshots and opt-in transport metrics.

Quick start

Install the serial transport and start the included tool with:

python3 -m pip install -e '.[serial,eltakotool]'
python eltakotool.py --eltakobus /dev/ttyUSB0 enumerate

The library is asynchronous. A minimal application creates an RS485SerialInterfaceV2, starts it, awaits bus.exchange(...), and calls bus.stop() during shutdown. See the developer guide for a complete example and the required baud-rate settings for common gateways.

Testing and releases

Run the hardware-independent suite with:

python3 -m pytest -q

Serial hardware tests are optional and skip absent devices. The roadmap status records the current validation baseline and next milestones. The roadmap QA gates define the required behavior, safety, compatibility, resilience and packaging evidence for future changes. Use the release guide for versioning, builds, tags, GitHub Releases and PyPI publication.

Protocol description

(This is a short version. The long is partially available in the EnOcean and Eltako documentations, and the rest is in the reverse engineered code).

The EnOcean serial protocol is a point-to-point serial protocol between a computer and a radio transceiver; it contains synchronization bytes, some structured data bytes, and checksumming. The most common message formats are RPS and 4BS, which have equivalent messages (with short and long (4 byte) data, respectively) on the radio side. These messages contain some addressing information both when receiving (indicating which device sent it) and when sending through the transceiver (in which case the addresses need to match the address range of the transceiver, giving about 128 possible sending addresses).

The Eltako protocol is loosely built on the ESP2 protocol, but is used on an RS485 bus (with up to 127 participants), and uses several message types that are not defined in ESP2.

Part of the Eltako bus protocol is enumeration: Devices on the bus can be put into an addressing mode, and the bus master (a FAM14 or the library user) can assign one of the 127 available address to the device.

Commands are also known to visually identify devices on the bus, and to read and write their configuration (eg. in a relay, setting which buttons it should react to).

License

Originally developed by Christian Amsüss c.amsuess@energyharvesting.at and Energy Harvesting Solutions (2016–2020). Further developed and maintained by Philipp Grimm and contributors.

The library is published under the terms of the GNU Lesser General Public License version 3 or later. See LICENSE. The accompanying GPLv3 text required by the LGPL is preserved in LICENSE-GPL-3.0.

Metadata

Release files for eltako14bus 2.0.2

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

Source distribution (sdist)

Source distribution for eltako14bus 2.0.2
File Size Uploaded Provenance Actions
eltako14bus-2.0.2.tar.gz 310.8 kB Without provenance Details for eltako14bus-2.0.2.tar.gz

Built distribution (wheel)

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

Total release size: 478.4 kB

Release files / eltako14bus-2.0.2.tar.gz

Download URL eltako14bus-2.0.2.tar.gz
Size 310.8 kB
Tags Source
SHA-256 checksum
How to use checksums
8d44543cefe3837ffe829b356103a2a7e3a19f802c76760cb111c6e7471d089a
BLAKE2b-256 checksum
How to use checksums
e9279a6368da16329b90ab5d99d4e0444e91bee51e3be05baabca1b17cc9f714
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / eltako14bus-2.0.2-py3-none-any.whl

Download URL eltako14bus-2.0.2-py3-none-any.whl
Size 167.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bbc95a15b54d0c5fdcf100a9fb68f3ef41d3b89db396098d06501caa11eed479
BLAKE2b-256 checksum
How to use checksums
1c51553f6060d8c12955146c87e185b855dc140d70e5a6bfe7ec47ad237ef0dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for eltako14bus 2.0.2

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release

2.0.2 This release

2 release files No provenance

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