-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: add support for solar systems and powerwall (#341)
- New module `car.py` that contains a `TeslaCar` class. - New module `energy.py` that contains energy site classes. - New method `Controller.generate_car_objects` that generates `TeslaCar` objects and stores them into `self.cars` by vin. - New method `Controller.generate_energysite_objects` that generates `SolarSite`, `PowerwallSite` or `SolarPowerwallSite` objects and stores them in the `self.energysites` dictionary by `energysite_id`. - Modified `Controller.update` to now just send a single request to the `PRODUCT_LIST` endpoint (instead of both `PRODUCT_LIST` and `VEHICLE_LIST` to get all products on a Tesla account. From there, create a list of cars `self._vehicle_list` and energy sites `self._energysite_list`. - Storing JSON responses as-is into their own dictionary by VIN for cars and energysite_id for energysites. These are then passed to `TeslaCar` and `EnergySite` when instantiated. - Added `include_vehicles` and `include_energysites` arguments to `Controller.connect` which default to True. This provides the option to completely ignore vehicles or energysites. - Removed `Controller.command`, `Controller.get` and `Controller.post` methods. Only `Controller._wake_up` was using `post` which now uses `Controller.api`. - Removed all Home Assistant specific modules. - Removed some unused code specific to energy sites. - Changes to some naming to try to better align with what the Tesla API uses. closes #348 closes #334 closes #24 BREAKING CHANGE: HomeAssistant specific code has been moved out. The API is now just a communication layer Co-authored-by: Alan D. Tse <[email protected]>
- Loading branch information
Showing
117 changed files
with
5,501 additions
and
11,378 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-210 Bytes
(95%)
docs/html/.doctrees/teslajsonpy/teslajsonpy.__version__.doctree
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-399 Bytes
(91%)
docs/html/.doctrees/teslajsonpy/teslajsonpy.connection.doctree
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-597 Bytes
(87%)
docs/html/.doctrees/teslajsonpy/teslajsonpy.controller.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-56 Bytes
(99%)
docs/html/.doctrees/teslajsonpy/teslajsonpy.exceptions.doctree
Binary file not shown.
Binary file modified
BIN
-56 Bytes
(99%)
docs/html/.doctrees/teslajsonpy/teslajsonpy.teslaproxy.doctree
Binary file not shown.
21 changes: 21 additions & 0 deletions
21
docs/html/_images/inheritance-0dbc7738a653e6b377a0ecd13ac7f7484bedad11.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
51 changes: 51 additions & 0 deletions
51
docs/html/_images/inheritance-4f6386a5234fea17fedeb56cf70872e286545e64.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions
21
docs/html/_images/inheritance-71b6f0b12ec45c5414897664f71e38a513d053d0.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions
21
docs/html/_images/inheritance-77cc9d6fd208a1891895f19fca09248de5ca339f.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 36 additions & 0 deletions
36
docs/html/_images/inheritance-7877e39150bae1f6ca80df3344fe0b0241b09280.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 36 additions & 0 deletions
36
docs/html/_images/inheritance-7d9b4170781ce0b4e800e5675fdd5de65016c0e2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 36 additions & 0 deletions
36
docs/html/_images/inheritance-81b811f84e619cd52e2025b473822a54db9f3ec8.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 36 additions & 0 deletions
36
docs/html/_images/inheritance-8a9dc26e9acdebb26819697bc4f39b77066ed854.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 36 additions & 0 deletions
36
docs/html/_images/inheritance-928cd69abc9505aca94c8f8b91a1c17f81333abe.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions
21
docs/html/_images/inheritance-a090ad758ca83c619b0aa35f221997c855e80113.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 36 additions & 0 deletions
36
docs/html/_images/inheritance-cae061804218301f8d8f2d415586d1b456ddee87.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.