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 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 4.3.1
File Size Uploaded Provenance Actions
keba_kecontact-4.3.1.tar.gz 22.5 kB Without provenance Details for keba_kecontact-4.3.1.tar.gz

Built distribution (wheel)

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

Total release size: 42.1 kB

Release files / keba_kecontact-4.3.1.tar.gz

Download URL keba_kecontact-4.3.1.tar.gz
Size 22.5 kB
Tags Source
SHA-256 checksum
How to use checksums
e9ab8d291ec66d99cd86cb42df76c154f80be32acf4da3dc763086f632762338
BLAKE2b-256 checksum
How to use checksums
ed419f736a8056c4fb54f69acf75e06b638a6e615dada008c6894eb19b6ab0e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

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

Download URL keba_kecontact-4.3.1-py3-none-any.whl
Size 19.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
49f8cf44d6766e3cce16fbf4e24d82e4542f7f3085d4f394f53945a043b85f55
BLAKE2b-256 checksum
How to use checksums
a3fc3d70c9b53835835727c5acf43700461c6718dab9cd5d3e4559afcc3f6bab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for keba_kecontact 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.

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.

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