tescmd 0.1.2__py3-none-any.whl → 0.2.0__py3-none-any.whl
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.
- tescmd/__init__.py +1 -1
- tescmd/api/client.py +8 -1
- tescmd/api/errors.py +8 -0
- tescmd/api/vehicle.py +19 -1
- tescmd/cache/response_cache.py +3 -2
- tescmd/cli/auth.py +30 -2
- tescmd/cli/key.py +149 -14
- tescmd/cli/main.py +44 -0
- tescmd/cli/setup.py +230 -22
- tescmd/cli/vehicle.py +464 -1
- tescmd/crypto/__init__.py +3 -1
- tescmd/crypto/ecdh.py +9 -0
- tescmd/crypto/schnorr.py +191 -0
- tescmd/deploy/tailscale_serve.py +154 -0
- tescmd/models/__init__.py +0 -2
- tescmd/models/auth.py +19 -0
- tescmd/models/config.py +1 -0
- tescmd/models/energy.py +0 -9
- tescmd/protocol/session.py +10 -3
- tescmd/telemetry/__init__.py +19 -0
- tescmd/telemetry/dashboard.py +227 -0
- tescmd/telemetry/decoder.py +284 -0
- tescmd/telemetry/fields.py +248 -0
- tescmd/telemetry/flatbuf.py +162 -0
- tescmd/telemetry/protos/__init__.py +4 -0
- tescmd/telemetry/protos/vehicle_alert.proto +31 -0
- tescmd/telemetry/protos/vehicle_alert_pb2.py +42 -0
- tescmd/telemetry/protos/vehicle_alert_pb2.pyi +44 -0
- tescmd/telemetry/protos/vehicle_connectivity.proto +23 -0
- tescmd/telemetry/protos/vehicle_connectivity_pb2.py +40 -0
- tescmd/telemetry/protos/vehicle_connectivity_pb2.pyi +33 -0
- tescmd/telemetry/protos/vehicle_data.proto +768 -0
- tescmd/telemetry/protos/vehicle_data_pb2.py +136 -0
- tescmd/telemetry/protos/vehicle_data_pb2.pyi +1336 -0
- tescmd/telemetry/protos/vehicle_error.proto +23 -0
- tescmd/telemetry/protos/vehicle_error_pb2.py +44 -0
- tescmd/telemetry/protos/vehicle_error_pb2.pyi +39 -0
- tescmd/telemetry/protos/vehicle_metric.proto +22 -0
- tescmd/telemetry/protos/vehicle_metric_pb2.py +44 -0
- tescmd/telemetry/protos/vehicle_metric_pb2.pyi +37 -0
- tescmd/telemetry/server.py +293 -0
- tescmd/telemetry/tailscale.py +300 -0
- {tescmd-0.1.2.dist-info → tescmd-0.2.0.dist-info}/METADATA +72 -35
- {tescmd-0.1.2.dist-info → tescmd-0.2.0.dist-info}/RECORD +47 -22
- {tescmd-0.1.2.dist-info → tescmd-0.2.0.dist-info}/WHEEL +0 -0
- {tescmd-0.1.2.dist-info → tescmd-0.2.0.dist-info}/entry_points.txt +0 -0
- {tescmd-0.1.2.dist-info → tescmd-0.2.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1,768 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package telemetry.vehicle_data;
|
|
4
|
+
|
|
5
|
+
import "google/protobuf/timestamp.proto";
|
|
6
|
+
|
|
7
|
+
option go_package = "github.com/teslamotors/fleet-telemetry/protos";
|
|
8
|
+
|
|
9
|
+
enum Field {
|
|
10
|
+
Unknown = 0;
|
|
11
|
+
DriveRail = 1;
|
|
12
|
+
ChargeState = 2;
|
|
13
|
+
BmsFullchargecomplete = 3;
|
|
14
|
+
VehicleSpeed = 4;
|
|
15
|
+
Odometer = 5;
|
|
16
|
+
PackVoltage = 6;
|
|
17
|
+
PackCurrent = 7;
|
|
18
|
+
Soc = 8;
|
|
19
|
+
DCDCEnable = 9;
|
|
20
|
+
Gear = 10;
|
|
21
|
+
IsolationResistance = 11;
|
|
22
|
+
PedalPosition = 12;
|
|
23
|
+
BrakePedal = 13;
|
|
24
|
+
DiStateR = 14;
|
|
25
|
+
DiHeatsinkTR = 15;
|
|
26
|
+
DiAxleSpeedR = 16;
|
|
27
|
+
DiTorquemotor = 17;
|
|
28
|
+
DiStatorTempR = 18;
|
|
29
|
+
DiVBatR = 19;
|
|
30
|
+
DiMotorCurrentR = 20;
|
|
31
|
+
Location = 21;
|
|
32
|
+
GpsState = 22;
|
|
33
|
+
GpsHeading = 23;
|
|
34
|
+
NumBrickVoltageMax = 24;
|
|
35
|
+
BrickVoltageMax = 25;
|
|
36
|
+
NumBrickVoltageMin = 26;
|
|
37
|
+
BrickVoltageMin = 27;
|
|
38
|
+
NumModuleTempMax = 28;
|
|
39
|
+
ModuleTempMax = 29;
|
|
40
|
+
NumModuleTempMin = 30;
|
|
41
|
+
ModuleTempMin = 31;
|
|
42
|
+
RatedRange = 32;
|
|
43
|
+
Hvil = 33;
|
|
44
|
+
DCChargingEnergyIn = 34;
|
|
45
|
+
DCChargingPower = 35;
|
|
46
|
+
ACChargingEnergyIn = 36;
|
|
47
|
+
ACChargingPower = 37;
|
|
48
|
+
ChargeLimitSoc = 38;
|
|
49
|
+
FastChargerPresent = 39;
|
|
50
|
+
EstBatteryRange = 40;
|
|
51
|
+
IdealBatteryRange = 41;
|
|
52
|
+
BatteryLevel = 42;
|
|
53
|
+
TimeToFullCharge = 43;
|
|
54
|
+
ScheduledChargingStartTime = 44;
|
|
55
|
+
ScheduledChargingPending = 45;
|
|
56
|
+
ScheduledDepartureTime = 46;
|
|
57
|
+
PreconditioningEnabled = 47;
|
|
58
|
+
ScheduledChargingMode = 48;
|
|
59
|
+
ChargeAmps = 49;
|
|
60
|
+
ChargeEnableRequest = 50;
|
|
61
|
+
ChargerPhases = 51;
|
|
62
|
+
ChargePortColdWeatherMode = 52;
|
|
63
|
+
ChargeCurrentRequest = 53;
|
|
64
|
+
ChargeCurrentRequestMax = 54;
|
|
65
|
+
BatteryHeaterOn = 55;
|
|
66
|
+
NotEnoughPowerToHeat = 56;
|
|
67
|
+
SuperchargerSessionTripPlanner = 57;
|
|
68
|
+
DoorState = 58;
|
|
69
|
+
Locked = 59;
|
|
70
|
+
FdWindow = 60;
|
|
71
|
+
FpWindow = 61;
|
|
72
|
+
RdWindow = 62;
|
|
73
|
+
RpWindow = 63;
|
|
74
|
+
VehicleName = 64;
|
|
75
|
+
SentryMode = 65;
|
|
76
|
+
SpeedLimitMode = 66;
|
|
77
|
+
CurrentLimitMph = 67;
|
|
78
|
+
Version = 68;
|
|
79
|
+
TpmsPressureFl = 69;
|
|
80
|
+
TpmsPressureFr = 70;
|
|
81
|
+
TpmsPressureRl = 71;
|
|
82
|
+
TpmsPressureRr = 72;
|
|
83
|
+
SemitruckTpmsPressureRe1L0 = 73; // Semi-truck only
|
|
84
|
+
SemitruckTpmsPressureRe1L1 = 74; // Semi-truck only
|
|
85
|
+
SemitruckTpmsPressureRe1R0 = 75; // Semi-truck only
|
|
86
|
+
SemitruckTpmsPressureRe1R1 = 76; // Semi-truck only
|
|
87
|
+
SemitruckTpmsPressureRe2L0 = 77; // Semi-truck only
|
|
88
|
+
SemitruckTpmsPressureRe2L1 = 78; // Semi-truck only
|
|
89
|
+
SemitruckTpmsPressureRe2R0 = 79; // Semi-truck only
|
|
90
|
+
SemitruckTpmsPressureRe2R1 = 80; // Semi-truck only
|
|
91
|
+
TpmsLastSeenPressureTimeFl = 81;
|
|
92
|
+
TpmsLastSeenPressureTimeFr = 82;
|
|
93
|
+
TpmsLastSeenPressureTimeRl = 83;
|
|
94
|
+
TpmsLastSeenPressureTimeRr = 84;
|
|
95
|
+
InsideTemp = 85;
|
|
96
|
+
OutsideTemp = 86;
|
|
97
|
+
SeatHeaterLeft = 87;
|
|
98
|
+
SeatHeaterRight = 88;
|
|
99
|
+
SeatHeaterRearLeft = 89;
|
|
100
|
+
SeatHeaterRearRight = 90;
|
|
101
|
+
SeatHeaterRearCenter = 91;
|
|
102
|
+
AutoSeatClimateLeft = 92;
|
|
103
|
+
AutoSeatClimateRight = 93;
|
|
104
|
+
DriverSeatBelt = 94;
|
|
105
|
+
PassengerSeatBelt = 95;
|
|
106
|
+
DriverSeatOccupied = 96;
|
|
107
|
+
SemitruckPassengerSeatFoldPosition = 97; // Semi-truck only
|
|
108
|
+
LateralAcceleration = 98;
|
|
109
|
+
LongitudinalAcceleration = 99;
|
|
110
|
+
Deprecated_2 = 100;
|
|
111
|
+
CruiseSetSpeed = 101;
|
|
112
|
+
LifetimeEnergyUsed = 102;
|
|
113
|
+
LifetimeEnergyUsedDrive = 103; // Semi-truck only
|
|
114
|
+
SemitruckTractorParkBrakeStatus = 104; // Semi-truck only
|
|
115
|
+
SemitruckTrailerParkBrakeStatus = 105; // Semi-truck only
|
|
116
|
+
BrakePedalPos = 106;
|
|
117
|
+
RouteLastUpdated = 107; // Requires firmware version 2024.26 or later
|
|
118
|
+
RouteLine = 108; // Requires firmware version 2024.26 or later
|
|
119
|
+
MilesToArrival = 109; // Requires firmware version 2024.26 or later
|
|
120
|
+
MinutesToArrival = 110; // Requires firmware version 2024.26 or later
|
|
121
|
+
OriginLocation = 111; // Requires firmware version 2024.26 or later
|
|
122
|
+
DestinationLocation = 112; // Requires firmware version 2024.26 or later
|
|
123
|
+
CarType = 113;
|
|
124
|
+
Trim = 114;
|
|
125
|
+
ExteriorColor = 115;
|
|
126
|
+
RoofColor = 116;
|
|
127
|
+
ChargePort = 117;
|
|
128
|
+
ChargePortLatch = 118;
|
|
129
|
+
Experimental_1 = 119;
|
|
130
|
+
Experimental_2 = 120;
|
|
131
|
+
Experimental_3 = 121;
|
|
132
|
+
Experimental_4 = 122;
|
|
133
|
+
GuestModeEnabled = 123;
|
|
134
|
+
PinToDriveEnabled = 124;
|
|
135
|
+
PairedPhoneKeyAndKeyFobQty = 125;
|
|
136
|
+
CruiseFollowDistance = 126;
|
|
137
|
+
AutomaticBlindSpotCamera = 127;
|
|
138
|
+
BlindSpotCollisionWarningChime = 128;
|
|
139
|
+
SpeedLimitWarning = 129;
|
|
140
|
+
ForwardCollisionWarning = 130;
|
|
141
|
+
LaneDepartureAvoidance = 131;
|
|
142
|
+
EmergencyLaneDepartureAvoidance = 132;
|
|
143
|
+
AutomaticEmergencyBrakingOff = 133;
|
|
144
|
+
LifetimeEnergyGainedRegen = 134;
|
|
145
|
+
DiStateF = 135;
|
|
146
|
+
DiStateREL = 136;
|
|
147
|
+
DiStateRER = 137;
|
|
148
|
+
DiHeatsinkTF = 138;
|
|
149
|
+
DiHeatsinkTREL = 139;
|
|
150
|
+
DiHeatsinkTRER = 140;
|
|
151
|
+
DiAxleSpeedF = 141;
|
|
152
|
+
DiAxleSpeedREL = 142;
|
|
153
|
+
DiAxleSpeedRER = 143;
|
|
154
|
+
DiSlaveTorqueCmd = 144;
|
|
155
|
+
DiTorqueActualR = 145;
|
|
156
|
+
DiTorqueActualF = 146;
|
|
157
|
+
DiTorqueActualREL = 147;
|
|
158
|
+
DiTorqueActualRER = 148;
|
|
159
|
+
DiStatorTempF = 149;
|
|
160
|
+
DiStatorTempREL = 150;
|
|
161
|
+
DiStatorTempRER = 151;
|
|
162
|
+
DiVBatF = 152;
|
|
163
|
+
DiVBatREL = 153;
|
|
164
|
+
DiVBatRER = 154;
|
|
165
|
+
DiMotorCurrentF = 155;
|
|
166
|
+
DiMotorCurrentREL = 156;
|
|
167
|
+
DiMotorCurrentRER = 157;
|
|
168
|
+
EnergyRemaining = 158;
|
|
169
|
+
ServiceMode = 159;
|
|
170
|
+
BMSState = 160;
|
|
171
|
+
GuestModeMobileAccessState = 161;
|
|
172
|
+
Deprecated_1 = 162;
|
|
173
|
+
DestinationName = 163; // Requires firmware version 2024.26 or later
|
|
174
|
+
DiInverterTR = 164;
|
|
175
|
+
DiInverterTF = 165;
|
|
176
|
+
DiInverterTREL = 166;
|
|
177
|
+
DiInverterTRER = 167;
|
|
178
|
+
Experimental_5 = 168;
|
|
179
|
+
Experimental_6 = 169;
|
|
180
|
+
Experimental_7 = 170;
|
|
181
|
+
Experimental_8 = 171;
|
|
182
|
+
Experimental_9 = 172;
|
|
183
|
+
Experimental_10 = 173;
|
|
184
|
+
Experimental_11 = 174;
|
|
185
|
+
Experimental_12 = 175;
|
|
186
|
+
Experimental_13 = 176;
|
|
187
|
+
Experimental_14 = 177;
|
|
188
|
+
Experimental_15 = 178;
|
|
189
|
+
|
|
190
|
+
// fields below here are always returned typed
|
|
191
|
+
// field 179 is first available in firmware version 2024.38
|
|
192
|
+
|
|
193
|
+
DetailedChargeState = 179;
|
|
194
|
+
|
|
195
|
+
// fields 180-183, 185-228 are first available in firmware version 2024.44.25 and 2024.45.25 (the 2024.45. versioning is ~equivalent to 2024.44.)
|
|
196
|
+
// field 184 is first available in firmware version 2024.44.32 and 2024.45.32 (the 2024.45. versioning is ~equivalent to 2024.44.)
|
|
197
|
+
|
|
198
|
+
CabinOverheatProtectionMode = 180;
|
|
199
|
+
CabinOverheatProtectionTemperatureLimit = 181;
|
|
200
|
+
CenterDisplay = 182;
|
|
201
|
+
ChargePortDoorOpen = 183;
|
|
202
|
+
ChargerVoltage = 184;
|
|
203
|
+
ChargingCableType = 185;
|
|
204
|
+
ClimateKeeperMode = 186;
|
|
205
|
+
DefrostForPreconditioning = 187;
|
|
206
|
+
DefrostMode = 188;
|
|
207
|
+
EfficiencyPackage = 189;
|
|
208
|
+
EstimatedHoursToChargeTermination = 190;
|
|
209
|
+
EuropeVehicle = 191;
|
|
210
|
+
ExpectedEnergyPercentAtTripArrival = 192;
|
|
211
|
+
FastChargerType = 193;
|
|
212
|
+
HomelinkDeviceCount = 194;
|
|
213
|
+
HomelinkNearby = 195;
|
|
214
|
+
HvacACEnabled = 196;
|
|
215
|
+
HvacAutoMode = 197;
|
|
216
|
+
HvacFanSpeed = 198;
|
|
217
|
+
HvacFanStatus = 199;
|
|
218
|
+
HvacLeftTemperatureRequest = 200;
|
|
219
|
+
HvacPower = 201;
|
|
220
|
+
HvacRightTemperatureRequest = 202;
|
|
221
|
+
HvacSteeringWheelHeatAuto = 203;
|
|
222
|
+
HvacSteeringWheelHeatLevel = 204;
|
|
223
|
+
OffroadLightbarPresent = 205;
|
|
224
|
+
PowershareHoursLeft = 206;
|
|
225
|
+
PowershareInstantaneousPowerKW = 207;
|
|
226
|
+
PowershareStatus = 208;
|
|
227
|
+
PowershareStopReason = 209;
|
|
228
|
+
PowershareType = 210;
|
|
229
|
+
RearDisplayHvacEnabled = 211;
|
|
230
|
+
RearSeatHeaters = 212;
|
|
231
|
+
RemoteStartEnabled = 213;
|
|
232
|
+
RightHandDrive = 214;
|
|
233
|
+
RouteTrafficMinutesDelay = 215;
|
|
234
|
+
SoftwareUpdateDownloadPercentComplete = 216;
|
|
235
|
+
SoftwareUpdateExpectedDurationMinutes = 217;
|
|
236
|
+
SoftwareUpdateInstallationPercentComplete = 218;
|
|
237
|
+
SoftwareUpdateScheduledStartTime = 219;
|
|
238
|
+
SoftwareUpdateVersion = 220;
|
|
239
|
+
TonneauOpenPercent = 221;
|
|
240
|
+
TonneauPosition = 222;
|
|
241
|
+
TonneauTentMode = 223;
|
|
242
|
+
TpmsHardWarnings = 224;
|
|
243
|
+
TpmsSoftWarnings = 225;
|
|
244
|
+
ValetModeEnabled = 226;
|
|
245
|
+
WheelType = 227;
|
|
246
|
+
WiperHeatEnabled = 228;
|
|
247
|
+
|
|
248
|
+
// fields 229-238 are first available in firmware version 2024.44.32 and 2024.45.32 (the 2024.45 versioning is ~equivalent to 2024.44)
|
|
249
|
+
|
|
250
|
+
LocatedAtHome = 229;
|
|
251
|
+
LocatedAtWork = 230;
|
|
252
|
+
LocatedAtFavorite = 231;
|
|
253
|
+
SettingDistanceUnit = 232;
|
|
254
|
+
SettingTemperatureUnit = 233;
|
|
255
|
+
Setting24HourTime = 234;
|
|
256
|
+
SettingTirePressureUnit = 235;
|
|
257
|
+
SettingChargeUnit = 236;
|
|
258
|
+
ClimateSeatCoolingFrontLeft = 237;
|
|
259
|
+
ClimateSeatCoolingFrontRight = 238;
|
|
260
|
+
|
|
261
|
+
// fields 239-257 are first available in firmware version 2025.2.6 (device client version 1.0.0)
|
|
262
|
+
|
|
263
|
+
LightsHazardsActive = 239;
|
|
264
|
+
LightsTurnSignal = 240;
|
|
265
|
+
LightsHighBeams = 241;
|
|
266
|
+
MediaPlaybackStatus = 242;
|
|
267
|
+
MediaPlaybackSource = 243;
|
|
268
|
+
MediaAudioVolume = 244;
|
|
269
|
+
MediaNowPlayingDuration = 245;
|
|
270
|
+
MediaNowPlayingElapsed = 246;
|
|
271
|
+
MediaNowPlayingArtist = 247;
|
|
272
|
+
MediaNowPlayingTitle = 248;
|
|
273
|
+
MediaNowPlayingAlbum = 249;
|
|
274
|
+
MediaNowPlayingStation = 250;
|
|
275
|
+
MediaAudioVolumeIncrement = 251;
|
|
276
|
+
MediaAudioVolumeMax = 252;
|
|
277
|
+
SunroofInstalled = 253;
|
|
278
|
+
SeatVentEnabled = 254;
|
|
279
|
+
RearDefrostEnabled = 255;
|
|
280
|
+
ChargeRateMilePerHour = 256;
|
|
281
|
+
Deprecated_3 = 257;
|
|
282
|
+
|
|
283
|
+
// fields 258-259 are first available in firmware version 2025.44.25.5 (device client version 1.2.0)
|
|
284
|
+
|
|
285
|
+
MilesSinceReset = 258;
|
|
286
|
+
SelfDrivingMilesSinceReset = 259;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
// ChargingState is deprecated and not used
|
|
290
|
+
enum ChargingState {
|
|
291
|
+
ChargeStateUnknown = 0;
|
|
292
|
+
ChargeStateDisconnected = 1;
|
|
293
|
+
ChargeStateNoPower = 2;
|
|
294
|
+
ChargeStateStarting = 3;
|
|
295
|
+
ChargeStateCharging = 4;
|
|
296
|
+
ChargeStateComplete = 5;
|
|
297
|
+
ChargeStateStopped = 6;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
enum DetailedChargeStateValue {
|
|
301
|
+
DetailedChargeStateUnknown = 0;
|
|
302
|
+
DetailedChargeStateDisconnected = 1;
|
|
303
|
+
DetailedChargeStateNoPower = 2;
|
|
304
|
+
DetailedChargeStateStarting = 3;
|
|
305
|
+
DetailedChargeStateCharging = 4;
|
|
306
|
+
DetailedChargeStateComplete = 5;
|
|
307
|
+
DetailedChargeStateStopped = 6;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
// ShiftState are the gear options
|
|
311
|
+
enum ShiftState {
|
|
312
|
+
ShiftStateUnknown = 0;
|
|
313
|
+
ShiftStateInvalid = 1;
|
|
314
|
+
ShiftStateP = 2;
|
|
315
|
+
ShiftStateR = 3;
|
|
316
|
+
ShiftStateN = 4;
|
|
317
|
+
ShiftStateD = 5;
|
|
318
|
+
ShiftStateSNA = 6;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
// LocationValue is a Datum value type
|
|
322
|
+
message LocationValue {
|
|
323
|
+
double latitude = 1;
|
|
324
|
+
double longitude = 2;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
enum FollowDistance {
|
|
328
|
+
FollowDistanceUnknown = 0;
|
|
329
|
+
FollowDistance1 = 1;
|
|
330
|
+
FollowDistance2 = 2;
|
|
331
|
+
FollowDistance3 = 3;
|
|
332
|
+
FollowDistance4 = 4;
|
|
333
|
+
FollowDistance5 = 5;
|
|
334
|
+
FollowDistance6 = 6;
|
|
335
|
+
FollowDistance7 = 7;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
enum ForwardCollisionSensitivity {
|
|
339
|
+
ForwardCollisionSensitivityUnknown = 0;
|
|
340
|
+
ForwardCollisionSensitivityOff = 1;
|
|
341
|
+
ForwardCollisionSensitivityLate = 2;
|
|
342
|
+
ForwardCollisionSensitivityAverage = 3;
|
|
343
|
+
ForwardCollisionSensitivityEarly = 4;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
enum GuestModeMobileAccess {
|
|
347
|
+
GuestModeMobileAccessUnknown = 0;
|
|
348
|
+
GuestModeMobileAccessInit = 1;
|
|
349
|
+
GuestModeMobileAccessNotAuthenticated = 2;
|
|
350
|
+
GuestModeMobileAccessAuthenticated = 3;
|
|
351
|
+
GuestModeMobileAccessAbortedDriving = 4;
|
|
352
|
+
GuestModeMobileAccessAbortedUsingRemoteStart = 5;
|
|
353
|
+
GuestModeMobileAccessAbortedUsingBLEKeys = 6;
|
|
354
|
+
GuestModeMobileAccessAbortedValetMode = 7;
|
|
355
|
+
GuestModeMobileAccessAbortedGuestModeOff = 8;
|
|
356
|
+
GuestModeMobileAccessAbortedDriveAuthTimeExceeded = 9;
|
|
357
|
+
GuestModeMobileAccessAbortedNoDataReceived = 10;
|
|
358
|
+
GuestModeMobileAccessRequestingFromMothership = 11;
|
|
359
|
+
GuestModeMobileAccessRequestingFromAuthD = 12;
|
|
360
|
+
GuestModeMobileAccessAbortedFetchFailed = 13;
|
|
361
|
+
GuestModeMobileAccessAbortedBadDataReceived = 14;
|
|
362
|
+
GuestModeMobileAccessShowingQRCode = 15;
|
|
363
|
+
GuestModeMobileAccessSwipedAway = 16;
|
|
364
|
+
GuestModeMobileAccessDismissedQRCodeExpired = 17;
|
|
365
|
+
GuestModeMobileAccessSucceededPairedNewBLEKey = 18;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
enum LaneAssistLevel {
|
|
369
|
+
LaneAssistLevelUnknown = 0;
|
|
370
|
+
LaneAssistLevelNone = 1;
|
|
371
|
+
LaneAssistLevelWarning = 2;
|
|
372
|
+
LaneAssistLevelAssist = 3;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
enum ScheduledChargingModeValue {
|
|
376
|
+
ScheduledChargingModeUnknown = 0;
|
|
377
|
+
ScheduledChargingModeOff = 1;
|
|
378
|
+
ScheduledChargingModeStartAt = 2;
|
|
379
|
+
ScheduledChargingModeDepartBy = 3;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
enum SentryModeState {
|
|
383
|
+
SentryModeStateUnknown = 0;
|
|
384
|
+
SentryModeStateOff = 1;
|
|
385
|
+
SentryModeStateIdle = 2;
|
|
386
|
+
SentryModeStateArmed = 3;
|
|
387
|
+
SentryModeStateAware = 4;
|
|
388
|
+
SentryModeStatePanic = 5;
|
|
389
|
+
SentryModeStateQuiet = 6;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
enum SpeedAssistLevel {
|
|
393
|
+
SpeedAssistLevelUnknown = 0;
|
|
394
|
+
SpeedAssistLevelNone = 1;
|
|
395
|
+
SpeedAssistLevelDisplay = 2;
|
|
396
|
+
SpeedAssistLevelChime = 3;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
enum BMSStateValue {
|
|
400
|
+
BMSStateUnknown = 0;
|
|
401
|
+
BMSStateStandby = 1;
|
|
402
|
+
BMSStateDrive = 2;
|
|
403
|
+
BMSStateSupport = 3;
|
|
404
|
+
BMSStateCharge = 4;
|
|
405
|
+
BMSStateFEIM = 5;
|
|
406
|
+
BMSStateClearFault = 6;
|
|
407
|
+
BMSStateFault = 7;
|
|
408
|
+
BMSStateWeld = 8;
|
|
409
|
+
BMSStateTest = 9;
|
|
410
|
+
BMSStateSNA = 10;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
enum BuckleStatus {
|
|
414
|
+
BuckleStatusUnknown = 0;
|
|
415
|
+
BuckleStatusUnlatched = 1;
|
|
416
|
+
BuckleStatusLatched = 2;
|
|
417
|
+
BuckleStatusFaulted = 3;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
enum CarTypeValue {
|
|
421
|
+
CarTypeUnknown = 0;
|
|
422
|
+
CarTypeModelS = 1;
|
|
423
|
+
CarTypeModelX = 2;
|
|
424
|
+
CarTypeModel3 = 3;
|
|
425
|
+
CarTypeModelY = 4;
|
|
426
|
+
CarTypeSemiTruck = 5;
|
|
427
|
+
CarTypeCybertruck = 6;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
enum ChargePortValue {
|
|
431
|
+
ChargePortUnknown = 0;
|
|
432
|
+
ChargePortUS = 1;
|
|
433
|
+
ChargePortEU = 2;
|
|
434
|
+
ChargePortGB = 3;
|
|
435
|
+
ChargePortCCS = 4;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
enum ChargePortLatchValue {
|
|
439
|
+
ChargePortLatchUnknown = 0;
|
|
440
|
+
ChargePortLatchSNA = 1;
|
|
441
|
+
ChargePortLatchDisengaged = 2;
|
|
442
|
+
ChargePortLatchEngaged = 3;
|
|
443
|
+
ChargePortLatchBlocking = 4;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
message Doors {
|
|
447
|
+
bool DriverFront = 1;
|
|
448
|
+
bool DriverRear = 2;
|
|
449
|
+
bool PassengerFront = 3;
|
|
450
|
+
bool PassengerRear = 4;
|
|
451
|
+
bool TrunkFront = 5;
|
|
452
|
+
bool TrunkRear = 6;
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
enum DriveInverterState {
|
|
456
|
+
DriveInverterStateUnknown = 0;
|
|
457
|
+
DriveInverterStateUnavailable = 1;
|
|
458
|
+
DriveInverterStateStandby = 2;
|
|
459
|
+
DriveInverterStateFault = 3;
|
|
460
|
+
DriveInverterStateAbort = 4;
|
|
461
|
+
DriveInverterStateEnable = 5;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
enum HvilStatus {
|
|
465
|
+
HvilStatusUnknown = 0;
|
|
466
|
+
HvilStatusFault = 1;
|
|
467
|
+
HvilStatusOK = 2;
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
enum WindowState {
|
|
471
|
+
WindowStateUnknown = 0;
|
|
472
|
+
WindowStateClosed = 1;
|
|
473
|
+
WindowStatePartiallyOpen = 2;
|
|
474
|
+
WindowStateOpened = 3;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
enum SeatFoldPosition {
|
|
478
|
+
SeatFoldPositionUnknown = 0;
|
|
479
|
+
SeatFoldPositionSNA = 1;
|
|
480
|
+
SeatFoldPositionFaulted = 2;
|
|
481
|
+
SeatFoldPositionNotConfigured = 3;
|
|
482
|
+
SeatFoldPositionFolded = 4;
|
|
483
|
+
SeatFoldPositionUnfolded = 5;
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
enum TractorAirStatus {
|
|
487
|
+
TractorAirStatusUnknown = 0;
|
|
488
|
+
TractorAirStatusNotAvailable = 1;
|
|
489
|
+
TractorAirStatusError = 2;
|
|
490
|
+
TractorAirStatusCharged = 3;
|
|
491
|
+
TractorAirStatusBuildingPressureIntermediate = 4;
|
|
492
|
+
TractorAirStatusExhaustingPressureIntermediate = 5;
|
|
493
|
+
TractorAirStatusExhausted = 6;
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
enum TrailerAirStatus {
|
|
497
|
+
TrailerAirStatusUnknown = 0;
|
|
498
|
+
TrailerAirStatusSNA = 1;
|
|
499
|
+
TrailerAirStatusInvalid = 2;
|
|
500
|
+
TrailerAirStatusBobtailMode = 3;
|
|
501
|
+
TrailerAirStatusCharged = 4;
|
|
502
|
+
TrailerAirStatusBuildingPressureIntermediate = 5;
|
|
503
|
+
TrailerAirStatusExhaustingPressureIntermediate = 6;
|
|
504
|
+
TrailerAirStatusExhausted = 7;
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
enum HvacAutoModeState {
|
|
508
|
+
HvacAutoModeStateUnknown = 0;
|
|
509
|
+
HvacAutoModeStateOn = 1;
|
|
510
|
+
HvacAutoModeStateOverride = 2;
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
enum CabinOverheatProtectionModeState {
|
|
514
|
+
CabinOverheatProtectionModeStateUnknown = 0;
|
|
515
|
+
CabinOverheatProtectionModeStateOff = 1;
|
|
516
|
+
CabinOverheatProtectionModeStateOn = 2;
|
|
517
|
+
CabinOverheatProtectionModeStateFanOnly = 3;
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
enum ClimateOverheatProtectionTempLimit {
|
|
521
|
+
ClimateOverheatProtectionTempLimitUnknown = 0;
|
|
522
|
+
ClimateOverheatProtectionTempLimitHigh = 1;
|
|
523
|
+
ClimateOverheatProtectionTempLimitMedium = 2;
|
|
524
|
+
ClimateOverheatProtectionTempLimitLow = 3;
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
enum DefrostModeState {
|
|
528
|
+
DefrostModeStateUnknown = 0;
|
|
529
|
+
DefrostModeStateOff = 1;
|
|
530
|
+
DefrostModeStateNormal = 2;
|
|
531
|
+
DefrostModeStateMax = 3;
|
|
532
|
+
DefrostModeStateAutoDefog = 4;
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
enum ClimateKeeperModeState {
|
|
536
|
+
ClimateKeeperModeStateUnknown = 0;
|
|
537
|
+
ClimateKeeperModeStateOff = 1;
|
|
538
|
+
ClimateKeeperModeStateOn = 2;
|
|
539
|
+
ClimateKeeperModeStateDog = 3;
|
|
540
|
+
ClimateKeeperModeStateParty = 4;
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
enum HvacPowerState {
|
|
544
|
+
HvacPowerStateUnknown = 0;
|
|
545
|
+
HvacPowerStateOff = 1;
|
|
546
|
+
HvacPowerStateOn = 2;
|
|
547
|
+
HvacPowerStatePrecondition = 3;
|
|
548
|
+
HvacPowerStateOverheatProtect = 4;
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
enum FastCharger {
|
|
552
|
+
FastChargerUnknown = 0;
|
|
553
|
+
FastChargerSupercharger = 1;
|
|
554
|
+
FastChargerCHAdeMO = 2;
|
|
555
|
+
FastChargerGB = 3;
|
|
556
|
+
FastChargerACSingleWireCAN = 4;
|
|
557
|
+
FastChargerCombo = 5;
|
|
558
|
+
FastChargerMCSingleWireCAN = 6;
|
|
559
|
+
FastChargerOther = 7;
|
|
560
|
+
FastChargerSNA = 8;
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
enum CableType {
|
|
564
|
+
CableTypeUnknown = 0;
|
|
565
|
+
CableTypeIEC = 1;
|
|
566
|
+
CableTypeSAE = 2;
|
|
567
|
+
CableTypeGB_AC = 3;
|
|
568
|
+
CableTypeGB_DC = 4;
|
|
569
|
+
CableTypeSNA = 5;
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
enum TonneauTentModeState {
|
|
573
|
+
TonneauTentModeStateUnknown = 0;
|
|
574
|
+
TonneauTentModeStateInactive = 1;
|
|
575
|
+
TonneauTentModeStateMoving = 2;
|
|
576
|
+
TonneauTentModeStateFailed = 3;
|
|
577
|
+
TonneauTentModeStateActive = 4;
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
enum TonneauPositionState {
|
|
581
|
+
TonneauPositionStateUnknown = 0;
|
|
582
|
+
TonneauPositionStateInvalid = 1;
|
|
583
|
+
TonneauPositionStateClosed = 2;
|
|
584
|
+
TonneauPositionStatePartiallyOpen = 3;
|
|
585
|
+
TonneauPositionStateFullyOpen = 4;
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
enum PowershareState {
|
|
589
|
+
PowershareStateUnknown = 0;
|
|
590
|
+
PowershareStateInactive = 1;
|
|
591
|
+
PowershareStateHandshaking = 2;
|
|
592
|
+
PowershareStateInit = 3;
|
|
593
|
+
PowershareStateEnabled = 4;
|
|
594
|
+
PowershareStateEnabledReconnectingSoon = 5;
|
|
595
|
+
PowershareStateStopped = 6;
|
|
596
|
+
}
|
|
597
|
+
enum PowershareStopReasonStatus {
|
|
598
|
+
PowershareStopReasonStatusUnknown = 0;
|
|
599
|
+
PowershareStopReasonStatusNone = 1;
|
|
600
|
+
PowershareStopReasonStatusSOCTooLow = 2;
|
|
601
|
+
PowershareStopReasonStatusRetry = 3;
|
|
602
|
+
PowershareStopReasonStatusFault = 4;
|
|
603
|
+
PowershareStopReasonStatusUser = 5;
|
|
604
|
+
PowershareStopReasonStatusReconnecting = 6;
|
|
605
|
+
PowershareStopReasonStatusAuthentication = 7;
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
enum PowershareTypeStatus {
|
|
609
|
+
PowershareTypeStatusUnknown = 0;
|
|
610
|
+
PowershareTypeStatusNone = 1;
|
|
611
|
+
PowershareTypeStatusLoad = 2;
|
|
612
|
+
PowershareTypeStatusHome = 3;
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
enum DisplayState {
|
|
616
|
+
DisplayStateUnknown = 0;
|
|
617
|
+
DisplayStateOff = 1;
|
|
618
|
+
DisplayStateDim = 2;
|
|
619
|
+
DisplayStateAccessory = 3;
|
|
620
|
+
DisplayStateOn = 4;
|
|
621
|
+
DisplayStateDriving = 5;
|
|
622
|
+
DisplayStateCharging = 6;
|
|
623
|
+
DisplayStateLock = 7;
|
|
624
|
+
DisplayStateSentry = 8;
|
|
625
|
+
DisplayStateDog = 9;
|
|
626
|
+
DisplayStateEntertainment = 10;
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
enum DistanceUnit {
|
|
630
|
+
DistanceUnitUnknown = 0;
|
|
631
|
+
DistanceUnitMiles = 1;
|
|
632
|
+
DistanceUnitKilometers = 2;
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
enum TemperatureUnit {
|
|
636
|
+
TemperatureUnitUnknown = 0;
|
|
637
|
+
TemperatureUnitFahrenheit = 1;
|
|
638
|
+
TemperatureUnitCelsius = 2;
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
enum PressureUnit {
|
|
642
|
+
PressureUnitUnknown = 0;
|
|
643
|
+
PressureUnitPsi = 1;
|
|
644
|
+
PressureUnitBar = 2;
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
enum ChargeUnitPreference {
|
|
648
|
+
ChargeUnitUnknown = 0;
|
|
649
|
+
ChargeUnitDistance = 1;
|
|
650
|
+
ChargeUnitPercent = 2;
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
enum SunroofInstalledState {
|
|
654
|
+
SunroofInstalledStateUnknown = 0;
|
|
655
|
+
SunroofInstalledStateNotInstalled = 1;
|
|
656
|
+
SunroofInstalledStateGen1Installed = 2;
|
|
657
|
+
SunroofInstalledStateGen2Installed = 3;
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
enum TurnSignalState {
|
|
661
|
+
TurnSignalStateUnknown = 0;
|
|
662
|
+
TurnSignalStateOff = 1;
|
|
663
|
+
TurnSignalStateLeft = 2;
|
|
664
|
+
TurnSignalStateRight = 3;
|
|
665
|
+
TurnSignalStateBoth = 4;
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
enum MediaStatus {
|
|
669
|
+
MediaStatusUnknown = 0;
|
|
670
|
+
MediaStatusStopped = 1;
|
|
671
|
+
MediaStatusPlaying = 2;
|
|
672
|
+
MediaStatusPaused = 3;
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
message TireLocation {
|
|
676
|
+
bool front_left = 1;
|
|
677
|
+
bool front_right = 2;
|
|
678
|
+
bool rear_left = 3;
|
|
679
|
+
bool rear_right = 4;
|
|
680
|
+
|
|
681
|
+
bool semi_middle_axle_left_2 = 5;
|
|
682
|
+
bool semi_middle_axle_right_2 = 6;
|
|
683
|
+
bool semi_rear_axle_left = 7;
|
|
684
|
+
bool semi_rear_axle_right = 8;
|
|
685
|
+
bool semi_rear_axle_left_2 = 9;
|
|
686
|
+
bool semi_rear_axle_right_2 = 10;
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
message Time {
|
|
690
|
+
int32 hour = 1;
|
|
691
|
+
int32 minute = 2;
|
|
692
|
+
int32 second = 3;
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
// Value is a dynamic Datum type. Most Datums are strings and is the default format
|
|
696
|
+
// Note: Fields may have their types updated with different software and vehicle
|
|
697
|
+
// versions to optimize for precision or space
|
|
698
|
+
message Value {
|
|
699
|
+
oneof value {
|
|
700
|
+
string string_value = 1;
|
|
701
|
+
int32 int_value = 2;
|
|
702
|
+
int64 long_value = 3;
|
|
703
|
+
float float_value = 4;
|
|
704
|
+
double double_value = 5;
|
|
705
|
+
bool boolean_value = 6;
|
|
706
|
+
LocationValue location_value = 7;
|
|
707
|
+
ChargingState charging_value = 8;
|
|
708
|
+
ShiftState shift_state_value = 9;
|
|
709
|
+
bool invalid = 10;
|
|
710
|
+
LaneAssistLevel lane_assist_level_value = 11;
|
|
711
|
+
ScheduledChargingModeValue scheduled_charging_mode_value = 12;
|
|
712
|
+
SentryModeState sentry_mode_state_value = 13;
|
|
713
|
+
SpeedAssistLevel speed_assist_level_value = 14;
|
|
714
|
+
BMSStateValue bms_state_value = 15;
|
|
715
|
+
BuckleStatus buckle_status_value = 16;
|
|
716
|
+
CarTypeValue car_type_value = 17;
|
|
717
|
+
ChargePortValue charge_port_value = 18;
|
|
718
|
+
ChargePortLatchValue charge_port_latch_value = 19;
|
|
719
|
+
Doors door_value = 21;
|
|
720
|
+
DriveInverterState drive_inverter_state_value = 22;
|
|
721
|
+
HvilStatus hvil_status_value = 23;
|
|
722
|
+
WindowState window_state_value = 24;
|
|
723
|
+
SeatFoldPosition seat_fold_position_value = 25;
|
|
724
|
+
TractorAirStatus tractor_air_status_value = 26;
|
|
725
|
+
FollowDistance follow_distance_value = 27;
|
|
726
|
+
ForwardCollisionSensitivity forward_collision_sensitivity_value = 28;
|
|
727
|
+
GuestModeMobileAccess guest_mode_mobile_access_value = 29;
|
|
728
|
+
TrailerAirStatus trailer_air_status_value = 30;
|
|
729
|
+
Time time_value = 31;
|
|
730
|
+
DetailedChargeStateValue detailed_charge_state_value = 32;
|
|
731
|
+
HvacAutoModeState hvac_auto_mode_value = 33;
|
|
732
|
+
CabinOverheatProtectionModeState cabin_overheat_protection_mode_value = 34;
|
|
733
|
+
ClimateOverheatProtectionTempLimit cabin_overheat_protection_temperature_limit_value = 35;
|
|
734
|
+
DefrostModeState defrost_mode_value = 36;
|
|
735
|
+
ClimateKeeperModeState climate_keeper_mode_value = 37;
|
|
736
|
+
HvacPowerState hvac_power_value = 38;
|
|
737
|
+
TireLocation tire_location_value = 39;
|
|
738
|
+
FastCharger fast_charger_value = 40;
|
|
739
|
+
CableType cable_type_value = 41;
|
|
740
|
+
TonneauTentModeState tonneau_tent_mode_value = 42;
|
|
741
|
+
TonneauPositionState tonneau_position_value = 43;
|
|
742
|
+
PowershareTypeStatus powershare_type_value = 44;
|
|
743
|
+
PowershareState powershare_state_value = 45;
|
|
744
|
+
PowershareStopReasonStatus powershare_stop_reason_value = 46;
|
|
745
|
+
DisplayState display_state_value = 47;
|
|
746
|
+
DistanceUnit distance_unit_value = 48;
|
|
747
|
+
TemperatureUnit temperature_unit_value = 49;
|
|
748
|
+
PressureUnit pressure_unit_value = 50;
|
|
749
|
+
ChargeUnitPreference charge_unit_preference_value = 51;
|
|
750
|
+
TurnSignalState turn_signal_state_value = 52;
|
|
751
|
+
MediaStatus media_status_value = 53;
|
|
752
|
+
SunroofInstalledState sunroof_installed_state_value = 54;
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
// Datum represents a single field and its value
|
|
757
|
+
message Datum {
|
|
758
|
+
Field key = 1;
|
|
759
|
+
Value value = 2;
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
// Payload holds a collection of values, and may not have a vin
|
|
763
|
+
message Payload {
|
|
764
|
+
repeated Datum data = 1;
|
|
765
|
+
google.protobuf.Timestamp created_at = 2;
|
|
766
|
+
string vin = 3;
|
|
767
|
+
bool is_resend = 4;
|
|
768
|
+
}
|