Python Tesla Wall Connector API
Python Tesla Wall Connector API for local consumption. This package allows you to monitor your 3rd generation Tesla Wall Connector programmatically. It is mainly created to enable integration with Home Assistant and therefore exposes an asynchronous API.
Usage
import asyncio
from tesla_wall_connector import WallConnector
async def main():
async with WallConnector('TeslaWallConnector_ABC123.localdomain') as wall_connector:
lifetime = await wall_connector.async_get_lifetime()
print("energy_wh: {}Wh".format(lifetime.energy_wh))
asyncio.run(main())
Setting up development environment
This Python project is managed using uv, with project metadata defined in pyproject.toml.
You need at least:
- Python 3.11+
- uv
To install all packages, including all development requirements:
uv sync
Then install the Git hook once for this clone:
uv run pre-commit install --install-hooks
As this repository uses the pre-commit framework, all changes are linted and tested with each commit. You can run all checks and tests manually, using the following command:
uv run pre-commit run --all-files
To run Ruff directly:
uv run ruff check .
uv run ruff format --check .
To run Pyright directly:
uv run pyright
To run the Python tests:
uv run pytest
Metadata
Release files for tesla-wall-connector 1.2.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 | |
|---|---|---|---|
| tesla_wall_connector-1.2.0.tar.gz | 5.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tesla_wall_connector-1.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.8 kB
Release files / tesla_wall_connector-1.2.0.tar.gz
| Download URL | tesla_wall_connector-1.2.0.tar.gz |
|---|---|
| Size | 5.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
851a3090bfaab500eeaf8c3d18533608fc42bd5cdb81cb731456b3240110a910
|
|
BLAKE2b-256 checksum How to use checksums |
4a5136305975af5c7ca699d8a1a59cc6295e7ffdbe207f6e8811bf7d0df2a38b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.25 {"installer":{"name":"uv","version":"0.11.25","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / tesla_wall_connector-1.2.0-py3-none-any.whl
| Download URL | tesla_wall_connector-1.2.0-py3-none-any.whl |
|---|---|
| Size | 8.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b31d43bf93468b72d5a3166d795d3e935fb7d43231a517f17c16f0117f68eeae
|
|
BLAKE2b-256 checksum How to use checksums |
b44d277c0c51d2141f891c180cbb92038f5485c45fb856aab323de4385f26c80
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.25 {"installer":{"name":"uv","version":"0.11.25","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|