pyeebus
EEBUS for Python: SHIP (transport), SPINE (data model) and the energy manager (CEM) use cases for EV charging. Ported from the Go implementation by enbility (ship-go, spine-go, eebus-go, MIT licensed).
Status: 0.1.0, early. SHIP, SPINE and the use cases (EV charging, LPC, MPC) are tested against eebus-go/spine-go in both directions and in use with a real Elli Charger 2 and Solar Manager (through elli-eebus-proxy). The API may still change.
Why
EEBUS is how energy managers talk to wallboxes, heat pumps and grid control boxes. Until now, the only complete open-source implementation has been in Go. pyeebus makes EEBUS available to Python projects such as Home Assistant integrations.
Roadmap
| Layer | Status |
|---|---|
| SHIP: certificates/SKI, TLS websocket, handshake (CMI, hello incl. prolongation, protocol, PIN none, access methods), data exchange, close | ✅ tested against ship-go |
SHIP: mDNS announce and discovery (zeroconf), trust store, auto-reconnect |
✅ |
| SPINE: devices/entities/features, detailed discovery, use case data, subscriptions, bindings, partial updates, heartbeat | ✅ tested against spine-go |
| Use cases (CEM side): EVSECC, EVCC, EVCEM, OPEV, OSCEV, EVSOC | ✅ tested against eebus-go |
| Limitation and monitoring of power consumption: LPC (Energy Guard), MPC (Monitoring Appliance) | ✅ tested against eebus-go |
| Coordinated EV charging (CEVC), production use cases (LPP etc.) | later |
Try it
pip install pyeebus # or: uvx pyeebus ...
pyeebus discover # list EEBUS devices on the network
pyeebus connect <SKI of the device> # pair, connect as energy manager, show what the device offers
pyeebus connect <SKI> --read-all # ... and print all data the device offers
pyeebus connect <SKI> --raw # ... and print every SPINE message
pyeebus connect <SKI> --lpc-limit 4200 # test: limit the power to 4200 W for 5 minutes (LPC)
connect announces pyeebus on the network as an energy manager. Then pair with it on the device. For example, on an Elli wallbox: Connections → HEMS connection → found EEBUS devices → Pair. The identity is kept in ~/.config/pyeebus/.
pyeebus simulate-evse runs a simulated wallbox with a pluggable EV for development.
Library
from pyeebus.service import EebusService
from pyeebus.usecases import EVCC, EVCEM, EVSECC, OPEV, PhaseLimit
service = EebusService.from_directory("/path/to/state", brand="Me", model="HEMS", serial="1")
cem = service.entities[0] # the CEM entity
def on_event(ski, entity, event): # e.g. "EvConnected", "DataUpdateCurrentPerPhase"
if event == EVCEM.DATA_UPDATE_CURRENT_PER_PHASE:
print(evcem.current_per_phase(entity))
evsecc, evcc, evcem, opev = (uc(cem, on_event).setup() for uc in (EVSECC, EVCC, EVCEM, OPEV))
await service.start()
service.trust("<SKI of the wallbox>") # connects as soon as it is found via mDNS
# later, with the EV entity from an event:
await opev.write_load_control_limits(ev, [PhaseLimit(p, 10) for p in "abc"]) # 10 A
For devices that offer power limitation (LPC, e.g. wallboxes with §14a EnWG support) use LPC and MPC: await lpc.write_consumption_limit(evse, LoadLimit(4200, duration=3600)), mpc.power(evse), mpc.energy_consumed(evse).
The use cases follow eebus-go: evcc.charge_state(ev), evcc.communication_standard(ev), evcem.energy_charged(ev), opev.current_limits(ev) (min/max/default per phase) and so on. Values the device has not sent yet raise DataNotAvailable.
Lower levels are usable on their own: pyeebus.ship (ShipNode, ShipConnection) and pyeebus.spine (LocalDevice, features, subscriptions).
Limitation of Python's ssl: a server cannot request a client certificate without verifying it. For that reason pyeebus accepts incoming connections only from peers whose certificate it already knows, for example from an earlier outgoing connection. It reaches new peers as a client.
Development
python3 -m venv .venv && . .venv/bin/activate
pip install -e ".[test]"
pytest
The interop tests against ship-go and eebus-go run when SHIP_GO_HARNESS and EEBUS_GO_HARNESS point to the built harnesses; see interop/. CI builds them automatically. tools/gen_schema.py regenerates the SPINE list/key metadata from spine-go's model.
EEBUS is a trademark of EEBus Initiative e.V. This project is not affiliated with it.
Metadata
Release files for pyeebus 0.1.2
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 |
|---|---|---|---|---|
| pyeebus-0.1.2.tar.gz | 76.2 kB | With provenance | Details for pyeebus-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyeebus-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for pyeebus-0.1.2-py3-none-any.whl |
Total release size: 145.8 kB
Release files / pyeebus-0.1.2.tar.gz
| Download URL | pyeebus-0.1.2.tar.gz |
|---|---|
| Size | 76.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2aea4c57901ce11f87d294cda5171c3ef38d86d7c35b27201d77151ed7fa73da
|
|
BLAKE2b-256 checksum How to use checksums |
88edf0708a4b0ce7c03baec0170d36428c3657a777a708b72e5f1cf103f2c89f
|
| 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 17, 2026.
Transparency logRelease files / pyeebus-0.1.2-py3-none-any.whl
| Download URL | pyeebus-0.1.2-py3-none-any.whl |
|---|---|
| Size | 69.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3cd311c00ba246d3b7d3fc0eb189c38c2609b59eef08c4a01e596f4fb2ba0803
|
|
BLAKE2b-256 checksum How to use checksums |
cc8a9fa6b81ddd11ecc9fc1d36fed5449d7a7214054aa159862eb9bb928c38e4
|
| 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 17, 2026.
Transparency logSecurity for pyeebus 0.1.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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for pyeebus-0.1.2.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 17, 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.