How Tesla binding (and API) works?

Hi,

I’m about to setup Tesla binding and I would like to know how the communication happens between client, Tesla server and car. If I don’t send command to the car just ask for data, then will it wake up the car or just the server send response with the latest data it knows? So if I set the allowWakeupForCommands to false then it won’t wake my car up?

Can anyone help me (developer maybe)?

If you’re not sending commands, it won’t wake up the car.

If you are sending commands, it will only wake the car up if allowWakeupForCommands is enabled.

thank you

Is the current build of the Tesla binding working? I just tried the current 4.1.2 snapshot from JFrog
and it just repeats:

29-Feb-2024 11:52:30.226 [DEBUG] [binding.tesla.internal.handler.TeslaAccountHandler] - Setting up an authenticated connection to the Tesla back-end
29-Feb-2024 11:52:30.226 [DEBUG] [binding.tesla.internal.handler.TeslaAccountHandler] - Current authentication time 2024-02-29 11:52:30
29-Feb-2024 11:52:30.227 [DEBUG] [binding.tesla.internal.handler.TeslaAccountHandler] - Found a request token from 2024-02-29 11:48:42
29-Feb-2024 11:52:30.227 [DEBUG] [binding.tesla.internal.handler.TeslaAccountHandler] - Access token expiration time 2024-02-29 19:48:42
29-Feb-2024 11:52:30.228 [DEBUG] [binding.tesla.internal.handler.TeslaAccountHandler] - The access token has not expired yet
29-Feb-2024 11:52:30.390 [ERROR] [binding.tesla.internal.handler.TeslaAccountHandler] - Error fetching the list of vehicles : 412:org.apache.cxf.jaxrs.impl.ResponseImpl$1@1471325

I tried to setup my binding first time, collected refreshToken from TeslaPy and got the same error.

I assume you are using the snapshot because Tesla change the endpoints recently so the default binding in 4.1.1 doesn’t work. You need at least the one from 4.1.2

You are right, I tried with 4.1.0, but now I have the version 4.1.2.202401071839 and the error is the same.

New vehicle? Owner-API is deprecated for newer cars in favour of fleetapi.

New for me, but it is a Model3 from 2021. I can see everything with Teslapy.

OK, if Teslapy is still working, it should be possible for it to work with OpenHAB.