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.1.0.tar.gz (5.3 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.1.0-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tesla_wall_connector-1.1.0.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.3 Linux/6.6.87.2-microsoft-standard-WSL2

File hashes

Hashes for tesla_wall_connector-1.1.0.tar.gz
Algorithm Hash digest
SHA256 ab1b6c790f3133266bc82fc23931e3606ea94f07697e39215b1c64224f42361c
MD5 5951433ce83bccc4cea44c398db0d0d1
BLAKE2b-256 98143af47e2c0203834b13635571c52ca2122112a9ca7f9a7dda7d7305ba06fd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tesla_wall_connector-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.3 Linux/6.6.87.2-microsoft-standard-WSL2

File hashes

Hashes for tesla_wall_connector-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 725f5b0b9641fd541fc6300d721b5d32643329daa0575c2fde8b2972d0ebdc86
MD5 a4fb69435ba57dfc0438bcbdfbc18625
BLAKE2b-256 9ac5c769304047e71ddec0569aa93a435a746fb691d6a62affda8646dec84cca

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