A Python library to interact with the Tesla API. It provides async access to vehicle data, controls (climate, charging, etc.), and energy products like Powerwall and solar. The current stable version is 3.13.2, supporting Python >=3.7. Release cadence is irregular, with several patches per year.
pip install teslajsonpyVerified import paths — ran on the pinned version, not inferred.
Connects to Tesla API and lists available vehicles. Requires TESLA_EMAIL and TESLA_PASSWORD environment variables.
Use async/await syntax and import from teslajsonpy (not teslajsonpy2).
Periodically call await tesla.connect() before expiry, or catch token errors and re-authenticate.
Use separate Tesla accounts for different integrations, or implement token sharing with care.
No dependency data recorded yet.