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.
@@ -10,46 +10,47 @@ Information on the state of charge in the battery and its various settings.
10
10
  {
11
11
  "response": {
12
12
  "battery_heater_on": false,
13
- "battery_level": 64,
14
- "battery_range": 167.96,
15
- "charge_current_request": 48,
16
- "charge_current_request_max": 48,
13
+ "battery_level": 90,
14
+ "battery_range": 224.47,
15
+ "charge_current_request": 40,
16
+ "charge_current_request_max": 40,
17
17
  "charge_enable_request": true,
18
- "charge_energy_added": 12.41,
18
+ "charge_energy_added": 29.41,
19
19
  "charge_limit_soc": 90,
20
20
  "charge_limit_soc_max": 100,
21
21
  "charge_limit_soc_min": 50,
22
22
  "charge_limit_soc_std": 90,
23
- "charge_miles_added_ideal": 50.0,
24
- "charge_miles_added_rated": 40.0,
25
- "charge_port_cold_weather_mode": false,
26
- "charge_port_door_open": false,
23
+ "charge_miles_added_ideal": 118.5,
24
+ "charge_miles_added_rated": 95.0,
25
+ "charge_port_cold_weather_mode": null,
26
+ "charge_port_door_open": true,
27
27
  "charge_port_latch": "Engaged",
28
28
  "charge_rate": 0.0,
29
29
  "charge_to_max_range": false,
30
30
  "charger_actual_current": 0,
31
31
  "charger_phases": null,
32
- "charger_pilot_current": 48,
32
+ "charger_pilot_current": 40,
33
33
  "charger_power": 0,
34
34
  "charger_voltage": 0,
35
- "charging_state": "Disconnected",
36
- "conn_charge_cable": "<invalid>",
37
- "est_battery_range": 116.67,
35
+ "charging_state": "Complete",
36
+ "conn_charge_cable": "SAE",
37
+ "est_battery_range": 171.24,
38
38
  "fast_charger_brand": "<invalid>",
39
39
  "fast_charger_present": false,
40
40
  "fast_charger_type": "<invalid>",
41
- "ideal_battery_range": 209.95,
41
+ "ideal_battery_range": 280.59,
42
42
  "managed_charging_active": false,
43
43
  "managed_charging_start_time": null,
44
44
  "managed_charging_user_canceled": false,
45
45
  "max_range_charge_counter": 0,
46
+ "minutes_to_full_charge": 0,
46
47
  "not_enough_power_to_heat": false,
47
48
  "scheduled_charging_pending": false,
48
49
  "scheduled_charging_start_time": null,
49
50
  "time_to_full_charge": 0.0,
50
- "timestamp": 1543187621530,
51
+ "timestamp": 1604977209418,
51
52
  "trip_charging": false,
52
- "usable_battery_level": 64,
53
+ "usable_battery_level": 90,
53
54
  "user_charge_enable_request": null
54
55
  }
55
56
  }
@@ -11,33 +11,27 @@ Information on the current internal temperature and climate control system.
11
11
  "response": {
12
12
  "battery_heater": false,
13
13
  "battery_heater_no_power": false,
14
- "climate_keeper_mode": "dog",
15
- "driver_temp_setting": 21.6,
14
+ "climate_keeper_mode": "off",
15
+ "defrost_mode": 0,
16
+ "driver_temp_setting": 22.8,
16
17
  "fan_status": 0,
17
- "inside_temp": null,
18
- "is_auto_conditioning_on": null,
18
+ "inside_temp": 27.0,
19
+ "is_auto_conditioning_on": false,
19
20
  "is_climate_on": false,
20
21
  "is_front_defroster_on": false,
21
22
  "is_preconditioning": false,
22
23
  "is_rear_defroster_on": false,
23
- "left_temp_direction": null,
24
+ "left_temp_direction": -232,
24
25
  "max_avail_temp": 28.0,
25
26
  "min_avail_temp": 15.0,
26
- "outside_temp": null,
27
- "passenger_temp_setting": 21.6,
28
- "remote_heater_control_enabled": true,
29
- "right_temp_direction": null,
30
- "seat_heater_left": 3,
31
- "seat_heater_rear_center": 0,
32
- "seat_heater_rear_left": 1,
33
- "seat_heater_rear_left_back": 0,
34
- "seat_heater_rear_right": 1,
35
- "seat_heater_rear_right_back": 0,
36
- "seat_heater_right": 2,
27
+ "outside_temp": 23.0,
28
+ "passenger_temp_setting": 22.8,
29
+ "remote_heater_control_enabled": false,
30
+ "right_temp_direction": -232,
31
+ "seat_heater_left": 0,
32
+ "seat_heater_right": 0,
37
33
  "side_mirror_heaters": false,
38
- "smart_preconditioning": false,
39
- "steering_wheel_heater": false,
40
- "timestamp": 1543187641727,
34
+ "timestamp": 1604977244530,
41
35
  "wiper_blade_heater": false
42
36
  }
43
37
  }
@@ -4,7 +4,7 @@
4
4
 
5
5
  A rollup of all the `data_request` endpoints plus vehicle configuration.
6
6
 
7
- *Note:* all `*_range` values are in miles, irrespective of GUI configuration.
7
+ _Note:_ all `*_range` values are in miles, irrespective of GUI configuration.
8
8
 
9
9
  ### Response
10
10
 
@@ -16,18 +16,19 @@ A rollup of all the `data_request` endpoints plus vehicle configuration.
16
16
  "vehicle_id": 1234567890,
17
17
  "vin": "5YJSA11111111111",
18
18
  "display_name": "Nikola 2.0",
19
- "option_codes": "MDLS,RENA,AF02,APF1,APH2,APPB,AU01,BC0R,BP00,BR00,BS00,CDM0,CH05,PBCW,CW00,DCF0,DRLH,DSH7,DV4W,FG02,FR04,HP00,IDBA,IX01,LP01,ME02,MI01,PF01,PI01,PK00,PS01,PX00,PX4D,QTVB,RFP2,SC01,SP00,SR01,SU01,TM00,TP03,TR00,UTAB,WTAS,X001,X003,X007,X011,X013,X021,X024,X027,X028,X031,X037,X040,X044,YFFC,COUS",
19
+ "option_codes": "AD15,MDL3,PBSB,RENA,BT37,ID3W,RF3G,S3PB,DRLH,DV2W,W39B,APF0,COUS,BC3B,CH07,PC30,FC3P,FG31,GLFR,HL31,HM31,IL31,LTPB,MR31,FM3B,RS3H,SA3P,STCP,SC04,SU3C,T3CA,TW00,TM00,UT3P,WR00,AU3P,APH3,AF00,ZCST,MI00,CDM0",
20
20
  "color": null,
21
+ "access_type": "OWNER",
21
22
  "tokens": ["abcdef1234567890", "1234567890abcdef"],
22
23
  "state": "online",
23
24
  "in_service": false,
24
25
  "id_s": "12345678901234567",
25
26
  "calendar_enabled": true,
26
- "api_version": 6,
27
+ "api_version": 10,
27
28
  "backseat_token": null,
28
29
  "backseat_token_updated_at": null,
29
30
  "drive_state": {
30
- "gps_as_of": 1538363883,
31
+ "gps_as_of": 1604977043,
31
32
  "heading": 5,
32
33
  "latitude": 33.111111,
33
34
  "longitude": -88.111111,
@@ -38,82 +39,77 @@ A rollup of all the `data_request` endpoints plus vehicle configuration.
38
39
  "power": 0,
39
40
  "shift_state": null,
40
41
  "speed": null,
41
- "timestamp": 1538364666096
42
+ "timestamp": 1604977044186
42
43
  },
43
44
  "climate_state": {
44
45
  "battery_heater": false,
45
46
  "battery_heater_no_power": false,
46
- "climate_keeper_mode": "dog",
47
- "driver_temp_setting": 21.6,
47
+ "climate_keeper_mode": "off",
48
+ "defrost_mode": 0,
49
+ "driver_temp_setting": 22.8,
48
50
  "fan_status": 0,
49
- "inside_temp": null,
50
- "is_auto_conditioning_on": null,
51
+ "inside_temp": 26.9,
52
+ "is_auto_conditioning_on": false,
51
53
  "is_climate_on": false,
52
54
  "is_front_defroster_on": false,
53
55
  "is_preconditioning": false,
54
56
  "is_rear_defroster_on": false,
55
- "left_temp_direction": null,
57
+ "left_temp_direction": -224,
56
58
  "max_avail_temp": 28.0,
57
59
  "min_avail_temp": 15.0,
58
- "outside_temp": null,
59
- "passenger_temp_setting": 21.6,
60
- "remote_heater_control_enabled": true,
61
- "right_temp_direction": null,
62
- "seat_heater_left": 3,
63
- "seat_heater_rear_center": 0,
64
- "seat_heater_rear_left": 1,
65
- "seat_heater_rear_left_back": 0,
66
- "seat_heater_rear_right": 1,
67
- "seat_heater_rear_right_back": 0,
68
- "seat_heater_right": 2,
60
+ "outside_temp": 23.0,
61
+ "passenger_temp_setting": 22.8,
62
+ "remote_heater_control_enabled": false,
63
+ "right_temp_direction": -224,
64
+ "seat_heater_left": 0,
65
+ "seat_heater_right": 0,
69
66
  "side_mirror_heaters": false,
70
- "smart_preconditioning": false,
71
- "steering_wheel_heater": false,
72
- "timestamp": 1543186971731,
67
+ "timestamp": 1604977044186,
73
68
  "wiper_blade_heater": false
74
69
  },
75
70
  "charge_state": {
76
71
  "battery_heater_on": false,
77
- "battery_level": 64,
78
- "battery_range": 167.96,
79
- "charge_current_request": 48,
80
- "charge_current_request_max": 48,
72
+ "battery_level": 90,
73
+ "battery_range": 224.47,
74
+ "charge_current_request": 40,
75
+ "charge_current_request_max": 40,
81
76
  "charge_enable_request": true,
82
- "charge_energy_added": 12.41,
77
+ "charge_energy_added": 29.41,
83
78
  "charge_limit_soc": 90,
84
79
  "charge_limit_soc_max": 100,
85
80
  "charge_limit_soc_min": 50,
86
81
  "charge_limit_soc_std": 90,
87
- "charge_miles_added_ideal": 50.0,
88
- "charge_miles_added_rated": 40.0,
89
- "charge_port_cold_weather_mode": false,
90
- "charge_port_door_open": false,
82
+ "charge_miles_added_ideal": 118.5,
83
+ "charge_miles_added_rated": 95.0,
84
+ "charge_port_cold_weather_mode": null,
85
+ "charge_port_door_open": true,
91
86
  "charge_port_latch": "Engaged",
92
87
  "charge_rate": 0.0,
93
88
  "charge_to_max_range": false,
94
89
  "charger_actual_current": 0,
95
90
  "charger_phases": null,
96
- "charger_pilot_current": 48,
91
+ "charger_pilot_current": 40,
97
92
  "charger_power": 0,
98
93
  "charger_voltage": 0,
99
- "charging_state": "Disconnected",
100
- "conn_charge_cable": "<invalid>",
101
- "est_battery_range": 118.38,
94
+ "charging_state": "Complete",
95
+ "conn_charge_cable": "SAE",
96
+ "est_battery_range": 171.24,
102
97
  "fast_charger_brand": "<invalid>",
103
98
  "fast_charger_present": false,
104
99
  "fast_charger_type": "<invalid>",
105
- "ideal_battery_range": 209.95,
100
+ "ideal_battery_range": 280.59,
106
101
  "managed_charging_active": false,
107
102
  "managed_charging_start_time": null,
108
103
  "managed_charging_user_canceled": false,
109
104
  "max_range_charge_counter": 0,
105
+ "minutes_to_full_charge": 0,
110
106
  "not_enough_power_to_heat": false,
111
107
  "scheduled_charging_pending": false,
112
108
  "scheduled_charging_start_time": null,
113
109
  "time_to_full_charge": 0.0,
114
- "timestamp": 1543186971727,
110
+ "timestamp": 1604977044186,
115
111
  "trip_charging": false,
116
- "usable_battery_level": 64,
112
+ "usable_battery_level": 90,
117
113
  "user_charge_enable_request": null
118
114
  },
119
115
  "gui_settings": {
@@ -122,25 +118,27 @@ A rollup of all the `data_request` endpoints plus vehicle configuration.
122
118
  "gui_distance_units": "mi/hr",
123
119
  "gui_range_display": "Rated",
124
120
  "gui_temperature_units": "F",
125
- "timestamp": 1543186971728
121
+ "show_range_units": true,
122
+ "timestamp": 1604977044186
126
123
  },
127
124
  "vehicle_state": {
128
- "api_version": 6,
125
+ "api_version": 10,
129
126
  "autopark_state_v2": "standby",
130
127
  "autopark_style": "standard",
131
128
  "calendar_supported": true,
132
- "car_version": "2018.42.2 19e7e44",
129
+ "car_version": "2020.36.16 3e9e4e8dd287",
133
130
  "center_display_state": 0,
134
131
  "df": 0,
135
132
  "dr": 0,
136
133
  "ft": 0,
134
+ "homelink_device_count": 2,
137
135
  "homelink_nearby": true,
138
136
  "is_user_present": false,
139
137
  "last_autopark_error": "no_error",
140
- "locked": true,
138
+ "locked": false,
141
139
  "media_state": { "remote_control_enabled": true },
142
140
  "notifications_supported": true,
143
- "odometer": 33561.422505,
141
+ "odometer": 57509.856033,
144
142
  "parsed_calendar_supported": true,
145
143
  "pf": 0,
146
144
  "pr": 0,
@@ -148,18 +146,27 @@ A rollup of all the `data_request` endpoints plus vehicle configuration.
148
146
  "remote_start_enabled": true,
149
147
  "remote_start_supported": true,
150
148
  "rt": 0,
151
- "sentry_mode": true,
152
- "software_update": { "expected_duration_sec": 2700, "status": "" },
149
+ "sentry_mode": false,
150
+ "sentry_mode_available": true,
151
+ "smart_summon_available": true,
152
+ "software_update": {
153
+ "download_perc": 0,
154
+ "expected_duration_sec": 2700,
155
+ "install_perc": 1,
156
+ "status": "",
157
+ "version": ""
158
+ },
153
159
  "speed_limit_mode": {
154
160
  "active": false,
155
- "current_limit_mph": 75.0,
161
+ "current_limit_mph": 50.0,
156
162
  "max_limit_mph": 90,
157
163
  "min_limit_mph": 50,
158
- "pin_code_set": false
164
+ "pin_code_set": true
159
165
  },
166
+ "summon_standby_mode_enabled": false,
160
167
  "sun_roof_percent_open": 0,
161
- "sun_roof_state": "unknown",
162
- "timestamp": 1538364666096,
168
+ "sun_roof_state": "closed",
169
+ "timestamp": 1604977044184,
163
170
  "valet_mode": false,
164
171
  "valet_pin_needed": true,
165
172
  "vehicle_name": "Nikola 2.0"
@@ -170,13 +177,12 @@ A rollup of all the `data_request` endpoints plus vehicle configuration.
170
177
  "car_special_type": "base",
171
178
  "car_type": "models2",
172
179
  "charge_port_type": "US",
180
+ "ece_restrictions": false,
173
181
  "eu_vehicle": false,
174
182
  "exterior_color": "White",
175
183
  "has_air_suspension": true,
176
184
  "has_ludicrous_mode": false,
177
- "key_version": 1,
178
185
  "motorized_charge_port": true,
179
- "perf_config": "P2",
180
186
  "plg": true,
181
187
  "rear_seat_heaters": 0,
182
188
  "rear_seat_type": 0,
@@ -186,8 +192,9 @@ A rollup of all the `data_request` endpoints plus vehicle configuration.
186
192
  "spoiler_type": "None",
187
193
  "sun_roof_installed": 2,
188
194
  "third_row_seats": "None",
189
- "timestamp": 1538364666096,
195
+ "timestamp": 1604977044187,
190
196
  "trim_badging": "p90d",
197
+ "use_range_badging": false,
191
198
  "wheel_type": "AeroTurbine19"
192
199
  }
193
200
  }
@@ -14,6 +14,7 @@ Returns various information about the GUI settings of the car, such as unit form
14
14
  "gui_distance_units": "mi/hr",
15
15
  "gui_range_display": "Rated",
16
16
  "gui_temperature_units": "F",
17
+ "show_range_units": true,
17
18
  "timestamp": 1543187561462
18
19
  }
19
20
  }
@@ -8,98 +8,73 @@ Returns a list of nearby Tesla-operated charging stations. (Requires car softwar
8
8
 
9
9
  ```json
10
10
  {
11
- "response":{
12
- "congestion_sync_time_utc_secs":1545091987,
13
- "destination_charging":[
11
+ "response": {
12
+ "congestion_sync_time_utc_secs": 1604976488,
13
+ "destination_charging": [
14
14
  {
15
- "location":{
16
- "lat":33.811484,
17
- "long":-118.138451
18
- },
19
- "name":"Long Beach Marriott",
20
- "type":"destination",
21
- "distance_miles":2.201606
15
+ "location": { "lat": 34.010854, "long": -84.574979 },
16
+ "name": "Hilton Garden Inn Atlanta NW/Kennesaw Town Center",
17
+ "type": "destination",
18
+ "distance_miles": 6.430447
22
19
  },
23
20
  {
24
- "location":{
25
- "lat":33.767198,
26
- "long":-118.191987
27
- },
28
- "name":"Renaissance Long Beach Hotel",
29
- "type":"destination",
30
- "distance_miles":4.071068
21
+ "location": { "lat": 34.011213, "long": -84.575745 },
22
+ "name": "Homewood Suites by Hilton Atlanta NW-Kennesaw",
23
+ "type": "destination",
24
+ "distance_miles": 6.48008
31
25
  },
32
26
  {
33
- "location":{
34
- "lat":33.757146,
35
- "long":-118.19861
36
- },
37
- "name":"Hotel Maya, a Doubletree by Hilton",
38
- "type":"destination",
39
- "distance_miles":4.843953
27
+ "location": { "lat": 33.881785, "long": -84.473461 },
28
+ "name": "Hyatt Place Atlanta/Cobb Galleria",
29
+ "type": "destination",
30
+ "distance_miles": 6.778101
40
31
  },
41
32
  {
42
- "location":{
43
- "lat":33.832254,
44
- "long":-118.079218
45
- },
46
- "name":"The Gardens Casino",
47
- "type":"destination",
48
- "distance_miles":6.449794
33
+ "location": { "lat": 33.991767, "long": -84.351229 },
34
+ "name": "European Collision Repair",
35
+ "type": "destination",
36
+ "distance_miles": 6.805893
49
37
  }
50
38
  ],
51
- "superchargers":[
39
+ "superchargers": [
52
40
  {
53
- "location":{
54
- "lat":33.934471,
55
- "long":-118.121217
56
- },
57
- "name":"Downey, CA - Stonewood Street",
58
- "type":"supercharger",
59
- "distance_miles":2.196721,
60
- "available_stalls":5,
61
- "total_stalls":12,
62
- "site_closed":false
41
+ "location": { "lat": 33.848756, "long": -84.36434 },
42
+ "name": "Atlanta, GA - Peachtree Road",
43
+ "type": "supercharger",
44
+ "distance_miles": 10.868304,
45
+ "available_stalls": 4,
46
+ "total_stalls": 5,
47
+ "site_closed": false
63
48
  },
64
49
  {
65
- "location":{
66
- "lat":33.953385,
67
- "long":-118.112905
68
- },
69
- "name":"Downey, CA - Lakewood Boulevard",
70
- "type":"supercharger",
71
- "distance_miles":9.587273,
72
- "available_stalls":6,
73
- "total_stalls":12,
74
- "site_closed":false
50
+ "location": { "lat": 33.846487, "long": -84.360172 },
51
+ "name": "Atlanta, GA - Lenox Road",
52
+ "type": "supercharger",
53
+ "distance_miles": 11.131691,
54
+ "available_stalls": 16,
55
+ "total_stalls": 16,
56
+ "site_closed": false
75
57
  },
76
58
  {
77
- "location":{
78
- "lat":33.921063,
79
- "long":-118.330074
80
- },
81
- "name":"Hawthorne, CA",
82
- "type":"supercharger",
83
- "distance_miles":12.197322,
84
- "available_stalls":3,
85
- "total_stalls":6,
86
- "site_closed":false
59
+ "location": { "lat": 34.075818, "long": -84.652184 },
60
+ "name": "Acworth, GA",
61
+ "type": "supercharger",
62
+ "distance_miles": 12.403464,
63
+ "available_stalls": 11,
64
+ "total_stalls": 11,
65
+ "site_closed": false
87
66
  },
88
67
  {
89
- "location":{
90
- "lat":33.894227,
91
- "long":-118.367407
92
- },
93
- "name":"Redondo Beach, CA",
94
- "type":"supercharger",
95
- "distance_miles":13.125912,
96
- "available_stalls":3,
97
- "total_stalls":8,
98
- "site_closed":false
68
+ "location": { "lat": 34.071365, "long": -84.275362 },
69
+ "name": "Alpharetta, GA",
70
+ "type": "supercharger",
71
+ "distance_miles": 12.772961,
72
+ "available_stalls": 6,
73
+ "total_stalls": 10,
74
+ "site_closed": false
99
75
  }
100
76
  ],
101
- "timestamp":1545092157769
77
+ "timestamp": 1604977312943
102
78
  }
103
79
  }
104
80
  ```
105
-