tesla_api 3.0.0 → 3.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/docs/README.md +1 -1
- data/docs/SUMMARY.md +35 -34
- data/docs/api-basics/vehicles.md +5 -6
- data/docs/miscellaneous/endpoints.md +29 -4
- data/docs/vehicle/commands/README.md +11 -3
- data/docs/vehicle/commands/climate.md +21 -0
- data/docs/vehicle/commands/homelink.md +21 -0
- data/docs/vehicle/commands/sharing.md +38 -0
- data/docs/vehicle/commands/valet.md +7 -5
- data/docs/vehicle/commands/wake.md +4 -1
- data/docs/vehicle/commands/windows.md +26 -0
- data/docs/vehicle/optioncodes.md +22 -6
- data/docs/vehicle/state/chargestate.md +1 -0
- data/docs/vehicle/state/climatestate.md +1 -1
- data/docs/vehicle/state/data.md +27 -7
- data/docs/vehicle/state/guisettings.md +1 -0
- data/docs/vehicle/state/vehiclestate.md +46 -15
- data/lib/tesla_api.rb +4 -2
- data/lib/tesla_api/autopark.rb +23 -41
- data/lib/tesla_api/client.rb +14 -7
- data/lib/tesla_api/stream.rb +40 -34
- data/lib/tesla_api/vehicle.rb +49 -1
- data/lib/tesla_api/version.rb +1 -1
- data/spec/cassettes/client-login_timeout.yml +83 -0
- data/spec/cassettes/vehicle-media_next_fav.yml +109 -0
- data/spec/cassettes/vehicle-media_next_track.yml +109 -0
- data/spec/cassettes/vehicle-media_prev_fav.yml +109 -0
- data/spec/cassettes/vehicle-media_prev_track.yml +109 -0
- data/spec/cassettes/vehicle-media_toggle_playback.yml +109 -0
- data/spec/cassettes/vehicle-media_volume_down.yml +109 -0
- data/spec/cassettes/vehicle-media_volume_up.yml +109 -0
- data/spec/cassettes/vehicle-vehicle_config.yml +108 -0
- data/spec/lib/tesla_api/client_spec.rb +30 -0
- data/spec/lib/tesla_api/vehicle_spec.rb +57 -0
- data/tesla_api.gemspec +1 -1
- metadata +30 -10
- data/docs/vehicle/commands/navigation.md +0 -36
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 321a3deb2934f51a38bc1f3d427ceb123ebe2b8af3f5c7bba6453d66aedf40ab
|
4
|
+
data.tar.gz: a751ba87102749678d1ceb57e711050a19556344399c8da01adb06342c421802
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 134fc9efde3baf7d3d9b07d1bfe94f984a5c74799cd1c391f4df6bef6f718494da715b72a465d8e767dc04d15e5b49f659f4ecbb347bc52bebca69963b29d809
|
7
|
+
data.tar.gz: 2422bbf4044c8887d89f3d30a79cebf8e01eff9f0c9e544e87ac07bb1f9edd84b69b2f8b0916963347460436db8064a99dfe9299e259856b221b68fde3e100e4
|
data/docs/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Introduction
|
2
2
|
|
3
|
-
This is unofficial documentation of the Tesla JSON API used by their iOS and Android apps. It features functionality to monitor and control their vehicle (
|
3
|
+
This is unofficial documentation of the Tesla JSON API used by their iOS and Android apps. It features functionality to monitor and control their vehicle (Models S, 3, X, Y) and power (Powerwall) products. We currently have documentation for their vehicles, but always accept [pull requests](https://github.com/timdorr/tesla-api/pulls) for improvements and additions.
|
4
4
|
|
5
5
|
## Before You Begin
|
6
6
|
|
data/docs/SUMMARY.md
CHANGED
@@ -1,45 +1,46 @@
|
|
1
1
|
# Table of contents
|
2
2
|
|
3
|
-
|
3
|
+
- [Introduction](README.md)
|
4
4
|
|
5
5
|
## API Basics
|
6
6
|
|
7
|
-
|
8
|
-
|
7
|
+
- [Authentication](api-basics/authentication.md)
|
8
|
+
- [Vehicles](api-basics/vehicles.md)
|
9
9
|
|
10
10
|
## Vehicle
|
11
11
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
12
|
+
- [State](vehicle/state/README.md)
|
13
|
+
- [Data](vehicle/state/data.md)
|
14
|
+
- [Charge State](vehicle/state/chargestate.md)
|
15
|
+
- [Climate State](vehicle/state/climatestate.md)
|
16
|
+
- [Drive State](vehicle/state/drivestate.md)
|
17
|
+
- [GUI Settings](vehicle/state/guisettings.md)
|
18
|
+
- [Vehicle State](vehicle/state/vehiclestate.md)
|
19
|
+
- [Vehicle Config](vehicle/state/vehicleconfig.md)
|
20
|
+
- [Mobile Enabled](vehicle/state/mobileenabled.md)
|
21
|
+
- [Nearby Charging Sites](vehicle/state/nearbychargingsites.md)
|
22
|
+
- [Commands](vehicle/commands/README.md)
|
23
|
+
- [Wake](vehicle/commands/wake.md)
|
24
|
+
- [Alerts](vehicle/commands/alerts.md)
|
25
|
+
- [Remote Start](vehicle/commands/remotestart.md)
|
26
|
+
- [Homelink](vehicle/commands/homelink.md)
|
27
|
+
- [Speed Limit](vehicle/commands/speedlimit.md)
|
28
|
+
- [Valet Mode](vehicle/commands/valet.md)
|
29
|
+
- [Sentry Mode](vehicle/commands/sentrymode.md)
|
30
|
+
- [Doors](vehicle/commands/doors.md)
|
31
|
+
- [Frunk/Trunk](vehicle/commands/trunk.md)
|
32
|
+
- [Windows](vehicle/commands/windows.md)
|
33
|
+
- [Sunroof](vehicle/commands/sunroof.md)
|
34
|
+
- [Charging](vehicle/commands/charging.md)
|
35
|
+
- [Climate](vehicle/commands/climate.md)
|
36
|
+
- [Media](vehicle/commands/media.md)
|
37
|
+
- [Sharing](vehicle/commands/sharing.md)
|
38
|
+
- [Software Updates](vehicle/commands/softwareupdate.md)
|
39
|
+
- [Calendar](vehicle/commands/calendar.md)
|
40
|
+
- [Streaming](vehicle/streaming.md)
|
41
|
+
- [Autopark/Summon](vehicle/autopark.md)
|
42
|
+
- [Option Codes](vehicle/optioncodes.md)
|
41
43
|
|
42
44
|
## Miscellaneous
|
43
45
|
|
44
|
-
|
45
|
-
|
46
|
+
- [Endpoints File](miscellaneous/endpoints.md)
|
data/docs/api-basics/vehicles.md
CHANGED
@@ -35,7 +35,7 @@ Retrieve a list of your owned vehicles (includes vehicles not yet shipped!)
|
|
35
35
|
"in_service": false,
|
36
36
|
"id_s": "12345678901234567",
|
37
37
|
"calendar_enabled": true,
|
38
|
-
"api_version":
|
38
|
+
"api_version": 7,
|
39
39
|
"backseat_token": null,
|
40
40
|
"backseat_token_updated_at": null
|
41
41
|
}
|
@@ -50,9 +50,9 @@ These resources are read-only and determine the state of the vehicle's various s
|
|
50
50
|
|
51
51
|
### URL parameters
|
52
52
|
|
53
|
-
| Field | Example
|
54
|
-
|
|
55
|
-
| `id`
|
53
|
+
| Field | Example | Description |
|
54
|
+
| :---- | :------------------ | :------------------------------------------- |
|
55
|
+
| `id` | `12345678901234567` | The `id` of the car. (Not the `vehicle_id`!) |
|
56
56
|
|
57
57
|
### Response
|
58
58
|
|
@@ -70,10 +70,9 @@ These resources are read-only and determine the state of the vehicle's various s
|
|
70
70
|
"in_service": false,
|
71
71
|
"id_s": "12345678901234567",
|
72
72
|
"calendar_enabled": true,
|
73
|
-
"api_version":
|
73
|
+
"api_version": 7,
|
74
74
|
"backseat_token": null,
|
75
75
|
"backseat_token_updated_at": null
|
76
76
|
}
|
77
77
|
}
|
78
78
|
```
|
79
|
-
|
@@ -1,9 +1,14 @@
|
|
1
1
|
# Endpoints File
|
2
2
|
|
3
|
-
This the latest contents of the ownerapi_endpoints.json file from the 3.
|
3
|
+
This the latest contents of the ownerapi_endpoints.json file from the 3.10.2 version of the app.
|
4
4
|
|
5
5
|
```json
|
6
6
|
{
|
7
|
+
"STATUS": {
|
8
|
+
"TYPE": "GET",
|
9
|
+
"URI": "status",
|
10
|
+
"AUTH": false
|
11
|
+
},
|
7
12
|
"AUTHENTICATE": {
|
8
13
|
"TYPE": "POST",
|
9
14
|
"URI": "oauth/token",
|
@@ -84,6 +89,11 @@ This the latest contents of the ownerapi_endpoints.json file from the 3.9.0 vers
|
|
84
89
|
"URI": "api/1/vehicles/{vehicle_id}/command/auto_conditioning_stop",
|
85
90
|
"AUTH": true
|
86
91
|
},
|
92
|
+
"MAX_DEFROST": {
|
93
|
+
"TYPE": "POST",
|
94
|
+
"URI": "api/1/vehicles/{vehicle_id}/command/set_preconditioning_max",
|
95
|
+
"AUTH": true
|
96
|
+
},
|
87
97
|
"CHANGE_CLIMATE_TEMPERATURE_SETTING": {
|
88
98
|
"TYPE": "POST",
|
89
99
|
"URI": "api/1/vehicles/{vehicle_id}/command/set_temps",
|
@@ -99,6 +109,11 @@ This the latest contents of the ownerapi_endpoints.json file from the 3.9.0 vers
|
|
99
109
|
"URI": "api/1/vehicles/{vehicle_id}/command/sun_roof_control",
|
100
110
|
"AUTH": true
|
101
111
|
},
|
112
|
+
"WINDOW_CONTROL": {
|
113
|
+
"TYPE": "POST",
|
114
|
+
"URI": "api/1/vehicles/{vehicle_id}/command/window_control",
|
115
|
+
"AUTH": true
|
116
|
+
},
|
102
117
|
"ACTUATE_TRUNK": {
|
103
118
|
"TYPE": "POST",
|
104
119
|
"URI": "api/1/vehicles/{vehicle_id}/command/actuate_trunk",
|
@@ -109,6 +124,11 @@ This the latest contents of the ownerapi_endpoints.json file from the 3.9.0 vers
|
|
109
124
|
"URI": "api/1/vehicles/{vehicle_id}/command/remote_start_drive",
|
110
125
|
"AUTH": true
|
111
126
|
},
|
127
|
+
"TRIGGER_HOMELINK": {
|
128
|
+
"TYPE": "POST",
|
129
|
+
"URI": "api/1/vehicles/{vehicle_id}/command/trigger_homelink",
|
130
|
+
"AUTH": true
|
131
|
+
},
|
112
132
|
"CHARGE_PORT_DOOR_OPEN": {
|
113
133
|
"TYPE": "POST",
|
114
134
|
"URI": "api/1/vehicles/{vehicle_id}/command/charge_port_door_open",
|
@@ -309,7 +329,7 @@ This the latest contents of the ownerapi_endpoints.json file from the 3.9.0 vers
|
|
309
329
|
"URI": "api/1/vehicles/{vehicle_id}/eligible_upgrades",
|
310
330
|
"AUTH": true
|
311
331
|
},
|
312
|
-
"
|
332
|
+
"UPGRADE_URL": {
|
313
333
|
"TYPE": "GET",
|
314
334
|
"URI": "api/1/vehicles/{vehicle_id}/purchase_url",
|
315
335
|
"AUTH": true
|
@@ -425,6 +445,11 @@ This the latest contents of the ownerapi_endpoints.json file from the 3.9.0 vers
|
|
425
445
|
"URI": "api/1/energy_sites/{site_id}/backup",
|
426
446
|
"AUTH": true
|
427
447
|
},
|
448
|
+
"OFF_GRID_VEHICLE_CHARGING_RESERVE": {
|
449
|
+
"TYPE": "POST",
|
450
|
+
"URI": "api/1/energy_sites/{site_id}/off_grid_vehicle_charging_reserve",
|
451
|
+
"AUTH": true
|
452
|
+
},
|
428
453
|
"SITE_NAME": {
|
429
454
|
"TYPE": "POST",
|
430
455
|
"URI": "api/1/energy_sites/{site_id}/site_name",
|
@@ -450,9 +475,9 @@ This the latest contents of the ownerapi_endpoints.json file from the 3.9.0 vers
|
|
450
475
|
"URI": "api/1/notification_confirmations",
|
451
476
|
"AUTH": true
|
452
477
|
},
|
453
|
-
"
|
478
|
+
"SHARE_TO_VEHICLE": {
|
454
479
|
"TYPE": "POST",
|
455
|
-
"URI": "api/1/vehicles/{vehicle_id}/command/
|
480
|
+
"URI": "api/1/vehicles/{vehicle_id}/command/share",
|
456
481
|
"AUTH": true
|
457
482
|
},
|
458
483
|
"REMOTE_SEAT_HEATER_REQUEST": {
|
@@ -18,6 +18,10 @@ Controls for honking the horn and flashing the lights.
|
|
18
18
|
|
19
19
|
Start the car remotely.
|
20
20
|
|
21
|
+
{% page-ref page="homelink.md" %}
|
22
|
+
|
23
|
+
Open or close the primary garage door via Homelink.
|
24
|
+
|
21
25
|
{% page-ref page="speedlimit.md" %}
|
22
26
|
|
23
27
|
Limit the maximum speed of the car.
|
@@ -34,6 +38,10 @@ Lock and unlock the car.
|
|
34
38
|
|
35
39
|
Open and close the trunk and frunk.
|
36
40
|
|
41
|
+
{% page-ref page="windows.md" %}
|
42
|
+
|
43
|
+
Open and vent the windows.
|
44
|
+
|
37
45
|
{% page-ref page="sunroof.md" %}
|
38
46
|
|
39
47
|
Open and close the panoramic sunroof.
|
@@ -50,9 +58,9 @@ Adjust the temperature settings of the car.
|
|
50
58
|
|
51
59
|
Control the media playing in the car.
|
52
60
|
|
53
|
-
{% page-ref page="
|
61
|
+
{% page-ref page="sharing.md" %}
|
54
62
|
|
55
|
-
|
63
|
+
Share a location to navigate to or video to play in theatre mode.
|
56
64
|
|
57
65
|
{% page-ref page="softwareupdate.md" %}
|
58
66
|
|
@@ -64,4 +72,4 @@ Enable or disable Sentry Mode.
|
|
64
72
|
|
65
73
|
{% page-ref page="calendar.md" %}
|
66
74
|
|
67
|
-
Synchronize a calendar with the car.
|
75
|
+
Synchronize a calendar with the car.
|
@@ -30,6 +30,8 @@ Stop the climate control (HVAC) system.
|
|
30
30
|
|
31
31
|
Sets the target temperature for the climate control (HVAC) system.
|
32
32
|
|
33
|
+
Note: Despite accepting two parameters, only the `driver_temp` will be used to set the target temperature.
|
34
|
+
|
33
35
|
Note: The parameters are always in celsius, regardless of the region the car is in or the display settings of the car.
|
34
36
|
|
35
37
|
### Parameters
|
@@ -48,6 +50,25 @@ Note: The parameters are always in celsius, regardless of the region the car is
|
|
48
50
|
}
|
49
51
|
```
|
50
52
|
|
53
|
+
## POST `/api/1/vehicles/{id}/command/set_preconditioning_max`
|
54
|
+
|
55
|
+
Toggles the climate controls between Max Defrost and the previous setting.
|
56
|
+
|
57
|
+
### Parameters
|
58
|
+
|
59
|
+
| Parameter | Example | Description |
|
60
|
+
| :-------- | :------ | :---------------------------------- |
|
61
|
+
| on | true | True to turn on, false to turn off. |
|
62
|
+
|
63
|
+
### Response
|
64
|
+
|
65
|
+
```json
|
66
|
+
{
|
67
|
+
"reason": "",
|
68
|
+
"result": true
|
69
|
+
}
|
70
|
+
```
|
71
|
+
|
51
72
|
## POST `/api/1/vehicles/{id}/command/remote_seat_heater_request`
|
52
73
|
|
53
74
|
Sets the specified seat's heater level.
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# Homelink
|
2
|
+
|
3
|
+
## POST `/api/1/vehicles/{id}/command/trigger_homelink`
|
4
|
+
|
5
|
+
Opens or closes the primary Homelink device. The provided location must be in proximity of stored location of the Homelink device.
|
6
|
+
|
7
|
+
### Parameters
|
8
|
+
|
9
|
+
| Parameter | Example | Description |
|
10
|
+
| :-------- | :----------------- | :----------------- |
|
11
|
+
| lat | 36.98765432109876 | Current latitude. |
|
12
|
+
| lon | -77.12345678901234 | Current longitude. |
|
13
|
+
|
14
|
+
### Response
|
15
|
+
|
16
|
+
```json
|
17
|
+
{
|
18
|
+
"reason": "",
|
19
|
+
"result": true
|
20
|
+
}
|
21
|
+
```
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# Sharing
|
2
|
+
|
3
|
+
## POST `/api/1/vehicles/{id}/command/share`
|
4
|
+
|
5
|
+
Sends a location for the car to start navigation or play a video in theatre mode.
|
6
|
+
|
7
|
+
These docs take from the Android app, which sends the data in JSON form. However, a [URL-encoded](https://en.wikipedia.org/wiki/Percent-encoding) POST body will work as well. The basic format to a request looks like this:
|
8
|
+
|
9
|
+
```json
|
10
|
+
{
|
11
|
+
"type": "share_ext_content_raw",
|
12
|
+
"value": {
|
13
|
+
"android.intent.extra.TEXT": "123 Main St, City, ST 12345\n\nhttps://goo.gl/maps/X"
|
14
|
+
},
|
15
|
+
"locale": "en-US",
|
16
|
+
"timestamp_ms": "1539465730"
|
17
|
+
}
|
18
|
+
```
|
19
|
+
|
20
|
+
Note: This API was previously `navigation_request`, but has been updated to support video links as well.
|
21
|
+
|
22
|
+
### Parameters
|
23
|
+
|
24
|
+
| Parameter | Example | Description |
|
25
|
+
| :------------------------------- | :-------------------------- | :------------------------------------------------------------- |
|
26
|
+
| type | share_ext_content_raw | Must be `share_ext_content_raw`. |
|
27
|
+
| locale | en-US | The locale for the navigation request. [ISO 639-1 standard language codes](https://www.andiamo.co.uk/resources/iso-language-codes/) |
|
28
|
+
| timestamp_ms | 1539465730 | The current UNIX timestamp. |
|
29
|
+
| value[android.intent.extra.TEXT] | 123 Main St, City, ST 12345 | The address or video URL to set as the navigation destination. |
|
30
|
+
|
31
|
+
### Response
|
32
|
+
|
33
|
+
```json
|
34
|
+
{
|
35
|
+
"reason": "",
|
36
|
+
"result": true
|
37
|
+
}
|
38
|
+
```
|
@@ -4,16 +4,18 @@ Valet Mode limits the car's top speed to 70MPH and 80kW of acceleration power. I
|
|
4
4
|
Wifi settings, and the ability to disable mobile access to the car. It also hides your favorites, home, and work
|
5
5
|
locations in navigation.
|
6
6
|
|
7
|
+
Note: the `password` parameter isn't required to turn on or off Valet Mode, even with a previous PIN set. If you clear the PIN and activate Valet Mode without the parameter, you will only be able to deactivate it from your car's screen by signing into your Tesla account.
|
8
|
+
|
7
9
|
## POST `/api/1/vehicles/{id}/command/set_valet_mode`
|
8
10
|
|
9
11
|
Activates or deactivates Valet Mode.
|
10
12
|
|
11
13
|
### Parameters
|
12
14
|
|
13
|
-
| Parameter | Example | Description
|
14
|
-
| :-------- | :------ |
|
15
|
-
| on | true | true to activate, false to deactivate.
|
16
|
-
| password | 1234 | A PIN to deactivate Valet Mode.
|
15
|
+
| Parameter | Example | Description |
|
16
|
+
| :-------- | :------ | :------------------------------------------------------------------------------ |
|
17
|
+
| on | true | true to activate, false to deactivate. |
|
18
|
+
| password | 1234 | A PIN to deactivate Valet Mode. Please see note about the `password` parameter. |
|
17
19
|
|
18
20
|
### Response
|
19
21
|
|
@@ -26,7 +28,7 @@ Activates or deactivates Valet Mode.
|
|
26
28
|
|
27
29
|
## POST `/api/1/vehicles/{id}/command/reset_valet_pin`
|
28
30
|
|
29
|
-
Clears the currently set PIN for Valet Mode when deactivated. A new PIN will be required when activating
|
31
|
+
Clears the currently set PIN for Valet Mode when deactivated. A new PIN will be required when activating from the car screen. See the note above about activating via the API without a PIN set.
|
30
32
|
|
31
33
|
### Response
|
32
34
|
|
@@ -4,6 +4,9 @@
|
|
4
4
|
|
5
5
|
Wakes up the car from a sleeping state.
|
6
6
|
|
7
|
+
The API will return a response immediately, however it could take several seconds before the car is actually online and ready to receive other commands.
|
8
|
+
One way to deal with this is to call this endpoint in a loop until the returned state says "online", with a timeout to give up. In some cases, the wake up can be slow, so consider using a timeout of atleast 30 seconds.
|
9
|
+
|
7
10
|
### Response
|
8
11
|
|
9
12
|
```json
|
@@ -21,7 +24,7 @@ Wakes up the car from a sleeping state.
|
|
21
24
|
"in_service": false,
|
22
25
|
"id_s": "12345678901234567",
|
23
26
|
"calendar_enabled": true,
|
24
|
-
"api_version":
|
27
|
+
"api_version": 7,
|
25
28
|
"backseat_token": null,
|
26
29
|
"backseat_token_updated_at": null
|
27
30
|
}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# Windows
|
2
|
+
|
3
|
+
## POST `/api/1/vehicles/{id}/command/window_control`
|
4
|
+
|
5
|
+
Controls the windows. Will vent or close all windows simultaneously.
|
6
|
+
|
7
|
+
`lat` and `lon` values must be near the current location of the car for
|
8
|
+
`close` operation to succeed. For `vent`, the `lat` and `lon` values are
|
9
|
+
ignored, and may both be `0` (which has been observed from the app itself).
|
10
|
+
|
11
|
+
### Parameters
|
12
|
+
|
13
|
+
| Parameter | Example | Description |
|
14
|
+
| :-------- | :------ | :-------------------------------------------------------------------------- |
|
15
|
+
| command | close | What action to take with the windows. Allows the values `vent` and `close`. |
|
16
|
+
| lat | 0 | Your current latitude. See Notes above. |
|
17
|
+
| lon | 0 | Your current longitude. See Notes above. |
|
18
|
+
|
19
|
+
### Response
|
20
|
+
|
21
|
+
```json
|
22
|
+
{
|
23
|
+
"reason": "",
|
24
|
+
"result": true
|
25
|
+
}
|
26
|
+
```
|
data/docs/vehicle/optioncodes.md
CHANGED
@@ -10,6 +10,9 @@ edit this page and submit a_
|
|
10
10
|
[_pull request_](https://github.com/timdorr/tesla-api/pulls)_. It is much
|
11
11
|
appreciated!_
|
12
12
|
|
13
|
+
**As of August 2019, Option Codes cannot be relied on.** Vehicles now
|
14
|
+
return a generic set of codes related to a Model 3.
|
15
|
+
|
13
16
|
| Code | Title | Description |
|
14
17
|
| :--- | :--- | :--- |
|
15
18
|
| MDLS | Model S | This vehicle is a Model S |
|
@@ -59,7 +62,7 @@ appreciated!_
|
|
59
62
|
| BC0B | Black Brake Calipers | |
|
60
63
|
| BC0R | Red Brake Calipers | |
|
61
64
|
| BC3B | Black Brake Calipers, Model 3 | |
|
62
|
-
| BCMB | Black Brake Calipers | |
|
65
|
+
| BCMB | Black Brake Calipers, Mando Brakes | |
|
63
66
|
| BCYR | Performance Brakes | |
|
64
67
|
| BG30 | No Badge | Model 3 |
|
65
68
|
| BP00 | No Ludicrous | |
|
@@ -174,6 +177,7 @@ appreciated!_
|
|
174
177
|
| LT5C | LT5C | |
|
175
178
|
| LT5P | LT5P | |
|
176
179
|
| LT6P | LT6P | |
|
180
|
+
| LT6W | White Base Lower Trim | |
|
177
181
|
| LTPB | Lower Trim PUR Black | |
|
178
182
|
| ME01 | Memory Seats | |
|
179
183
|
| ME02 | Seat Memory | Seat Memory LHD Driver |
|
@@ -204,7 +208,7 @@ appreciated!_
|
|
204
208
|
| PF01 | Performance Legacy Package | |
|
205
209
|
| PI00 | No Premium Interior | |
|
206
210
|
| PI01 | Premium Upgrades Package | |
|
207
|
-
| PK00 | Parking Sensors | |
|
211
|
+
| PK00 | Parking Sensors | No Parking Sensors |
|
208
212
|
| PMAB | Anza Brown Metallic Color | |
|
209
213
|
| PMBL | Obsidian Black Multi-Coat Color | |
|
210
214
|
| PMMB | Monterey Blue Metallic Color | |
|
@@ -254,15 +258,18 @@ appreciated!_
|
|
254
258
|
| QVPP | Vegan Cream Seats | |
|
255
259
|
| QVSW | White Tesla Seats | |
|
256
260
|
| RCX0 | No Rear Console | |
|
261
|
+
| RCX1 | Rear Console | |
|
257
262
|
| RF3G | Model 3 Glass Roof | |
|
258
263
|
| RFBK | Black Roof | |
|
259
264
|
| RFBC | Body Color Roof | Roof |
|
260
265
|
| RFFG | Glass Roof | |
|
261
266
|
| RFP0 | All Glass Panoramic Roof | |
|
262
267
|
| RFP2 | Sunroof | |
|
263
|
-
| RFPX | Model X Roof | |
|
268
|
+
| RFPX | Model X Roof | |
|
269
|
+
| S01B | Black Textile Seats | |
|
264
270
|
| S02B | Seat | BLK Leather |
|
265
271
|
| S02P | S02P | |
|
272
|
+
| S07W | White Seats | |
|
266
273
|
| S31B | S31B | |
|
267
274
|
| S32C | S32C | |
|
268
275
|
| S32P | S32P | |
|
@@ -284,11 +291,15 @@ appreciated!_
|
|
284
291
|
| STY5S | Five Seat Interior | |
|
285
292
|
| STY7S | Seven Seat Interior | |
|
286
293
|
| SU00 | Standard Suspension | |
|
287
|
-
| SU01 | Smart Air Suspension | |
|
294
|
+
| SU01 | Smart Air Suspension | |
|
295
|
+
| SU03 | Suspension Suspension Update | Model X 2020 |
|
288
296
|
| SU3C | Suspension | Coil spring suspension |
|
289
297
|
| T3MA | Tires M3 | 18 Michelin All Season, Square |
|
290
298
|
| TIC4 | Tires | All-Season Tires |
|
299
|
+
| TIG2 | Summer Tires | |
|
300
|
+
| TIM7 | Summer Tires | |
|
291
301
|
| TIMP | Tires | Michelin Primacy 19" Tire |
|
302
|
+
| TIP0 | All-season Tires | Pirelli Scorpion Zero Asimmetrico 22” Tire |
|
292
303
|
| TM00 | Model Trim | General Production Series Vehicle |
|
293
304
|
| TM02 | General Production Signature Trim | |
|
294
305
|
| TM0A | ALPHA PRE-PRODUCTION NON-SALEABLE | |
|
@@ -311,10 +322,12 @@ appreciated!_
|
|
311
322
|
| UTSB | Dark Headliner | |
|
312
323
|
| UTZW | Light Headliner | |
|
313
324
|
| USSB | Safety | Safety US Black |
|
325
|
+
| USSW | US Safety Kit White | |
|
314
326
|
| SLR1 | Carbon Fibre Spoiler | Model 3 |
|
315
327
|
| SPT31 | Performance Upgrade | Model 3 |
|
316
328
|
| SPTY1 | Performance Upgrade | Model Y |
|
317
329
|
| W32P | 20" Performance Wheels | Model 3 |
|
330
|
+
| W32D | 20" Gray Performance Wheels | Model 3 |
|
318
331
|
| W38B | 18" Aero Wheels | For the Model 3 and Model Y |
|
319
332
|
| W39B | 19" Sport Wheels | |
|
320
333
|
| WR00 | No Wrap | |
|
@@ -333,7 +346,7 @@ appreciated!_
|
|
333
346
|
| WTSS | 21" Turbine Wheels | |
|
334
347
|
| WTTB | 19" Cyclone Wheels | |
|
335
348
|
| WTTC | 21" Sonic Carbon Twin Turbine Wheels | |
|
336
|
-
| WTUT | 22" Onyx Black Wheels | |
|
349
|
+
| WTUT | 22" Onyx Black Wheels | 22" Ultrasonic Turbine wheels |
|
337
350
|
| WTW2 | 19" Nokian Winter Wheel Set | |
|
338
351
|
| WTW3 | 19" Pirelli Winter Wheel Set | |
|
339
352
|
| WTW4 | 19" Winter Tire Set | |
|
@@ -358,7 +371,7 @@ appreciated!_
|
|
358
371
|
| X001 | Override: Power Liftgate | |
|
359
372
|
| X003 | Maps & Navigation | |
|
360
373
|
| X004 | Override: No Navigation | |
|
361
|
-
| X007 |
|
374
|
+
| X007 | Exterior Lights Override: Premium exterior lighting YES | |
|
362
375
|
| X010 | Base Mirrors | |
|
363
376
|
| X011 | Override: Homelink | |
|
364
377
|
| X012 | Override: No Homelink | |
|
@@ -369,6 +382,7 @@ appreciated!_
|
|
369
382
|
| X021 | No Rear Carbon Fiber Spoiler | |
|
370
383
|
| X024 | Performance Package | |
|
371
384
|
| X025 | Performance Powertrain | |
|
385
|
+
| X026 | Door handle | No light handle |
|
372
386
|
| X027 | Lighted Door Handles | Light handle |
|
373
387
|
| X028 | Battery Badge | Normal Badging |
|
374
388
|
| X029 | Remove Battery Badge | |
|
@@ -377,6 +391,8 @@ appreciated!_
|
|
377
391
|
| X037 | Powerfolding Mirrors | |
|
378
392
|
| X039 | DAB Radio | |
|
379
393
|
| X040 | No DAB Radio | |
|
394
|
+
| X041 | No Auto Presenting Door | |
|
395
|
+
| X042 | Auto Presenting Door | |
|
380
396
|
| X043 | No Phone Dock Kit | |
|
381
397
|
| X044 | Phone Dock Kit | |
|
382
398
|
| YF00 | No Yacht Floor | |
|