A python library to communicate with the KEBA charging stations via udp
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file keba_kecontact-4.3.0.tar.gz.
File metadata
- Download URL: keba_kecontact-4.3.0.tar.gz
- Upload date:
- Size: 19.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
15bac681b75c9fbf1f4ad8d6eafba3539bf71391f9b6dc5e69eee35fd45e5c82
|
|
| MD5 |
2bcaa2e6085345660af6f8e845c0ef45
|
|
| BLAKE2b-256 |
77a8913c0b00bae91111515db7c3c4bb34c95042d6d7ffbabfc43e9172c21b92
|
File details
Details for the file keba_kecontact-4.3.0-py3-none-any.whl.
File metadata
- Download URL: keba_kecontact-4.3.0-py3-none-any.whl
- Upload date:
- Size: 19.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ea5d9a17ce01ed0c86b5a1df4f4f37c525ae30e2d952fbee6c2228231fbe2324
|
|
| MD5 |
c858868a35e2a9937990c6f497beb75f
|
|
| BLAKE2b-256 |
aac52d779bfd002cd9b87690adc4389a12ef31cadcec885c53047d474f86d4ff
|