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 threfore 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 fully managed using the [Poetry][poetry] dependency manager.

You need at least:

  • Python 3.8+
  • [Poetry][poetry-install]

To install all packages, including all development requirements:

poetry install

As this repository uses the [pre-commit][pre-commit] framework, all changes are linted and tested with each commit. You can run all checks and tests manually, using the following command:

poetry run pre-commit run --all-files

To run the Python tests:

poetry 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.0.2.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

tesla_wall_connector-1.0.2-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file tesla-wall-connector-1.0.2.tar.gz.

File metadata

  • Download URL: tesla-wall-connector-1.0.2.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.10 CPython/3.8.10 Linux/5.10.16.3-microsoft-standard-WSL2

File hashes

Hashes for tesla-wall-connector-1.0.2.tar.gz
Algorithm Hash digest
SHA256 2acea28256a708debd44a367eabca1c86344fab142763cc98cf5c8053ac3b623
MD5 92762c75290d43c7b5de876c55144c14
BLAKE2b-256 84fdc2da0cf0966d3a585c0191acf1cdfef4c9744847fa47715add6f5a3f77c4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tesla_wall_connector-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.10 CPython/3.8.10 Linux/5.10.16.3-microsoft-standard-WSL2

File hashes

Hashes for tesla_wall_connector-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d9532211d21e8a527289bb54f606608c4e2837fff0d944f13026d50cdad6950a
MD5 03a6c40e96a2a59bc9e840e236247781
BLAKE2b-256 59c20ce1b3bd6cf5876f3d9f017aab25e979e55dcaacbf10e3bd30025ea8052b

See more details on using hashes here.

Supported by

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