Skip to content

Commit

Permalink
Merge pull request #933 from alandtse/dev
Browse files Browse the repository at this point in the history
  • Loading branch information
alandtse authored Mar 30, 2024
2 parents 23d23d9 + 922bf80 commit 3440eeb
Show file tree
Hide file tree
Showing 7 changed files with 335 additions and 75 deletions.
12 changes: 10 additions & 2 deletions .github/ISSUE_TEMPLATE/issue_car.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Telsa Car Issue
description: Create a report to help us improve
title: "Car Issue: "
title: "Car: "
labels: ["triage", "car"]
body:
- type: checkboxes
Expand All @@ -10,6 +10,14 @@ body:
options:
- label: I have searched both the existing open issues & recently closed issues and did not find a duplicate of this issue.
required: true
- type: checkboxes
attributes:
label: I have read about the [Fleet API](https://github.com/alandtse/tesla?tab=readme-ov-file#tesla-fleet-api-proxy) and understand I may need to use it
description: Unless you have a Pre-2021 Model S/X the Fleet API will need to be used for all other vehicles in the future.
options:
- label: I understand issues relating to read only commands will be auto closed if not using the Fleet API.
required: true

- type: markdown
attributes:
value: |
Expand Down Expand Up @@ -61,7 +69,7 @@ body:
description: Enable the debug logs ([In Home Assistant](https://my.home-assistant.io/redirect/integration/?domain=tesla_custom) & click `Enable debug logging`)
render: true
placeholder: |
Your logs here
Your logs here, please follow the instructions above - https://my.home-assistant.io/redirect/integration/?domain=tesla_custom.
validations:
required: true

Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ repos:
- hooks:
- id: black
repo: https://github.com/psf/black
rev: 24.2.0
rev: 24.3.0
- repo: https://github.com/pre-commit/mirrors-prettier
hooks:
- id: prettier
Expand Down
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,15 @@ To use the component, you will need an application to generate a Tesla refresh t
6. Place the files you downloaded in the new directory (folder) you created.
7. Restart Home Assistant.
8. [![Add Integration][add-integration-badge]][add-integration] or in the HA UI go to "Settings" -> "Devices & Services" then click "+" and search for "Tesla Custom Integration".
9. For most vehicles, you will need to the Tesla Fleet API Proxy (see below).

Note: This integration will wake up your vehicle(s) during installation.

## Tesla Fleet API Proxy

Tesla has [deprecated](https://developer.tesla.com/docs/fleet-api) the Owner API for _most_ vehicles in favor of a new Fleet API with end-to-end encryption. You'll know you're affected if you see this error in the log:
Tesla has [deprecated](https://developer.tesla.com/docs/fleet-api) the Owner API for _most_ vehicles in favor of a new Fleet API with end-to-end encryption. You'll know you're affected if you see errors in the log when attempting to send commands (sensors will work regardless)

> [teslajsonpy.connection] 403: {"response":null,"error":"Tesla Vehicle Command Protocol required, please refer to the documentation here: https://developer.tesla.com/docs/fleet-api#2023-10-09-rest-api-vehicle-commands-endpoint-deprecation-warning","error_description":""}
If your vehicle is affected by this, you'll need to install the [Tesla HTTP Proxy](https://github.com/llamafilm/tesla-http-proxy-addon) add-on and configure this component to use it. This requires a complex setup; see [here](https://github.com/llamafilm/tesla-http-proxy-addon/blob/main/tesla_http_proxy/DOCS.md) for details. After configuring the add-on, tick the box for "Fleet API Proxy" in this component, and the config flow will autofill your Client ID, Proxy URL, and SSL certificate.
If your vehicle is affected by this (most likely), you'll need to install the [Tesla HTTP Proxy](https://github.com/llamafilm/tesla-http-proxy-addon) add-on and configure this component to use it. This requires a complex setup; see [here](https://github.com/llamafilm/tesla-http-proxy-addon/blob/main/tesla_http_proxy/DOCS.md) for details. After configuring the add-on, tick the box for "Fleet API Proxy" in this component, and the config flow will autofill your Client ID, Proxy URL, and SSL certificate.

<!---->

Expand Down
2 changes: 1 addition & 1 deletion custom_components/tesla_custom/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@
"iot_class": "cloud_polling",
"issue_tracker": "https://github.com/alandtse/tesla/issues",
"loggers": ["teslajsonpy"],
"requirements": ["teslajsonpy==3.10.1"],
"requirements": ["teslajsonpy==3.10.2"],
"version": "3.20.4"
}
Loading

0 comments on commit 3440eeb

Please sign in to comment.