tesla_api 3.0.2 → 3.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.tool-versions +1 -1
- data/.travis.yml +2 -2
- data/docs/README.md +1 -1
- data/docs/api-basics/vehicles.md +5 -6
- data/docs/miscellaneous/endpoints.md +26 -4
- data/docs/vehicle/commands/climate.md +2 -0
- data/docs/vehicle/commands/homelink.md +1 -1
- data/docs/vehicle/commands/sharing.md +2 -2
- data/docs/vehicle/commands/valet.md +7 -5
- data/docs/vehicle/commands/wake.md +4 -1
- data/docs/vehicle/commands/windows.md +6 -2
- data/docs/vehicle/optioncodes.md +60 -27
- data/docs/vehicle/state/chargestate.md +17 -16
- data/docs/vehicle/state/climatestate.md +13 -19
- data/docs/vehicle/state/data.md +61 -54
- data/docs/vehicle/state/guisettings.md +1 -0
- data/docs/vehicle/state/nearbychargingsites.md +49 -74
- data/docs/vehicle/state/vehicleconfig.md +3 -3
- data/docs/vehicle/state/vehiclestate.md +43 -19
- data/lib/tesla_api.rb +4 -2
- data/lib/tesla_api/autopark.rb +23 -41
- data/lib/tesla_api/client.rb +13 -6
- data/lib/tesla_api/stream.rb +46 -40
- data/lib/tesla_api/vehicle.rb +5 -1
- data/lib/tesla_api/version.rb +1 -1
- data/spec/cassettes/client-login_timeout.yml +83 -0
- data/spec/cassettes/vehicle-vehicle_data.yml +115 -0
- data/spec/lib/tesla_api/client_spec.rb +30 -0
- data/spec/lib/tesla_api/vehicle_spec.rb +12 -0
- data/tesla_api.gemspec +3 -3
- metadata +14 -10
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 91569b9fd79eae85eb5d719cace95d97c7b52b553af21650fbe0dcc54bfb0587
         | 
| 4 | 
            +
              data.tar.gz: b4f045ab6be58dd83aea509685168ec9a9d6acbf23971d86602bf2febbb007d9
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 273c9639d6ab5976b544e689dba5884d1449b93d1edd9c15125db5ae43f3a45df14c22333de78cc3cd34b577bff5519345a0b01ad8a4da50d77324ba7c520c10
         | 
| 7 | 
            +
              data.tar.gz: b706b047d6f1137956c16d6a58cd4c7627b21a4fa5bf9c45148b84ac45e0caa03d18f0885e538dd5b491d67d4b6d7d3e3110fb0139322f9843c265b3079bd89d
         | 
    
        data/.tool-versions
    CHANGED
    
    | @@ -1 +1 @@ | |
| 1 | 
            -
            ruby 2. | 
| 1 | 
            +
            ruby 2.7.2
         | 
    
        data/.travis.yml
    CHANGED
    
    
    
        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/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,6 +1,6 @@ | |
| 1 1 | 
             
            # Endpoints File
         | 
| 2 2 |  | 
| 3 | 
            -
            This the latest contents of the ownerapi_endpoints.json file from the 3.10. | 
| 3 | 
            +
            This the latest contents of the ownerapi_endpoints.json file from the 3.10.8 version of the app.
         | 
| 4 4 |  | 
| 5 5 | 
             
            ```json
         | 
| 6 6 | 
             
            {
         | 
| @@ -329,10 +329,11 @@ This the latest contents of the ownerapi_endpoints.json file from the 3.10.0 ver | |
| 329 329 | 
             
                "URI": "api/1/vehicles/{vehicle_id}/eligible_upgrades",
         | 
| 330 330 | 
             
                "AUTH": true
         | 
| 331 331 | 
             
              },
         | 
| 332 | 
            -
              " | 
| 332 | 
            +
              "UPGRADES_PAGE": {
         | 
| 333 333 | 
             
                "TYPE": "GET",
         | 
| 334 | 
            -
                "URI": " | 
| 335 | 
            -
                "AUTH": true
         | 
| 334 | 
            +
                "URI": "upgrades_page",
         | 
| 335 | 
            +
                "AUTH": true,
         | 
| 336 | 
            +
                "CONTENT": "HTML"
         | 
| 336 337 | 
             
              },
         | 
| 337 338 | 
             
              "MESSAGE_CENTER_MESSAGE_LIST": {
         | 
| 338 339 | 
             
                "TYPE": "GET",
         | 
| @@ -430,6 +431,12 @@ This the latest contents of the ownerapi_endpoints.json file from the 3.10.0 ver | |
| 430 431 | 
             
                "URI": "api/1/energy_sites/{site_id}/site_info",
         | 
| 431 432 | 
             
                "AUTH": true
         | 
| 432 433 | 
             
              },
         | 
| 434 | 
            +
              "ENERGY_SERVICE_SCHEDULING_PAGE": {
         | 
| 435 | 
            +
                "TYPE": "GET",
         | 
| 436 | 
            +
                "URI": "energy_service_scheduling_page",
         | 
| 437 | 
            +
                "AUTH": true,
         | 
| 438 | 
            +
                "CONTENT": "HTML"
         | 
| 439 | 
            +
              },
         | 
| 433 440 | 
             
              "HISTORY_DATA": {
         | 
| 434 441 | 
             
                "TYPE": "GET",
         | 
| 435 442 | 
             
                "URI": "api/1/energy_sites/{site_id}/history",
         | 
| @@ -440,11 +447,26 @@ This the latest contents of the ownerapi_endpoints.json file from the 3.10.0 ver | |
| 440 447 | 
             
                "URI": "api/1/energy_sites/{site_id}/calendar_history",
         | 
| 441 448 | 
             
                "AUTH": true
         | 
| 442 449 | 
             
              },
         | 
| 450 | 
            +
              "SAVINGS_FORECAST": {
         | 
| 451 | 
            +
                "TYPE": "GET",
         | 
| 452 | 
            +
                "URI": "api/1/energy_sites/{site_id}/savings_forecast",
         | 
| 453 | 
            +
                "AUTH": true
         | 
| 454 | 
            +
              },
         | 
| 455 | 
            +
              "TARIFF_RATES": {
         | 
| 456 | 
            +
                "TYPE": "GET",
         | 
| 457 | 
            +
                "URI": "api/1/energy_sites/{site_id}/tariff_rates",
         | 
| 458 | 
            +
                "AUTH": true
         | 
| 459 | 
            +
              },
         | 
| 443 460 | 
             
              "BACKUP_RESERVE": {
         | 
| 444 461 | 
             
                "TYPE": "POST",
         | 
| 445 462 | 
             
                "URI": "api/1/energy_sites/{site_id}/backup",
         | 
| 446 463 | 
             
                "AUTH": true
         | 
| 447 464 | 
             
              },
         | 
| 465 | 
            +
              "OFF_GRID_VEHICLE_CHARGING_RESERVE": {
         | 
| 466 | 
            +
                "TYPE": "POST",
         | 
| 467 | 
            +
                "URI": "api/1/energy_sites/{site_id}/off_grid_vehicle_charging_reserve",
         | 
| 468 | 
            +
                "AUTH": true
         | 
| 469 | 
            +
              },
         | 
| 448 470 | 
             
              "SITE_NAME": {
         | 
| 449 471 | 
             
                "TYPE": "POST",
         | 
| 450 472 | 
             
                "URI": "api/1/energy_sites/{site_id}/site_name",
         | 
| @@ -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
         | 
| @@ -8,7 +8,7 @@ Opens or closes the primary Homelink device. The provided location must be in pr | |
| 8 8 |  | 
| 9 9 | 
             
            | Parameter | Example            | Description        |
         | 
| 10 10 | 
             
            | :-------- | :----------------- | :----------------- |
         | 
| 11 | 
            -
            | lat       | 36.98765432109876  | Current  | 
| 11 | 
            +
            | lat       | 36.98765432109876  | Current latitude. |
         | 
| 12 12 | 
             
            | lon       | -77.12345678901234 | Current longitude. |
         | 
| 13 13 |  | 
| 14 14 | 
             
            ### Response
         | 
| @@ -4,7 +4,7 @@ | |
| 4 4 |  | 
| 5 5 | 
             
            Sends a location for the car to start navigation or play a video in theatre mode.
         | 
| 6 6 |  | 
| 7 | 
            -
            These docs take from the Android app, which sends the data in JSON form. However, a  | 
| 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 8 |  | 
| 9 9 | 
             
            ```json
         | 
| 10 10 | 
             
            {
         | 
| @@ -24,7 +24,7 @@ Note: This API was previously `navigation_request`, but has been updated to supp | |
| 24 24 | 
             
            | Parameter                        | Example                     | Description                                                    |
         | 
| 25 25 | 
             
            | :------------------------------- | :-------------------------- | :------------------------------------------------------------- |
         | 
| 26 26 | 
             
            | type                             | share_ext_content_raw       | Must be `share_ext_content_raw`.                               |
         | 
| 27 | 
            -
            | locale                           | en-US                       | The locale for the navigation request. | 
| 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 28 | 
             
            | timestamp_ms                     | 1539465730                  | The current UNIX timestamp.                                    |
         | 
| 29 29 | 
             
            | value[android.intent.extra.TEXT] | 123 Main St, City, ST 12345 | The address or video URL to set as the navigation destination. |
         | 
| 30 30 |  | 
| @@ -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 | 
             
              }
         | 
| @@ -4,13 +4,17 @@ | |
| 4 4 |  | 
| 5 5 | 
             
            Controls the windows. Will vent or close all windows simultaneously.
         | 
| 6 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 | 
            +
             | 
| 7 11 | 
             
            ### Parameters
         | 
| 8 12 |  | 
| 9 13 | 
             
            | Parameter | Example | Description                                                                 |
         | 
| 10 14 | 
             
            | :-------- | :------ | :-------------------------------------------------------------------------- |
         | 
| 11 15 | 
             
            | command   | close   | What action to take with the windows. Allows the values `vent` and `close`. |
         | 
| 12 | 
            -
            | lat       | 0       |  | 
| 13 | 
            -
            | lon       | 0       |  | 
| 16 | 
            +
            | lat       | 0       | Your current latitude.  See Notes above.                                    |
         | 
| 17 | 
            +
            | lon       | 0       | Your current longitude.  See Notes above.                                   |
         | 
| 14 18 |  | 
| 15 19 | 
             
            ### Response
         | 
| 16 20 |  | 
    
        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 | 
         | 
| @@ -41,29 +44,31 @@ appreciated!_ | |
| 41 44 | 
             
            | AF00 | No HEPA Filter | Standard air filter, no air ionizer | 
         | 
| 42 45 | 
             
            | AF02 | HEPA Filter | | 
         | 
| 43 46 | 
             
            | AH00 | No Accessory Hitch | | 
         | 
| 44 | 
            -
            |  | 
| 45 | 
            -
            | APF0 | Autopilot Firmware 2.0 Base | | 
         | 
| 46 | 
            -
            | APF1 | Autopilot Firmware 2.0 Enhanced | | 
         | 
| 47 | 
            -
            | APF2 | Full Self-Driving Capability | | 
         | 
| 48 | 
            -
            | APH0 | Autopilot 2.0 Hardware | | 
         | 
| 49 | 
            -
            | APH2 | Autopilot 2.0 Hardware | | 
         | 
| 47 | 
            +
            | APB1 | Autopilot with convenience features | Model S |
         | 
| 50 48 | 
             
            | APBS | Autopilot | Model 3 Autopilot |
         | 
| 51 | 
            -
            |  | 
| 52 | 
            -
            |  | 
| 53 | 
            -
            |  | 
| 54 | 
            -
            |  | 
| 55 | 
            -
            |  | 
| 49 | 
            +
            | APF0 | Autopilot Firmware 2.0 Base | | 
         | 
| 50 | 
            +
            | APF1 | Autopilot Firmware 2.0 Enhanced | |  
         | 
| 51 | 
            +
            | APFB | Full Self-Driving Hardware | Car has FSD hardware, but sofware option is not purchased |
         | 
| 52 | 
            +
            | APF2 | Full Self-Driving Hardware (Activated) | Car has active FSD software purchase |
         | 
| 53 | 
            +
            | APH1 | Hardware 1.0 | | 
         | 
| 54 | 
            +
            | APH2 | Hardware 2.0 | | 
         | 
| 55 | 
            +
            | APH3 | Hardware 2.5 | | 
         | 
| 56 | 
            +
            | APPF | Full Self-Driving Capability | |
         | 
| 57 | 
            +
            | APH4 | Hardware 3.0 | | 
         | 
| 56 58 | 
             
            | AU00 | No Audio Package | | 
         | 
| 57 59 | 
             
            | AU01 | Ultra High Fidelity Sound | | 
         | 
| 58 60 | 
             
            | AU3P | Sound Studio Package | Premium audio package |
         | 
| 59 61 | 
             
            | BC0B | Black Brake Calipers | | 
         | 
| 60 62 | 
             
            | BC0R | Red Brake Calipers | |
         | 
| 61 63 | 
             
            | BC3B | Black Brake Calipers, Model 3 | |
         | 
| 62 | 
            -
            | BCMB | Black Brake Calipers | | 
         | 
| 64 | 
            +
            | BCMB | Black Brake Calipers, Mando Brakes | | 
         | 
| 63 65 | 
             
            | BCYR | Performance Brakes | |
         | 
| 64 66 | 
             
            | BG30 | No Badge | Model 3 |
         | 
| 67 | 
            +
            | BG31 | AWD Badge | Model 3 |
         | 
| 68 | 
            +
            | BG32 | Performance AWD Badge | Model 3 |
         | 
| 65 69 | 
             
            | BP00 | No Ludicrous | | 
         | 
| 66 70 | 
             
            | BP01 | Ludicrous Speed Upgrade | | 
         | 
| 71 | 
            +
            | BP02 | Non-Performance Uncorked Acceleration | | 
         | 
| 67 72 | 
             
            | BR00 | No Battery Firmware Limit | | 
         | 
| 68 73 | 
             
            | BR03 | Battery Firmware Limit (60kWh) | | 
         | 
| 69 74 | 
             
            | BR05 | Battery Firmware Limit (75kWh) | | 
         | 
| @@ -94,16 +99,22 @@ appreciated!_ | |
| 94 99 | 
             
            | COL0 | Signature | | 
         | 
| 95 100 | 
             
            | COL1 | Solid | | 
         | 
| 96 101 | 
             
            | COL2 | Metallic | | 
         | 
| 97 | 
            -
            | COL3 | Tesla Multi-Coat | | | 
| 102 | 
            +
            | COL3 | Tesla Multi-Coat | |
         | 
| 103 | 
            +
            | COBE | Country: Belgium | | 
         | 
| 104 | 
            +
            | CODE | Country: Germany | | 
         | 
| 105 | 
            +
            | COES | Country: Spain | | 
         | 
| 106 | 
            +
            | COFR | Country: France | | 
         | 
| 107 | 
            +
            | CONL | Country: Netherlands | | 
         | 
| 98 108 | 
             
            | COUS | Country: United States | | 
         | 
| 99 | 
            -
            |  | 
| 109 | 
            +
            | CPF0 | Standard Connectivity | |
         | 
| 110 | 
            +
            | CPF1 | Premium Connectivity | |
         | 
| 100 111 | 
             
            | CPW1 | 20" Performance Wheels | |
         | 
| 101 112 | 
             
            | CW00 | Weather Package | No Cold Weather Package | 
         | 
| 102 113 | 
             
            | CW02 | Weather Package | Subzero Weather Package | 
         | 
| 103 114 | 
             
            | DA00 | No Autopilot | | 
         | 
| 104 115 | 
             
            | DA01 | Active Safety (ACC,LDW,SA) | Drivers Assistance Package | 
         | 
| 105 116 | 
             
            | DA02 | Autopilot Convenience Features | | 
         | 
| 106 | 
            -
            | DCF0 | Autopilot Convenience Features  | 
| 117 | 
            +
            | DCF0 | Autopilot Convenience Features | | 
         | 
| 107 118 | 
             
            | DRLH | Left Hand Drive | | 
         | 
| 108 119 | 
             
            | BC3R | Performance Brakes | Model 3 |
         | 
| 109 120 | 
             
            | DRRH | Right Hand Drive | | 
         | 
| @@ -136,16 +147,19 @@ appreciated!_ | |
| 136 147 | 
             
            | IDBA | Dark Ash Wood Decor | | 
         | 
| 137 148 | 
             
            | IDBO | Figured Ash Wood Decor | | 
         | 
| 138 149 | 
             
            | IDCF | Carbon Fiber Decor | | 
         | 
| 150 | 
            +
            | IDHM | Matte Obeche Wood Decor | | 
         | 
| 139 151 | 
             
            | IDOK | Oak Decor | |
         | 
| 140 152 | 
             
            | IDOM | Matte Obeche Wood Decor | | 
         | 
| 141 153 | 
             
            | IDOG | Gloss Obeche Wood Decor | | 
         | 
| 142 154 | 
             
            | IDLW | Lacewood Decor | | 
         | 
| 143 155 | 
             
            | IDPB | Piano Black Decor | |
         | 
| 144 156 | 
             
            | IN3BB | All Black Partial Premium Interior | | 
         | 
| 145 | 
            -
            | IN3PB | All Black Premium Interior | | 
         | 
| 157 | 
            +
            | IN3PB | All Black Premium Interior | Model 3 Interior | 
         | 
| 158 | 
            +
            | IN3PW | All White Premium Interior | Model 3 Interior | 
         | 
| 146 159 | 
             
            | INBBW | White | | 
         | 
| 147 160 | 
             
            | INBFP | Classic Black | | 
         | 
| 148 161 | 
             
            | INBPP | Black | | 
         | 
| 162 | 
            +
            | INBPW | White Seats | |
         | 
| 149 163 | 
             
            | INBTB | Multi-Pattern Black | | 
         | 
| 150 164 | 
             
            | INFBP | Black Premium | | 
         | 
| 151 165 | 
             
            | INLPC | Cream | | 
         | 
| @@ -176,19 +190,22 @@ appreciated!_ | |
| 176 190 | 
             
            | LT6P | LT6P | |
         | 
| 177 191 | 
             
            | LT6W | White Base Lower Trim | |
         | 
| 178 192 | 
             
            | LTPB | Lower Trim PUR Black | |
         | 
| 193 | 
            +
            | LTPW | Lower Trim PUR White | |
         | 
| 179 194 | 
             
            | ME01 | Memory Seats | |
         | 
| 180 195 | 
             
            | ME02 | Seat Memory | Seat Memory LHD Driver | 
         | 
| 181 196 | 
             
            | MI00 | 2015 Production Refresh | | 
         | 
| 182 | 
            -
            | MI00 | Project/Program Code M3 | Base Manufacturing Intro Code |
         | 
| 183 197 | 
             
            | MI01 | 2016 Production Refresh | | 
         | 
| 184 198 | 
             
            | MI02 | 2017 Production Refresh | | 
         | 
| 185 199 | 
             
            | MI03 | 201? Production Refresh | Found on Model X ordered 11/2018 delivered 3/2019 | 
         | 
| 186 200 | 
             
            | MR31 | Tech Package - Mirror -YES	| Uplevel Mirrors |
         | 
| 187 201 | 
             
            | MT300 | Standard Range Rear-Wheel Drive | |
         | 
| 188 202 | 
             
            | MT301 | Standard Range Plus Rear-Wheel Drive | |
         | 
| 203 | 
            +
            | MT320 | Standard Range Plus Rear-Wheel Drive | Late 2020 Refresh |
         | 
| 189 204 | 
             
            | MT302 | Long Range Rear-Wheel Drive | |
         | 
| 190 205 | 
             
            | MT303 | Long Range All-Wheel Drive | |
         | 
| 206 | 
            +
            | MT315 | Long Range All-Wheel Drive | Late 2020 Refresh |
         | 
| 191 207 | 
             
            | MT304 | Long Range All-Wheel Drive Performance | |
         | 
| 208 | 
            +
            | MT317 | Long Range All-Wheel Drive Performance | Late 2020 Refresh |
         | 
| 192 209 | 
             
            | MT305 | Mid Range Rear-Wheel Drive | | 
         | 
| 193 210 | 
             
            | MTY02 | Long Range Rear-Wheel Drive | |
         | 
| 194 211 | 
             
            | MTY03 | Long Range All-Wheel Drive | |
         | 
| @@ -198,18 +215,17 @@ appreciated!_ | |
| 198 215 | 
             
            | PA00 | No Paint Armor | | 
         | 
| 199 216 | 
             
            | PBCW | Solid White Color | | 
         | 
| 200 217 | 
             
            | PBSB | Solid Black Color | | 
         | 
| 201 | 
            -
            |  | 
| 218 | 
            +
            | PBT85 | Performance 85kWh | | 
         | 
| 202 219 | 
             
            | PC30 | No Performance Chassis | |
         | 
| 203 220 | 
             
            | PC31 | Performance Chassis | |
         | 
| 204 221 | 
             
            | PF00 | No Performance Legacy Package | | 
         | 
| 205 222 | 
             
            | PF01 | Performance Legacy Package | | 
         | 
| 206 223 | 
             
            | PI00 | No Premium Interior | | 
         | 
| 207 224 | 
             
            | PI01 | Premium Upgrades Package | | 
         | 
| 208 | 
            -
            | PK00 | Parking Sensors | | 
         | 
| 225 | 
            +
            | PK00 | Parking Sensors | No Parking Sensors | 
         | 
| 209 226 | 
             
            | PMAB | Anza Brown Metallic Color | | 
         | 
| 210 227 | 
             
            | PMBL | Obsidian Black Multi-Coat Color | | 
         | 
| 211 228 | 
             
            | PMMB | Monterey Blue Metallic Color | | 
         | 
| 212 | 
            -
            | PMMR | Red Multi-Coat Color | | 
         | 
| 213 229 | 
             
            | PMNG | Midnight Silver Metallic Color | | 
         | 
| 214 230 | 
             
            | PMSG | Green Metallic Color| | 
         | 
| 215 231 | 
             
            | PMSS | San Simeon Silver Metallic Color | | 
         | 
| @@ -230,12 +246,14 @@ appreciated!_ | |
| 230 246 | 
             
            | RS3H | Second Row Seat Rear Seats (Heated) | Model 3 |
         | 
| 231 247 | 
             
            | PX00 | No Performance Plus Package | | 
         | 
| 232 248 | 
             
            | PX01 | Performance Plus | | 
         | 
| 249 | 
            +
            | PX4D | 90 kWh Performance | |
         | 
| 233 250 | 
             
            | PX6D | Zero to 60 in 2.5 sec | | 
         | 
| 234 251 | 
             
            | P85D | P85D | | 
         | 
| 235 252 | 
             
            | QLBS | Black Premium Interior | |
         | 
| 236 253 | 
             
            | QLFC | Cream Premium Interior | |
         | 
| 237 254 | 
             
            | QLFP | Black Premium Interior | |
         | 
| 238 255 | 
             
            | QLFW | White Premium Interior | |
         | 
| 256 | 
            +
            | QLPW | White Premium Interior | |
         | 
| 239 257 | 
             
            | QLWS | White Premium Interior | |
         | 
| 240 258 | 
             
            | QNET | Tan NextGen | | 
         | 
| 241 259 | 
             
            | QPBT | Black Textile Interior | |
         | 
| @@ -245,6 +263,7 @@ appreciated!_ | |
| 245 263 | 
             
            | QTFC | Cream Premium Interior | |
         | 
| 246 264 | 
             
            | QTFP | Black Premium Seats | | 
         | 
| 247 265 | 
             
            | QTFW | White Premium Interior | |
         | 
| 266 | 
            +
            | QTPB | Black Leather Tesla Premium Seats | | 
         | 
| 248 267 | 
             
            | QTPC | Cream Premium Seats | | 
         | 
| 249 268 | 
             
            | QTPP | Black Premium Seats | | 
         | 
| 250 269 | 
             
            | QTPT | Tan Premium Seats | | 
         | 
| @@ -254,30 +273,37 @@ appreciated!_ | |
| 254 273 | 
             
            | QVPC | Vegan Cream Seats | | 
         | 
| 255 274 | 
             
            | QVPP | Vegan Cream Seats | | 
         | 
| 256 275 | 
             
            | QVSW | White Tesla Seats | | 
         | 
| 276 | 
            +
            | QXMB | Black Leather Seat | |
         | 
| 257 277 | 
             
            | RCX0 | No Rear Console | | 
         | 
| 258 278 | 
             
            | RCX1 | Rear Console | |
         | 
| 259 279 | 
             
            | RF3G | Model 3 Glass Roof | | 
         | 
| 260 280 | 
             
            | RFBK | Black Roof | | 
         | 
| 261 281 | 
             
            | RFBC | Body Color Roof | Roof | 
         | 
| 262 | 
            -
            | RFFG | Glass Roof | | 
         | 
| 263 | 
            -
            |  | 
| 264 | 
            -
            | RFP2 | Sunroof | | 
         | 
| 282 | 
            +
            | RFFG | Glass Roof | 2017 Production Refresh | 
         | 
| 283 | 
            +
            | RFPO | All Glass Panoramic Roof | 2015 Production Refresh | 
         | 
| 284 | 
            +
            | RFP2 | Sunroof | 2016 Production Refresh | 
         | 
| 265 285 | 
             
            | RFPX | Model X Roof | |
         | 
| 286 | 
            +
            | RSF1 | Rear Heated Seats | |
         | 
| 287 | 
            +
            | RU00 | No Range Upgrade | |
         | 
| 266 288 | 
             
            | S01B | Black Textile Seats | |
         | 
| 267 289 | 
             
            | S02B | Seat | BLK Leather |
         | 
| 268 290 | 
             
            | S02P | S02P | | 
         | 
| 291 | 
            +
            | S02W | White Seats | |
         | 
| 269 292 | 
             
            | S07W | White Seats | |
         | 
| 270 293 | 
             
            | S31B | S31B | | 
         | 
| 271 294 | 
             
            | S32C | S32C | | 
         | 
| 272 295 | 
             
            | S32P | S32P | | 
         | 
| 273 296 | 
             
            | S32W | S32W | | 
         | 
| 274 297 | 
             
            | S3PB | Seat Black PUR Premium Seats | | 
         | 
| 298 | 
            +
            | S3PW | Seat White PUR Premium Seats | |
         | 
| 299 | 
            +
            | SA3P | Seat Adjustment - Power | Model 3 |
         | 
| 275 300 | 
             
            | SC00 | No Supercharging | | 
         | 
| 276 301 | 
             
            | SC01 | Supercharging Enabled | | 
         | 
| 277 302 | 
             
            | SC04 | Pay Per Use Supercharging | | 
         | 
| 278 303 | 
             
            | SC05 | Free Supercharging | | 
         | 
| 279 304 | 
             
            | SLR0 | No Rear Spoiler | |
         | 
| 280 305 | 
             
            | SP00 | No Security Package | |
         | 
| 306 | 
            +
            | SP01 | Security Package | |
         | 
| 281 307 | 
             
            | SR01 | Standard 2nd row | Second Row Seat | 
         | 
| 282 308 | 
             
            | SR06 | Seven Seat Interior | | 
         | 
| 283 309 | 
             
            | SR07 | Standard 2nd row | | 
         | 
| @@ -288,19 +314,21 @@ appreciated!_ | |
| 288 314 | 
             
            | STY5S | Five Seat Interior | |
         | 
| 289 315 | 
             
            | STY7S | Seven Seat Interior | |
         | 
| 290 316 | 
             
            | SU00 | Standard Suspension | | 
         | 
| 291 | 
            -
            | SU01 | Smart Air Suspension | | | 
| 317 | 
            +
            | SU01 | Smart Air Suspension | |
         | 
| 318 | 
            +
            | SU03 | Suspension	Update | Model X 2020 |
         | 
| 292 319 | 
             
            | SU3C | Suspension | Coil spring suspension |
         | 
| 293 320 | 
             
            | T3MA | Tires M3 | 18 Michelin All Season, Square |
         | 
| 294 321 | 
             
            | TIC4 | Tires | All-Season Tires | 
         | 
| 295 322 | 
             
            | TIG2 | Summer Tires | |
         | 
| 296 323 | 
             
            | TIM7 | Summer Tires | |
         | 
| 297 324 | 
             
            | TIMP | Tires | Michelin Primacy 19" Tire |
         | 
| 298 | 
            -
            | TIP0 | All-season Tires | |
         | 
| 325 | 
            +
            | TIP0 | All-season Tires | Pirelli Scorpion Zero Asimmetrico 22” Tire |
         | 
| 299 326 | 
             
            | TM00 | Model Trim | General Production Series Vehicle | 
         | 
| 300 327 | 
             
            | TM02 | General Production Signature Trim | | 
         | 
| 301 328 | 
             
            | TM0A | ALPHA PRE-PRODUCTION NON-SALEABLE | | 
         | 
| 302 329 | 
             
            | TM0B | BETA PRE-PRODUCTION NON-SALEABLE | | 
         | 
| 303 330 | 
             
            | TM0C | PRE-PRODUCTION SALEABLE | | 
         | 
| 331 | 
            +
            | TP01 | No Technology Package | |
         | 
| 304 332 | 
             
            | TP01 | Tech Package - No Autopilot | | 
         | 
| 305 333 | 
             
            | TP02 | Tech Package with Autopilot | | 
         | 
| 306 334 | 
             
            | TP03 | Tech Package with Enhanced Autopilot | | 
         | 
| @@ -323,6 +351,7 @@ appreciated!_ | |
| 323 351 | 
             
            | SPT31 | Performance Upgrade | Model 3 |
         | 
| 324 352 | 
             
            | SPTY1 | Performance Upgrade | Model Y |
         | 
| 325 353 | 
             
            | W32P | 20" Performance Wheels | Model 3 |
         | 
| 354 | 
            +
            | W32D | 20" Gray Performance Wheels | Model 3 |
         | 
| 326 355 | 
             
            | W38B | 18" Aero Wheels | For the Model 3 and Model Y |
         | 
| 327 356 | 
             
            | W39B | 19" Sport Wheels | | 
         | 
| 328 357 | 
             
            | WR00 | No Wrap | |
         | 
| @@ -339,9 +368,11 @@ appreciated!_ | |
| 339 368 | 
             
            | WTSG | 21" Turbine Wheels | | 
         | 
| 340 369 | 
             
            | WTSP | 21" Turbine Wheels | | 
         | 
| 341 370 | 
             
            | WTSS | 21" Turbine Wheels | | 
         | 
| 371 | 
            +
            | WTHX | 20" Turbine Wheels | | 
         | 
| 372 | 
            +
            | WTTG | 19" Cyclone Wheels | | 
         | 
| 342 373 | 
             
            | WTTB | 19" Cyclone Wheels | | 
         | 
| 343 374 | 
             
            | WTTC | 21" Sonic Carbon Twin Turbine Wheels | |
         | 
| 344 | 
            -
            | WTUT | 22" Onyx Black Wheels | |
         | 
| 375 | 
            +
            | WTUT | 22" Onyx Black Wheels | 22" Ultrasonic Turbine wheels |
         | 
| 345 376 | 
             
            | WTW2 | 19" Nokian Winter Wheel Set | |
         | 
| 346 377 | 
             
            | WTW3 | 19" Pirelli Winter Wheel Set | |
         | 
| 347 378 | 
             
            | WTW4 | 19" Winter Tire Set | | 
         | 
| @@ -364,9 +395,10 @@ appreciated!_ | |
| 364 395 | 
             
            | WY19B | 19" Sport Wheels | |
         | 
| 365 396 | 
             
            | WY20P | 20" Performance Wheels | |
         | 
| 366 397 | 
             
            | X001 | Override: Power Liftgate | | 
         | 
| 398 | 
            +
            | X002 | Override: Manual Liftgate | |
         | 
| 367 399 | 
             
            | X003 | Maps & Navigation | | 
         | 
| 368 400 | 
             
            | X004 | Override: No Navigation | | 
         | 
| 369 | 
            -
            | X007 |  | 
| 401 | 
            +
            | X007 | Exterior Lights	Override: Premium exterior lighting YES | | 
         | 
| 370 402 | 
             
            | X010 | Base Mirrors | | 
         | 
| 371 403 | 
             
            | X011 | Override: Homelink | | 
         | 
| 372 404 | 
             
            | X012 | Override: No Homelink | | 
         | 
| @@ -377,6 +409,7 @@ appreciated!_ | |
| 377 409 | 
             
            | X021 | No Rear Carbon Fiber Spoiler | |
         | 
| 378 410 | 
             
            | X024 | Performance Package | | 
         | 
| 379 411 | 
             
            | X025 | Performance Powertrain | | 
         | 
| 412 | 
            +
            | X026 | Door handle | No light handle |
         | 
| 380 413 | 
             
            | X027 | Lighted Door Handles | Light handle | 
         | 
| 381 414 | 
             
            | X028 | Battery Badge | Normal Badging | 
         | 
| 382 415 | 
             
            | X029 | Remove Battery Badge | | 
         |