Elli Client
Python client library for the Elli Wallbox API.
Installation
pip install elli-client
Browser-based login with PKCE
Elli's Auth0 login uses Cloudflare Turnstile. Authentication therefore takes place interactively in a normal browser; this library neither opens the browser nor automates the CAPTCHA.
from elli_client import ElliAPIClient
client = ElliAPIClient()
# No network request is made here. Keep this object until the callback arrives.
authorization = client.create_authorization()
# Your application opens this URL in the user's browser.
print(authorization.authorization_url)
# Your application receives the complete custom-scheme callback URL, for example:
# com.elli.ios.emsp://login.elli.eco/ios/com.elli.ios.emsp/callback?code=...&state=...
callback_url = receive_callback_in_your_application()
tokens = client.exchange_callback(
callback_url=callback_url,
authorization=authorization,
)
client.set_tokens(tokens)
stations = client.get_stations()
The calling application is responsible for opening authorization_url, receiving the callback URL, and securely storing the refresh token. Elli Client deliberately contains no browser, GUI, URL-handler registration, Keychain integration, or persistent token storage. It never needs or processes the user's Elli password in the recommended flow.
Refreshing tokens
At a later application start, load the refresh token from the application's secure storage:
from elli_client import ElliAPIClient, ReauthenticationRequired
client = ElliAPIClient()
try:
tokens = client.refresh(stored_refresh_token)
except ReauthenticationRequired:
# Start the interactive browser flow again.
raise
client.set_tokens(tokens)
store_refresh_token_securely(tokens.refresh_token)
Auth0 may rotate refresh tokens. refresh() returns the new token when one is supplied; if the response omits it, the returned TokenResponse.refresh_token retains the token passed to refresh(). Consumers should always persist the refresh token from the returned object.
Password-login migration
The former call remains temporarily available to avoid an immediate breaking change:
token = client.login(email, password) # deprecated and unreliable
It now emits DeprecationWarning. Cloudflare Turnstile makes this direct HTTP login unreliable, and the library does not attempt to bypass it. Migrate to create_authorization(), exchange_callback(), and set_tokens() as shown above.
API features
- Query charging stations and firmware
- Retrieve active and historical charging sessions
- Retrieve RFID card data
- Retrieve charging records and download charging-report PDFs
- Refresh OAuth tokens with rotation support
See the quick-start guide and API reference for details.
Developers validating automatic macOS/Windows custom-scheme delivery can use the native callback E2E test harness.
Development
python3 -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"
pytest
black --check src tests
isort --check-only src tests
flake8 src tests
Home Assistant Integration
This client is used by the Elli Charger HACS integration for Home Assistant.
License and disclaimer
MIT License - see LICENSE. This library was created through reverse engineering of the official Elli iPhone app. It is not officially supported by Elli or Volkswagen Group Charging GmbH. Use at your own risk.
Metadata
Release files for elli-client 1.5.0
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 |
|---|---|---|---|---|
| elli_client-1.5.0.tar.gz | 17.7 kB | Without provenance | Details for elli_client-1.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| elli_client-1.5.0-py3-none-any.whl | Python 3 | none | any | Details for elli_client-1.5.0-py3-none-any.whl |
Total release size: 31.4 kB
Release files / elli_client-1.5.0.tar.gz
| Download URL | elli_client-1.5.0.tar.gz |
|---|---|
| Size | 17.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
76791ad2e141883e0d80319533bdfd1acd44f18c1e08a7f5e7776ddf2d74e50b
|
|
BLAKE2b-256 checksum How to use checksums |
f4848de4f6c6975f39fe58348c6b7abc0d0e660904d0be52f0a2d31de736f6c7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / elli_client-1.5.0-py3-none-any.whl
| Download URL | elli_client-1.5.0-py3-none-any.whl |
|---|---|
| Size | 13.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4f0adcffaba6f222c9e4fe12ba9fbe8a3cb8afbcc8e2ab49248fc26215ab6d7e
|
|
BLAKE2b-256 checksum How to use checksums |
25c180f326b0871f7022165ab3783adb0ce89187e08e34debd8dcabf1a2e4a89
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Security for elli-client 1.5.0
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.