Skip to main content

python-voltie

Asynchronous Python client for the local HTTP API of Voltie EV chargers.

It talks to the charger directly on your network, without the Voltie cloud. It powers the Voltie Charger integration of Home Assistant.

Requirements

  • Python 3.12 or newer.
  • A Voltie charger with its HTTP API enabled in the Voltie app. If you set a username and password for the HTTP API there, pass them to the client.
  • RFID tag management needs HTTP API version 5 or newer.

Installation

pip install voltie

Usage

import asyncio

from voltie import DlmMode, VoltieCharger


async def main() -> None:
    async with VoltieCharger(
        "192.168.1.50", username="api", password="secret"
    ) as charger:
        status = await charger.status()
        print(status.charger_id, status.evse_state, status.charge_power)

        config = await charger.config()
        if "current_limit" in config.supported:
            await charger.set_config(current_limit=16, dlm_mode=DlmMode.ECO)

        await charger.display_text("Hello from Python")


asyncio.run(main())

Pass your own aiohttp.ClientSession with session= to share connections; the client then leaves it open.

What it covers

Method Endpoint Returns
status() GET /status Status, including the active ChargingSession
power() GET /power Power: per-phase voltage, current, power, load-management meters
config() / set_config(...) GET / PUT /config Config; settings the charger lacks read as None and are missing from Config.supported
start(...) / stop() GET /start, /stop
session(cdr_id) GET /cdr a closed ChargingSession, or None
api_version() GET /apiver major API version
display_text(...), set_rear_led(...), reboot() POST /extras
rfid_status(), rfid_tags(...), add_rfid_tag(...), modify_rfid_tag(...), delete_rfid_tag(...), rfid_learn(...), rfid_learn_cancel() /rfid, /rfid/status, /rfid/extras

SessionTracker follows the active session across status() readings and returns the closed record of a session once it ends.

Errors

All exceptions derive from VoltieError:

  • VoltieConnectionError: the charger is unreachable or sent an unusable response.
  • VoltieAuthenticationError: the HTTP API credentials were rejected.
  • VoltieCommandError: the charger refused the request; code holds its error code.
  • VoltieUnsupportedError: a VoltieCommandError for an endpoint or command the firmware lacks.

Read requests are retried once when the charger cannot be reached (retries=); commands are never retried.

Development

python -m venv .venv && . .venv/bin/activate
pip install -e . --group dev
pytest
mypy src tests
ruff check . && ruff format --check .

Releases are published to PyPI by the release workflow when a GitHub release is created. The release tag must equal the version in pyproject.toml, and every release lists its changes in CHANGELOG.md.

License

Apache License 2.0, see LICENSE.

Metadata

Release files for voltie 1.0.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 voltie 1.0.0
File Size Uploaded Provenance Actions
voltie-1.0.0.tar.gz 24.1 kB With provenance Details for voltie-1.0.0.tar.gz

Built distribution (wheel)

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

Total release size: 43.9 kB

Release files / voltie-1.0.0.tar.gz

Download URL voltie-1.0.0.tar.gz
Size 24.1 kB
Tags Source
SHA-256 checksum
How to use checksums
d03587f2cda9d44e9e7f0406d285b83e6824751102239836d643aec1db20b995
BLAKE2b-256 checksum
How to use checksums
e759372b48e23acf1ae614b0b93a1f1ce414cb03b40efe97f5b270e64f16bdf4
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 Oct 26, 2026.

Transparency log

Release files / voltie-1.0.0-py3-none-any.whl

Download URL voltie-1.0.0-py3-none-any.whl
Size 19.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d2663708fbe40e7b1582eb2331e4ceca262eb6dac1e8d8f48648b0b0412ec7f4
BLAKE2b-256 checksum
How to use checksums
d7a4ab8bfff3590f8750200e275f63f58fa6c19fb32776f12bcfb6ba512dbfee
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 Oct 26, 2026.

Transparency log

Security for voltie 1.0.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for voltie-1.0.0.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 Oct 26, 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

1.0.0 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