[tesla] Latest update breaks location

Hi All,

Seems that the latest 2023.38.x firmware update breaks location updates - since installing the app on my two cars, the location shows as 0,0.

There is a PR for Teslamate which provided a fix - Add endpoints parameter by jsight · Pull Request #3373 · adriankumpf/teslamate · GitHub

Does anyone else see this too? Meanwhile, I raised [tesla] Latest vehicle update to 2023.38.x breaks location updates · Issue #15878 · openhab/openhab-addons · GitHub

Cheers,

Paul

Same

Same here.

same issue for me

https://smedley.id.au/tmp/org.openhab.binding.tesla-4.1.0-SNAPSHOT.jar contains a fix for this. This is compatible with OH 4.0.

Patch is in Fix location with firmware 2023.38.x · psmedley/openhab-addons@3919cfb · GitHub

patch is NOT tested with older firmwares.

1 Like

Have the same issue. Can someone explain how to actually apply the patch?
thanks

Un-install the existing binding. Assuming linux install of openhab, copy the snapshot build into /usr/share/openhab/addons

Hello
Am I the only one having the location issue again ? even I installed patched 4.1 tesla addon on openhab 3.4 for issue with 2023.38
I’m on latest Tesla firmware for christmas 2023.44.30.5.1 and since this last update openhab item are not updated correctly:

After a forced location reset to 0.0,0.0
2023-12-28 10:01:55.548 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item ‘TeslaLocation’ changed from 0.0,0.0 to 46.xxxxxx,0.0
2023-12-28 10:01:55.553 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item ‘TeslaLocation’ changed from 46.xxxxxx,0.0 to 0.0,6.xxxxxx

and it still loop on each update
2023-12-28 10:01:55.557 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item ‘TeslaLocation’ changed from 0.0,6.xxxxxx to 46.xxxxxx,0.0
2023-12-28 10:01:55.558 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item ‘TeslaLocation’ changed from 46.xxxxx,0.0 to 0.0,6.xxxxxx

I already tried remove the patched addon and revert to official 4.0.1 but not working. Return to custom 4.1 Tesla addon but issue still here.

Any idea ?
Thanks

The full fix is in 4.1. The build I posted is missing an additional fix from Kai.

Oh sorry I haven’t saw this in november on other post. I’ll try it this afternoon.
Thank you very much for your quick support and answer :wink:

It works !
updated OH from 4.0.3 (not 3.4 as i said before) to 4.1.0, removed old patch, installed new official addon and it’s all right !
Thank you !

1 Like

Since the update to 4.1, the coordinates problem has been solved for me, but the event stream no longer works. in the trace I see that the streaming connection is established once, but the second request gets “error” as a response

2023-12-30 10:25:39.148 [DEBUG] [.internal.handler.TeslaEventEndpoint] - TeslaEventEndpoint-tesla:model3:9538692daa:5YJ3E7EB3MF825xxx : Starting the client to connect to wss://streaming.vn.teslamotors.com/streaming/
2023-12-30 10:25:39.166 [DEBUG] [.internal.handler.TeslaEventEndpoint] - TeslaEventEndpoint-tesla:model3:9538692daa:5YJ3E7EB3MF825xxx : Connecting to wss://streaming.vn.teslamotors.com/streaming/
2023-12-30 10:25:39.445 [DEBUG] [.internal.handler.TeslaEventEndpoint] - TeslaEventEndpoint-tesla:model3:9538692daa:5YJ3E7EB3MF825xxx : Connected to streaming.vn.teslamotors.com/52.210.26.136 with hash 1....308
2023-12-30 10:25:39.447 [DEBUG] [internal.handler.TeslaVehicleHandler] - Event : Authenticating vehicle 168813....812
2023-12-30 10:25:39.447 [TRACE] [.internal.handler.TeslaEventEndpoint] - TeslaEventEndpoint-tesla:model3:9538692daa:5YJ3E7EB3MF825xxx : Received raw data '{"msg_type":"control:hello","connection_timeout":0}'
2023-12-30 10:25:39.449 [DEBUG] [internal.handler.TeslaVehicleHandler] - Event : Received hello
2023-12-30 10:25:39.449 [DEBUG] [.internal.handler.TeslaEventEndpoint] - TeslaEventEndpoint-tesla:model3:9538692daa:5YJ3E7EB3MF825xxx : Sending raw data '{"msg_type":"data:subscribe_oauth","token":"121212.....21212","value":"odometer,speed,soc,elevation,est_heading,est_lat,est_lng,power,shift_state,range,est_range,heading","tag":"168813953812"}'
2023-12-30 10:25:40.292 [TRACE] [.internal.handler.TeslaEventEndpoint] - TeslaEventEndpoint-tesla:model3:9538692daa:5YJ3E7EB3MF825xxx : Received raw data '{"msg_type":"data:update","tag":"168813953812","value":"1703928339603,36107.1,,38,246,177,46.xxx,11.xxx,-5,,120,119,177"}'
2023-12-30 10:25:40.293 [DEBUG] [internal.handler.TeslaVehicleHandler] - Event : Received an update: '1703928339603,36107.1,,38,246,177,46.xx,11.xx,-5,,120,119,177'
2023-12-30 10:25:40.294 [DEBUG] [internal.handler.TeslaVehicleHandler] - STS 2023-12-30T10:25:40.294 CTS 2023-12-30T10:25:39.603 Delta 691
2023-12-30 10:25:40.295 [DEBUG] [internal.handler.TeslaVehicleHandler] - Event : Event stamp is 2023-12-30T10:25:39.603
2023-12-30 10:25:40.297 [TRACE] [internal.handler.TeslaVehicleHandler] - The variable/value pair 'timestamp':'1703928339603' is successfully processed
2023-12-30 10:25:40.302 [TRACE] [internal.handler.TeslaVehicleHandler] - The variable/value pair 'odometer':'36107.1' is successfully processed
2023-12-30 10:25:40.305 [TRACE] [internal.handler.TeslaVehicleHandler] - The variable/value pair 'speed':'' is successfully processed
2023-12-30 10:25:40.306 [TRACE] [internal.handler.TeslaVehicleHandler] - The variable/value pair 'soc':'38' is successfully processed
2023-12-30 10:25:40.308 [TRACE] [internal.handler.TeslaVehicleHandler] - The variable/value pair 'elevation':'246' is successfully processed
2023-12-30 10:25:40.310 [TRACE] [internal.handler.TeslaVehicleHandler] - The variable/value pair 'est_heading':'177' is successfully processed
2023-12-30 10:25:40.313 [TRACE] [internal.handler.TeslaVehicleHandler] - The variable/value pair 'est_lat':'46.xx' is successfully processed
2023-12-30 10:25:40.315 [TRACE] [internal.handler.TeslaVehicleHandler] - The variable/value pair 'est_lng':'11.xx' is successfully processed
2023-12-30 10:25:40.318 [TRACE] [internal.handler.TeslaVehicleHandler] - The variable/value pair 'power':'-5' is successfully processed
2023-12-30 10:25:40.321 [TRACE] [internal.handler.TeslaVehicleHandler] - The variable/value pair 'shift_state':'' is successfully processed
2023-12-30 10:25:40.323 [TRACE] [internal.handler.TeslaVehicleHandler] - The variable/value pair 'range':'120' is successfully processed
2023-12-30 10:25:40.325 [TRACE] [internal.handler.TeslaVehicleHandler] - The variable/value pair 'est_range':'119' is successfully processed
2023-12-30 10:25:40.327 [TRACE] [internal.handler.TeslaVehicleHandler] - The variable/value pair 'heading':'177' is successfully processed
2023-12-30 10:25:42.934 [TRACE] [internal.handler.TeslaVehicleHandler] - Event : Pinging the Tesla event stream infrastructure
..
2023-12-30 10:25:42.946 [TRACE] [internal.handler.TeslaVehicleHandler] - Event : Pinging the Tesla event stream infrastructure
2023-12-30 10:25:42.989 [TRACE] [.internal.handler.TeslaEventEndpoint] - TeslaEventEndpoint-tesla:model3:9538692daa:5YJ3E7EB3MF825xxx : Received a Pong with a roundtrip of 44 milliseconds
..
2023-12-30 10:25:42.991 [TRACE] [.internal.handler.TeslaEventEndpoint] - TeslaEventEndpoint-tesla:model3:9538692daa:5YJ3E7EB3MF825xxx : Received a Pong with a roundtrip of 43 milliseconds
2023-12-30 10:25:43.348 [TRACE] [internal.handler.TeslaVehicleHandler] - Event : Pinging the Tesla event stream infrastructure
2023-12-30 10:25:43.391 [TRACE] [.internal.handler.TeslaEventEndpoint] - TeslaEventEndpoint-tesla:model3:9538692daa:5YJ3E7EB3MF825xxx : Received a Pong with a roundtrip of 41 milliseconds
2023-12-30 10:25:50.293 [TRACE] [.internal.handler.TeslaEventEndpoint] - TeslaEventEndpoint-tesla:model3:9538692daa:5YJ3E7EB3MF825xxx : Received raw data '{"msg_type":"data:error","tag":"168813953812","value":"disconnected","error_type":"vehicle_disconnected"}'
2023-12-30 10:25:50.299 [DEBUG] [internal.handler.TeslaVehicleHandler] - Event : Received an error: 'disconnected'/'vehicle_disconnected'
2023-12-30 10:25:50.302 [DEBUG] [.internal.handler.TeslaEventEndpoint] - TeslaEventEndpoint-tesla:model3:9538692daa:5YJ3E7EB3MF825xxx : Closing the session
2023-12-30 10:25:50.348 [DEBUG] [.internal.handler.TeslaEventEndpoint] - TeslaEventEndpoint-tesla:model3:9538692daa:5YJ3E7EB3MF825xxx : Closed the session with status 1000 for reason null
2023-12-30 10:25:51.452 [DEBUG] [.internal.handler.TeslaEventEndpoint] - TeslaEventEndpoint-tesla:model3:9538692daa:5YJ3E7EB3MF825xxx : The client to connect to wss://streaming.vn.teslamotors.com/streaming/ is already running
2023-12-30 10:25:51.454 [DEBUG] [.internal.handler.TeslaEventEndpoint] - TeslaEventEndpoint-tesla:model3:9538692daa:5YJ3E7EB3MF825xxx : Connecting to wss://streaming.vn.teslamotors.com/streaming/
2023-12-30 10:25:51.670 [DEBUG] [.internal.handler.TeslaEventEndpoint] - TeslaEventEndpoint-tesla:model3:9538692daa:5YJ3E7EB3MF825xxx : Connected to streaming.vn.teslamotors.com/52.210.26.136 with hash 28292335
2023-12-30 10:25:51.672 [TRACE] [internal.handler.TeslaVehicleHandler] - Event : Pinging the Tesla event stream infrastructure
2023-12-30 10:25:51.672 [TRACE] [.internal.handler.TeslaEventEndpoint] - TeslaEventEndpoint-tesla:model3:9538692daa:5YJ3E7EB3MF825xxx : Received raw data '{"msg_type":"control:hello","connection_timeout":0}'
2023-12-30 10:25:51.673 [DEBUG] [internal.handler.TeslaVehicleHandler] - Event : Received hello
2023-12-30 10:25:51.716 [TRACE] [.internal.handler.TeslaEventEndpoint] - TeslaEventEndpoint-tesla:model3:9538692daa:5YJ3E7EB3MF825xxx : Received a Pong with a roundtrip of 42 milliseconds
2023-12-30 10:25:54.937 [TRACE] [internal.handler.TeslaVehicleHandler] - Event : Pinging the Tesla event stream infrastructure
2023-12-30 10:25:54.937 [TRACE] [internal.handler.TeslaVehicleHandler] - Event : Pinging the Tesla event stream infrastructur