mseminatore / TeslaJS

An Unofficial Tesla API library for NodeJS
https://www.teslajs.org
MIT License
411 stars 102 forks source link

Way to differentiate 5, 6, 7 seat Model X #296

Open joepalexander opened 2 years ago

joepalexander commented 2 years ago

I recently picked my personal project up and have been using this library a lot more. I have managed to aggregate every other piece of data linking to the 13 cars on my holding account. My one issue relates to the one Model X we have in the fleet. I was wondering if anyone had had a chance to pull the vehicle config for a Model X and had noticed any different variables in the JSON response? The two tells for me seem to be the

  1. vehicle_config[rear_seat_type] == (returns an 8 for my Model X 5 seat)

  2. vehicle_config[third_row_seats] == (none)

variables.

My issue is that, I have no problem differentiating between a 5 seat and a 6&7 seat due to the third row seat variable, however no method of automatically differentiating between 6 and 7 seat models.

Has anyone looked into this before? or would anyone be able to pull the vehicle_config for a 6 or 7 seat Mx and compare those two variables?

Amazing library Mark! - Thanks

J