timdorr / tesla-api

🚘 A Ruby gem and unofficial documentation of Tesla's JSON API for the Model S, 3, X, and Y.
https://tesla-api.timdorr.com/
MIT License
2k stars 534 forks source link

display_name is no longer part of vehicle_data response #728

Open clearwave1 opened 1 year ago

clearwave1 commented 1 year ago

I wrote my own app for my Tizen watch a few years ago and it has been working fine for my purposes.

I noticed recently that my vehicle display name was showing undefined so I did some debugging and noticed that Tesla no longer includes this field in the vehicle_data call.

It is included in the vehicles/[vehicle_id] call so I changed my code and all is fine now.

I thought you might want to update the docs or correct me if I'm missing something.

SylvainGa commented 1 year ago

I was about to post the same. Indeed, I it's no longer there. The 'joy' of undocumented API lol

It's in vehicle_name under vehicle_state subsection of the vehicle_data response.

itsMeDavidV commented 1 year ago

Thanks for the heads up :)