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

Release files for keba_kecontact 4.3.0

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.0
File Size Uploaded
keba_kecontact-4.3.0.tar.gz 19.6 kB Details

Built distribution (wheel)

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

Total release size: 39.0 kB

Release files / keba_kecontact-4.3.0.tar.gz

Download URL keba_kecontact-4.3.0.tar.gz
Size 19.6 kB
Tags Source
SHA-256 checksum
How to use checksums
15bac681b75c9fbf1f4ad8d6eafba3539bf71391f9b6dc5e69eee35fd45e5c82
BLAKE2b-256 checksum
How to use checksums
77a8913c0b00bae91111515db7c3c4bb34c95042d6d7ffbabfc43e9172c21b92
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.11

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

Download URL keba_kecontact-4.3.0-py3-none-any.whl
Size 19.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ea5d9a17ce01ed0c86b5a1df4f4f37c525ae30e2d952fbee6c2228231fbe2324
BLAKE2b-256 checksum
How to use checksums
aac52d779bfd002cd9b87690adc4389a12ef31cadcec885c53047d474f86d4ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.11

Release history Release notifications | RSS feed

This release

4.3.0 This release

2 release files

4.2.2

2 release files

4.2.1

2 release files

4.1.0

2 release files

4.0.2

2 release files

4.0.1

2 release files

4.0.0

2 release files

3.0.3

2 release files

3.0.2

2 release files

3.0.1

2 release files

3.0.0

2 release files

2.4.0

2 release files

2.3.0

2 release files

2.2.6

2 release files

2.2.5

2 release files

2.2.4

2 release files

2.2.3

2 release files

2.2.2

2 release files

2.2.1

2 release files

2.1.2

2 release files

2.1.1

2 release files

2.1.0

2 release files

2.0.0

2 release files

1.3.0

2 release files

1.2.0

2 release files

1.1.1

1 release file

1.1.0

2 release files

1.0.0

2 release files

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