Tesla binding updates stopped suddenly

Hello,
I’m using OpenHAB for 5 month now, and I’m giving a hat tip to all the people working on it because that’s a great machine. I’m logging my Tesla 3 almost from that moment and it worked really great until the day before yesterday, when at some moment it were no longer able to communicate with the car.
To try to solve it I updated it, restarted the server (an Atom PC running LinuxMint) and updated also the refresh Token, with no improvement.
Tesla Things status keeps going from green to red to green at each update attempt.
I lowered the log level to trace and here i what I get for a typical update attempt :

2023-04-29 07:08:32.686 [DEBUG] [internal.handler.TeslaAccountHandler] - Setting up an authenticated connection to the Tesla back-end
2023-04-29 07:08:32.689 [DEBUG] [internal.handler.TeslaAccountHandler] - Current authentication time 2023-04-29 07:08:32
2023-04-29 07:08:32.694 [DEBUG] [internal.handler.TeslaAccountHandler] - Found a request token from 2023-04-29 06:58:46
2023-04-29 07:08:32.696 [DEBUG] [internal.handler.TeslaAccountHandler] - Access token expiration time 2023-04-29 14:58:46
2023-04-29 07:08:32.699 [DEBUG] [internal.handler.TeslaAccountHandler] - The access token has not expired yet
2023-04-29 07:08:33.040 [DEBUG] [internal.handler.TeslaAccountHandler] - Querying the vehicle: Response: 200: OK
2023-04-29 07:08:33.044 [DEBUG] [internal.handler.TeslaAccountHandler] - Invoking: vehicle_config
2023-04-29 07:08:33.169 [TRACE] [internal.handler.TeslaAccountHandler] - Resetting the error counter. (1 errors in the last interval)
2023-04-29 07:08:33.172 [DEBUG] [internal.handler.TeslaAccountHandler] - An error occurred while communicating with the vehicle during request vehicle_config: 404: Not Found
2023-04-29 07:08:46.097 [DEBUG] [internal.handler.TeslaAccountHandler] - Invoking: drive_state
2023-04-29 07:08:46.230 [DEBUG] [internal.handler.TeslaAccountHandler] - An error occurred while communicating with the vehicle during request drive_state: 404: Not Found
2023-04-29 07:08:47.099 [DEBUG] [internal.handler.TeslaAccountHandler] - Invoking: vehicle_state
2023-04-29 07:08:47.239 [DEBUG] [internal.handler.TeslaAccountHandler] - An error occurred while communicating with the vehicle during request vehicle_state: 404: Not Found
2023-04-29 07:08:47.827 [DEBUG] [internal.handler.TeslaVehicleHandler] - Querying the vehicle, response : 200, OK
2023-04-29 07:08:47.833 [DEBUG] [internal.handler.TeslaVehicleHandler] - Querying the vehicle: VIN 5YJ3E7EB1LFxxxxxx
2023-04-29 07:08:47.834 [DEBUG] [internal.handler.TeslaVehicleHandler] - Vehicle state is online
2023-04-29 07:08:47.837 [ERROR] [internal.handler.TeslaVehicleHandler] - An exception occurred while parsing data received from the vehicle: 'null'
2023-04-29 07:08:47.839 [TRACE] [internal.handler.TeslaVehicleHandler] - Vehicle is id 1492932107819294/vehicle_id 862306847/tokens [1b7ca2213deccb68, 893b31fdc89c5ac4]
2023-04-29 07:08:47.840 [DEBUG] [internal.handler.TeslaAccountHandler] - Invoking: charge_state
2023-04-29 07:08:47.956 [WARN ] [internal.handler.TeslaAccountHandler] - Reached the maximum number of errors (3) for the current interval (15 seconds)
2023-04-29 07:08:47.958 [DEBUG] [internal.handler.TeslaAccountHandler] - An error occurred while communicating with the vehicle during request charge_state: 404: Not Found
2023-04-29 07:08:48.177 [DEBUG] [internal.handler.TeslaAccountHandler] - Setting up an authenticated connection to the Tesla back-end
2023-04-29 07:08:48.180 [DEBUG] [internal.handler.TeslaAccountHandler] - Current authentication time 2023-04-29 07:08:48
2023-04-29 07:08:48.182 [DEBUG] [internal.handler.TeslaAccountHandler] - Found a request token from 2023-04-29 06:58:46
2023-04-29 07:08:48.185 [DEBUG] [internal.handler.TeslaAccountHandler] - Access token expiration time 2023-04-29 14:58:46
2023-04-29 07:08:48.188 [DEBUG] [internal.handler.TeslaAccountHandler] - The access token has not expired yet
2023-04-29 07:08:48.442 [DEBUG] [internal.handler.TeslaAccountHandler] - Querying the vehicle: Response: 200: OK
2023-04-29 07:08:48.447 [DEBUG] [internal.handler.TeslaAccountHandler] - Invoking: vehicle_config
2023-04-29 07:08:48.579 [TRACE] [internal.handler.TeslaAccountHandler] - Resetting the error counter. (1 errors in the last interval)
2023-04-29 07:08:48.582 [DEBUG] [internal.handler.TeslaAccountHandler] - An error occurred while communicating with the vehicle during request vehicle_config: 404: Not Found
2023-04-29 07:08:49.101 [DEBUG] [internal.handler.TeslaAccountHandler] - Invoking: gui_settings
2023-04-29 07:08:49.233 [DEBUG] [internal.handler.TeslaAccountHandler] - An error occurred while communicating with the vehicle during request gui_settings: 404: Not Found
2023-04-29 07:08:50.102 [DEBUG] [internal.handler.TeslaAccountHandler] - Invoking: mobile_enabled
2023-04-29 07:08:50.510 [TRACE] [internal.handler.TeslaAccountHandler] - Request : mobile_enabled:null yields true
2023-04-29 07:08:50.513 [TRACE] [internal.handler.TeslaVehicleHandler] - The variable/value pair 'mobile_enabled':'"true"' is successfully processed
2023-04-29 07:09:01.097 [DEBUG] [internal.handler.TeslaAccountHandler] - Invoking: drive_state
2023-04-29 07:09:01.222 [DEBUG] [internal.handler.TeslaAccountHandler] - An error occurred while communicating with the vehicle during request drive_state: 404: Not Found
2023-04-29 07:09:02.099 [DEBUG] [internal.handler.TeslaAccountHandler] - Invoking: vehicle_state
2023-04-29 07:09:02.379 [WARN ] [internal.handler.TeslaAccountHandler] - Reached the maximum number of errors (3) for the current interval (15 seconds)
2023-04-29 07:09:02.389 [DEBUG] [internal.handler.TeslaAccountHandler] - An error occurred while communicating with the vehicle during request vehicle_state: 404: Not Found

Does someone has any idea about what’s going wrong?
Thank you,

1 Like

+1, same issue

same here.
All channels contain “NULL”. Connection to account and vehicle is online. Aby ideas what to do?

Same thing here. Any idea what happened ??

Same here - if I can supply any information from my system needed to solve this, please just ask.

Same. Keeps flipping between online and offline.

While online, i get the following error from the vehicle handler: An exception occurred while parsing data received from the vehicle: ‘null’

Tesla made major changes in the API. The binding needs to be maintained.

1 Like

+1, same issue

The “funny” thing is that the Tibber app that with a high probability uses the Tesla API is still working.

Same issue here, Tesla Homebridge plugin still works for me without issue

Same issue for me. Teslafi still working.
Tried several new refresh token.
OH update to latest version 3.4.3 did not fix the issue either.

Same issue here
@Herto seems like this issue is registered on github [tesla binding] API not responsive to invoking vehicle_config, drive_state, vehicle state: error 404: not found. · Issue #14894 · openhab/openhab-addons · GitHub
Please registered the issue on github so it can quickly be resolved and not only in this forum/community.

There are hopes!

Seems that there is smart people out there that quickly found a solution:

Or am I misunderstanding things - I’m far from an expert…

Issue is fixed for me after update to latest binding:

https://github.com/openhab/openhab-addons/issues/14894

Thanks that also fix the connection problem for me

Hi all, sorry to hijack the discussion here, but I’d like to ask you guys how does the binding work for you? I ask because I often experience problem with OH integration to Tesla:

  1. Items not updated - for example climate system is turned on however the state still shows off, the temperatures are also not updated
  2. Significant delay when control the car - for example when turn on Sentry, it literally takes 5 minutes.
  3. Many items shows Null value - for example I was hoping “eventstamp” can tell when the last state is obtained (for trouble shoot issue 1), but it’s null

I also have Tesla in HomeKit with HomeBridge plugin which works more responsively and reliably. What’s your experience with the OH binding? Do you see similar issues that I described?
Thank you!

The same for me. This will be history once real 3.4.4 will be out.

Also strange that when the car goes to sleep, it stops polling data, even though the car is online for hours after sleep. I’d like to set up some automation based on location of the car, however the location does not change for some reason…

@Kai - Will there be a OH 3.4.4 release with the fix?
Thanks a lot for fixing it.

Yes, 3.4.4 will be released tonight.

3 Likes