teslamotors / vehicle-command

Apache License 2.0
419 stars 93 forks source link

Vehicle endpoints /list and /vehicle return `null` for property `option_codes` #19

Open Darko opened 10 months ago

Darko commented 10 months ago

Hey!

When fetching a vehicles list, or a single vehicle from the GET /api/1/vehicles/{id} or GET /api/1/vehicles the property option_codes is returned with a null value.

Is this intentional, and if so, which endpoint should be used to fetch the option codes for a car?

rawmean commented 10 months ago

They stopped populating option_codes correctly even in the legacy API. Use vehicle_config instead

aaronpkahn commented 10 months ago

@Darko that is confusing; this is a legacy field, and we'll remove it. There is a new option codes endpoint coming in the next few weeks.

Darko commented 10 months ago

@aaronpkahn that is awesome! Is there a particular discord channel or somewhere else where we can monitor change logs?

itsMeDavidV commented 10 months ago

There is a new option codes endpoint coming in the next few weeks.

Much needed, thank you!

aaronpkahn commented 10 months ago

For now we'll post updates here: https://developer.tesla.com/docs/fleet-api#announcements-amp-api-changelog, or if we move to somewhere else we'll link from the documentation

Darko commented 9 months ago

@aaronpkahn Any update on this? It's been a few weeks? 😅

Whirlwind commented 1 month ago

It still not works in china developer website.