Closed paede81 closed 10 months ago
After Model 3 upgraded to 2023.38.x I noticed, that drive_state object is now missing the elements latitude and longitude.
It seems like, Tesla changed the API. According to this post: https://github.com/onokje/node-red-contrib-tesla/issues/69#issuecomment-1826843669 This change will work as a workaround:
From: https://github.com/mseminatore/TeslaJS/blob/dc4ad635518c502990a3bb0b203e7f59fa72d047/teslajs.js#L760
To: get_command(options, "vehicle_data?endpoints=location_data%3Bcharge_state%3Bclimate_state%3Bclosures_state%3Bdrive_state%3Bgui_settings%3Bvehicle_config%3Bvehicle_state", callback);
get_command(options, "vehicle_data?endpoints=location_data%3Bcharge_state%3Bclimate_state%3Bclosures_state%3Bdrive_state%3Bgui_settings%3Bvehicle_config%3Bvehicle_state", callback);
Thank you for reporting this issue!
Any updates?
The library development is currently on hold as we are unable to authenticate with the Tesla servers.
After Model 3 upgraded to 2023.38.x I noticed, that drive_state object is now missing the elements latitude and longitude.
It seems like, Tesla changed the API. According to this post: https://github.com/onokje/node-red-contrib-tesla/issues/69#issuecomment-1826843669 This change will work as a workaround:
From: https://github.com/mseminatore/TeslaJS/blob/dc4ad635518c502990a3bb0b203e7f59fa72d047/teslajs.js#L760
To:
get_command(options, "vehicle_data?endpoints=location_data%3Bcharge_state%3Bclimate_state%3Bclosures_state%3Bdrive_state%3Bgui_settings%3Bvehicle_config%3Bvehicle_state", callback);