Skip to main content

API Library for communicating with a Tesla Wall Connector

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tesla_wall_connector-1.2.0.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tesla_wall_connector-1.2.0-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file tesla_wall_connector-1.2.0.tar.gz.

File metadata

  • Download URL: tesla_wall_connector-1.2.0.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for tesla_wall_connector-1.2.0.tar.gz
Algorithm Hash digest
SHA256 851a3090bfaab500eeaf8c3d18533608fc42bd5cdb81cb731456b3240110a910
MD5 37716add3a04524ff2da8531fa6ed31e
BLAKE2b-256 4a5136305975af5c7ca699d8a1a59cc6295e7ffdbe207f6e8811bf7d0df2a38b

See more details on using hashes here.

File details

Details for the file tesla_wall_connector-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: tesla_wall_connector-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for tesla_wall_connector-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b31d43bf93468b72d5a3166d795d3e935fb7d43231a517f17c16f0117f68eeae
MD5 345a2d61ffa659f6a2e456194b138358
BLAKE2b-256 b44d277c0c51d2141f891c180cbb92038f5485c45fb856aab323de4385f26c80

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page