Welcome to teslajsonpy’s documentation!¶
teslajsonpy¶
Async python module for Tesla API primarily for enabling Home-Assistant.
NOTE: Tesla has no official API; therefore, this library may stop working at any time without warning.
Credits¶
Originally inspired by this code. Also thanks to Tim Dorr for documenting the API. Additional repo scaffolding from simplisafe-python.
Contributing¶
Check for open features/bugs or initiate a discussion on one.
Install the dev environment:
make init
.Enter the virtual environment:
poetry shell
Code your new feature or bug fix. Developers Reference
Write a test that covers your new functionality.
Update
README.md
with any new documentation.Run tests and ensure 100% code coverage for your contribution:
make coverage
Ensure you have no linting errors:
make lint
Ensure you have typed your code correctly:
make typing
Add yourself to
AUTHORS.md
.Submit a pull request!
Documentation¶
License¶
Apache-2.0. By providing a contribution, you agree the contribution is licensed under Apache-2.0. This code is provided as-is with no warranty. Use at your own risk.
API Reference¶
teslajsonpy
¶
Submodules¶
Classes¶
TeslaCar
: Represents a Tesla car.Connection
: Connection to Tesla Motors API.Controller
: Controller for connections to Tesla Motors API.EnergySite
: Base class to represents a Tesla energy site.PowerwallSite
: Represents a Tesla Energy Powerwall site.TeslaProxy
: Class to handle proxy login connections to Alexa.SolarPowerwallSite
: Represents a Tesla Energy Solar site with Powerwall(s).SolarSite
: Represents a Tesla Energy Solar site.
Exceptions¶
TeslaException
: Class of Tesla API exceptions.UnknownPresetMode
: Class of exceptions for Unknown Preset.RetryLimitError
: Class of exceptions for hitting retry limits.IncompleteCredentials
: Class of exceptions for incomplete credentials.
Variables¶
__version__