Skip to main content

KEBA KeContact

This is python module to control KEBA charging stations, in specific the P20 and P30 (including different branding like BMW wallbox and SolarEdge). Commands were taken from the UDP Programming Manual. The module was written for the usage in Home Assistant and is based on asyncio.

Install

You can install the module from pypi.org

pip install keba_kecontact

or from source

git clone https://github.com/dannerph/keba-kecontact
cd keba-kecontact
pip install .

Command Line Interface

The module contains a command line interface to connect and send UDP commands, discover charging stations in your local networks and emulate a KEBA charging station for testing purposes. Run

python -m keba_kecontact

and follow the instructions.

Use the module in your code

The module is written using asyncio and creates a UDP socket to listen for incoming packets on port 7090 (cannot be changed).

from keba_kecontact import create_keba_connection
from keba_kecontact.connection import ChargingStation, SetupError


async def connect(ip: str) -> None:
    keba = await create_keba_connection()
    try:
        charging_station = await keba.setup_charging_station(ip, periodic_request=False)
    except SetupError as ex:
        print(f"Charging station at {ip} could not be set up: {ex}")

Support Development

Paypal

Metadata

Release files for keba-kecontact-spali 4.3.1

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

Source distribution (sdist)

Source distribution for keba-kecontact-spali 4.3.1
File Size Uploaded Provenance Actions
keba_kecontact_spali-4.3.1.tar.gz 23.6 kB With provenance Details for keba_kecontact_spali-4.3.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for keba-kecontact-spali 4.3.1
File Interpreter ABI Platform Actions
keba_kecontact_spali-4.3.1-py3-none-any.whl Python 3 none any Details for keba_kecontact_spali-4.3.1-py3-none-any.whl

Total release size: 43.3 kB

Release files / keba_kecontact_spali-4.3.1.tar.gz

Download URL keba_kecontact_spali-4.3.1.tar.gz
Size 23.6 kB
Tags Source
SHA-256 checksum
How to use checksums
dca329fc074dc852ebf3670d4800d07c1f25e4f445993ca918f8e49b6e38e88e
BLAKE2b-256 checksum
How to use checksums
e2d099e07cd571dad5a787fe15f1702bb4cbbdd8af71e8a33875db98e33cada5
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 19, 2026.

Transparency log

Release files / keba_kecontact_spali-4.3.1-py3-none-any.whl

Download URL keba_kecontact_spali-4.3.1-py3-none-any.whl
Size 19.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f53b60bc00ee8c877359be7f5febef12226a405ec6922c9fe91eb002898233de
BLAKE2b-256 checksum
How to use checksums
19e36ee2db8a3c5c1237dc4ae8fa16a00f919a2acb76d82af9dad092a2661f62
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 19, 2026.

Transparency log

Security for keba-kecontact-spali 4.3.1

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 keba_kecontact_spali-4.3.1.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 19, 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.

Release history Release notifications | RSS feed

This release

4.3.1 This release

2 release files Full 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