alandtse/tesla

Parking break in wrong state when using MQTT

Open

#966 opened on May 13, 2024

View on GitHub
 (1 comment) (0 reactions) (0 assignees)Python (122 forks)github user discovery
bugcargood first issuehelp wantedstaletriage

Repository metrics

Stars
 (741 stars)
PR merge metrics
 (Avg merge 13d 8h) (14 merged PRs in 30d)

Description

Is there an existing issue for this?

  • I have searched both the existing open issues & recently closed issues and did not find a duplicate of this issue.

I have read about the Fleet API and understand I may need to use it

  • I understand issues relating to read only commands will be auto closed if not using the Fleet API.

Version of the Tesla component

3.21.0

Version of the Tesla car software

2023.26.12

Model

Model S (2017)

Current Behavior

I trigger automations when the parking break gets engaged or disengaged. This works quite okay (with some delay) when I just use the Tesla integration without the MQTT function. When I add MQTT (with Teslamate feeding the information) disengaging and engaging the parking brake is correctly detected with a much smaller delay. So when I park the integration correctly reports back that the parking break was engaged.

But then 1 to 5 minutes later I get a message that the parking break has been disengaged and again 5 to 10 minutes later that it has been engaged again. Then it stays that way until I continue driving.

To my knowledge the state of the parking break is not something that is saved to MQTT by Teslamate so this behaviour is quite strange.

Expected Behavior

I expect the parking break to report back only the correct state without switching twice after parking, even when using MQTT.

Debug logs

2024-05-13 14:27:49.089 DEBUG (MainThread) [teslajsonpy.connection] Connecting with existing access token
2024-05-13 14:27:49.091 DEBUG (MainThread) [teslajsonpy.controller] 552 endpoints loaded
2024-05-13 14:27:49.092 DEBUG (MainThread) [teslajsonpy.connection] Token expiration in 5:40:26
2024-05-13 14:27:49.093 DEBUG (MainThread) [teslajsonpy.connection] get: https://owner-api.teslamotors.com/api/1/products {}
2024-05-13 14:27:49.602 DEBUG (MainThread) [teslajsonpy.connection] 200: {"response":[{"id":1492932346026788,"user_id":1269772,"vehicle_id":45645861,"vin":"5YJSA7E29HF193769","color":null,"access_type":"OWNER","display_name":"Humperdoo","option_codes":null,"cached_data":"EiYKAgoAEgISABoCIgAqAhIAOgsIpoWIsgYQgN7zaMAGAdAGAeAGARq1AQoCEgD6AQYI8KuflgaaAgIiAOICCwimh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dBgAASELlBgAAqkKCfQsIpoWIsgYQgN7zaKgGALAGALgGAMAGAMgGANAGANgGAOAGAegGAPAGAIgHAJAHAKAHAKgHALAHAMAHAVpSCAUSMNBkVLOTzxj4X8nymOcRaw+5D26+PU8Ke5mdaR5MJPF0cCY8mAKan6YEBcji0DwSlRoc08A5lshOHt+/u/tdQJPxVVOUs6gR/8wS3VQff1pcCAgSOjwBz8nPGtNqPPm962n9r6DVX4H3Mc3EI//Md+/Jcgk+HoPXx+RAWyds4zrJyduumxYYpgzJtxczxTYaHOHRn2xQO14JmA6tkfz2m0X2tzezT/Tp0OdzRNZalgEIuC8Scx/ZQuxK3+nOiNIhhB8K4wPMfe2k3P7hariOcML/c0TM1a00o8B9m6PVVXfmbE56l8SBWQfyisoxd03LoPd3cceCDEjnjdjGUEck/AuHqsrkYHDdcNg7GI+MxugxnAFFAOwf5uxdiwpjjNWKiwIwptCFcwgaHBsd5WvnpF8+jeKB3qedx+Cf9WKpXtmaKyJWYctiC0Rpc3BsYXkgb2ZmuD4B","granular_access":{"hide_private":false},"tokens":["9d54a266275cd525","50a43b00e41f8536"],"state":"online","in_service":false,"id_s":"1492932346026788","calendar_enabled":true,"api_version":61,"backseat_token":null,"backseat_token_updated_at":null,"ble_autopair_enrolled":false,"command_signing":"off","release_notes_supported":true}],"count":1}
2024-05-13 14:27:49.602 DEBUG (MainThread) [teslajsonpy.controller] 93769: Changing car_online from {} to True
2024-05-13 14:27:49.602 DEBUG (MainThread) [teslajsonpy.controller] 93769: Resetting last_wake_up_time to: 1715603270
2024-05-13 14:27:49.602 DEBUG (MainThread) [teslajsonpy.controller] 93769: Resetting last_parked_timestamp to: 1715603269 shift_state None
2024-05-13 14:27:49.602 DEBUG (MainThread) [teslajsonpy.connection] Token expiration in 5:40:26

-----

2024-05-13 14:32:26.957 DEBUG (MainThread) [custom_components.tesla_custom.teslamate] MQTT Topic Recieved: teslamate/cars/1/is_climate_on
2024-05-13 14:32:26.957 DEBUG (MainThread) [custom_components.tesla_custom.teslamate] Getting TeslaCar for teslaMateID:1
2024-05-13 14:32:26.958 DEBUG (MainThread) [custom_components.tesla_custom.teslamate] Got is_climate_on from MQTT for VIN:5YJSA7E29HF193769 | TeslsMateID:1
2024-05-13 14:32:26.958 DEBUG (MainThread) [custom_components.tesla_custom.teslamate] Updating state 'is_climate_on' to value 'True' in sub_path 'climate_state' for VIN:5YJSA7E29HF193769
2024-05-13 14:32:26.958 DEBUG (MainThread) [custom_components.tesla_custom] Previous debounce task cancelled
2024-05-13 14:32:26.958 DEBUG (MainThread) [custom_components.tesla_custom] New debounce task scheduled
2024-05-13 14:32:27.058 DEBUG (MainThread) [custom_components.tesla_custom] Max delay not reached, scheduling another debounce task
2024-05-13 14:32:27.439 DEBUG (MainThread) [custom_components.tesla_custom] Listeners updated
2024-05-13 14:32:28.212 DEBUG (MainThread) [custom_components.tesla_custom] Running controller.update()
2024-05-13 14:32:28.212 DEBUG (MainThread) [teslajsonpy.controller] Get vehicles. Force: False Time: 30 Interval 60
2024-05-13 14:32:28.212 DEBUG (MainThread) [teslajsonpy.controller] 93769: driving. Polling policy: normal. Update state: normal. Since last park: 279. Since last wake up: 278. Idle interval: 600. shift_state: D sentry: False climate: True, charging: Disconnected 
2024-05-13 14:32:28.212 DEBUG (MainThread) [teslajsonpy.controller] 93769: Resetting last_parked_timestamp to: 1715603548 shift_state D
2024-05-13 14:32:28.212 DEBUG (MainThread) [teslajsonpy.controller] 93769 driving; increasing scan rate to every 60 seconds

-----

2024-05-13 14:32:37.142 DEBUG (MainThread) [custom_components.tesla_custom.teslamate] MQTT Topic Recieved: teslamate/cars/1/location
2024-05-13 14:32:37.142 DEBUG (MainThread) [custom_components.tesla_custom.teslamate] Getting TeslaCar for teslaMateID:1
2024-05-13 14:32:37.142 DEBUG (MainThread) [custom_components.tesla_custom.teslamate] Got location from MQTT for VIN:5YJSA7E29HF193769 | TeslsMateID:1
2024-05-13 14:32:37.246 DEBUG (MainThread) [custom_components.tesla_custom] Listeners updated
2024-05-13 14:32:38.213 DEBUG (MainThread) [custom_components.tesla_custom] Running controller.update()
2024-05-13 14:32:38.214 DEBUG (MainThread) [teslajsonpy.controller] Get vehicles. Force: False Time: 40 Interval 60
2024-05-13 14:32:38.214 DEBUG (MainThread) [teslajsonpy.controller] 93769: driving. Polling policy: normal. Update state: driving. Since last park: 10. Since last wake up: 288. Idle interval: 600. shift_state: D sentry: False climate: True, charging: Disconnected 
2024-05-13 14:32:38.214 DEBUG (MainThread) [teslajsonpy.controller] 93769: Resetting last_parked_timestamp to: 1715603558 shift_state D

-----

2024-05-13 14:32:42.254 DEBUG (MainThread) [custom_components.tesla_custom.teslamate] MQTT Topic Recieved: teslamate/cars/1/inside_temp
2024-05-13 14:32:42.254 DEBUG (MainThread) [custom_components.tesla_custom.teslamate] Getting TeslaCar for teslaMateID:1
2024-05-13 14:32:42.254 DEBUG (MainThread) [custom_components.tesla_custom.teslamate] Got inside_temp from MQTT for VIN:5YJSA7E29HF193769 | TeslsMateID:1
2024-05-13 14:32:42.254 DEBUG (MainThread) [custom_components.tesla_custom.teslamate] Updating state 'inside_temp' to value '31.1' in sub_path 'climate_state' for VIN:5YJSA7E29HF193769
2024-05-13 14:32:42.254 DEBUG (MainThread) [custom_components.tesla_custom] Previous debounce task cancelled
2024-05-13 14:32:42.254 DEBUG (MainThread) [custom_components.tesla_custom] New debounce task scheduled
2024-05-13 14:32:42.362 DEBUG (MainThread) [custom_components.tesla_custom] Listeners updated
2024-05-13 14:32:48.212 DEBUG (MainThread) [custom_components.tesla_custom] Running controller.update()
2024-05-13 14:32:48.213 DEBUG (MainThread) [teslajsonpy.controller] Get vehicles. Force: False Time: 50 Interval 60
2024-05-13 14:32:48.213 DEBUG (MainThread) [teslajsonpy.controller] 93769: driving. Polling policy: normal. Update state: driving. Since last park: 10. Since last wake up: 298. Idle interval: 600. shift_state: D sentry: False climate: True, charging: Disconnected 
2024-05-13 14:32:48.213 DEBUG (MainThread) [teslajsonpy.controller] 93769: Resetting last_parked_timestamp to: 1715603568 shift_state D
2024-05-13 14:32:48.213 DEBUG (MainThread) [teslajsonpy.controller] 93769: Skipping update with state driving. Polling: True. Last update: 19 ago. Last parked: 0 ago. Last wake up 298 ago. 
2024-05-13 14:32:48.213 DEBUG (MainThread) [custom_components.tesla_custom] Finished fetching tesla_custom data in 0.001 seconds (success: True)

-----

2024-05-13 14:32:52.386 DEBUG (MainThread) [custom_components.tesla_custom.teslamate] MQTT Topic Recieved: teslamate/cars/1/state
2024-05-13 14:32:52.386 DEBUG (MainThread) [custom_components.tesla_custom.teslamate] Getting TeslaCar for teslaMateID:1
2024-05-13 14:32:52.386 DEBUG (MainThread) [custom_components.tesla_custom.teslamate] Got state from MQTT for VIN:5YJSA7E29HF193769 | TeslsMateID:1
2024-05-13 14:32:52.386 DEBUG (MainThread) [custom_components.tesla_custom.teslamate] Updating state 'state' to value 'online' in root for VIN:5YJSA7E29HF193769
2024-05-13 14:32:52.386 DEBUG (MainThread) [custom_components.tesla_custom] Previous debounce task cancelled
2024-05-13 14:32:52.386 DEBUG (MainThread) [custom_components.tesla_custom] New debounce task scheduled
2024-05-13 14:32:52.498 DEBUG (MainThread) [custom_components.tesla_custom] Listeners updated
2024-05-13 14:32:58.212 DEBUG (MainThread) [custom_components.tesla_custom] Running controller.update()
2024-05-13 14:32:58.212 DEBUG (MainThread) [teslajsonpy.controller] Get vehicles. Force: False Time: 60 Interval 60
2024-05-13 14:32:58.212 DEBUG (MainThread) [teslajsonpy.controller] 93769: online. Polling policy: normal. Update state: driving. Since last park: 10. Since last wake up: 308. Idle interval: 600. shift_state: P sentry: False climate: True, charging: Disconnected 
2024-05-13 14:32:58.212 DEBUG (MainThread) [teslajsonpy.controller] 93769: Resetting last_parked_timestamp to: 1715603578 shift_state P
2024-05-13 14:32:58.212 DEBUG (MainThread) [teslajsonpy.controller] 93769: online; Polling policy set to 'normal', scanning every 660 seconds
2024-05-13 14:32:58.212 DEBUG (MainThread) [teslajsonpy.controller] 93769: Skipping update with state online. Polling: True. Last update: 29 ago. Last parked: 0 ago. Last wake up 308 ago. 
2024-05-13 14:32:58.212 DEBUG (MainThread) [custom_components.tesla_custom] Finished fetching tesla_custom data in 0.001 seconds (success: True)

-------

2024-05-13 14:33:07.687 DEBUG (MainThread) [custom_components.tesla_custom.teslamate] MQTT Topic Recieved: teslamate/cars/1/is_climate_on
2024-05-13 14:33:07.687 DEBUG (MainThread) [custom_components.tesla_custom.teslamate] Getting TeslaCar for teslaMateID:1
2024-05-13 14:33:07.687 DEBUG (MainThread) [custom_components.tesla_custom.teslamate] Got is_climate_on from MQTT for VIN:5YJSA7E29HF193769 | TeslsMateID:1
2024-05-13 14:33:07.687 DEBUG (MainThread) [custom_components.tesla_custom.teslamate] Updating state 'is_climate_on' to value 'False' in sub_path 'climate_state' for VIN:5YJSA7E29HF193769
2024-05-13 14:33:07.687 DEBUG (MainThread) [custom_components.tesla_custom] Previous debounce task cancelled
2024-05-13 14:33:07.687 DEBUG (MainThread) [custom_components.tesla_custom] New debounce task scheduled
2024-05-13 14:33:07.794 DEBUG (MainThread) [custom_components.tesla_custom] Listeners updated
2024-05-13 14:33:08.212 DEBUG (MainThread) [custom_components.tesla_custom] Running controller.update()
2024-05-13 14:33:08.213 DEBUG (MainThread) [teslajsonpy.controller] Get vehicles. Force: False Time: 10 Interval 60
2024-05-13 14:33:08.213 DEBUG (MainThread) [teslajsonpy.controller] 93769: online. Polling policy: normal. Update state: normal. Since last park: 10. Since last wake up: 318. Idle interval: 600. shift_state: P sentry: False climate: False, charging: Disconnected 
2024-05-13 14:33:08.213 DEBUG (MainThread) [teslajsonpy.controller] 93769: Resetting last_parked_timestamp to: 1715603588 shift_state P
2024-05-13 14:33:08.213 DEBUG (MainThread) [teslajsonpy.controller] 93769: Skipping update with state online. Polling: True. Last update: 39 ago. Last parked: 0 ago. Last wake up 318 ago. 
2024-05-13 14:33:08.213 DEBUG (MainThread) [custom_components.tesla_custom] Finished fetching tesla_custom data in 0.001 seconds (success: True)
2024-05-13 14:33:08.340 DEBUG (MainThread) [custom_components.tesla_custom] Running controller.update()
2024-05-13 14:33:08.341 DEBUG (MainThread) [teslajsonpy.controller] Get vehicles. Force: False Time: 10 Interval 60
2024-05-13 14:33:08.341 DEBUG (MainThread) [custom_components.tesla_custom] Finished fetching tesla_custom data in 0.000 seconds (success: True)
2024-05-13 14:33:18.213 DEBUG (MainThread) [custom_components.tesla_custom] Running controller.update()
2024-05-13 14:33:18.213 DEBUG (MainThread) [teslajsonpy.controller] Get vehicles. Force: False Time: 20 Interval 60
2024-05-13 14:33:18.213 DEBUG (MainThread) [teslajsonpy.controller] 93769: online. Polling policy: normal. Update state: normal. Since last park: 10. Since last wake up: 328. Idle interval: 600. shift_state: P sentry: False climate: False, charging: Disconnected 
2024-05-13 14:33:18.213 DEBUG (MainThread) [teslajsonpy.controller] 93769: Resetting last_parked_timestamp to: 1715603598 shift_state P
2024-05-13 14:33:18.213 DEBUG (MainThread) [teslajsonpy.controller] 93769: Skipping update with state online. Polling: True. Last update: 49 ago. Last parked: 0 ago. Last wake up 328 ago. 
2024-05-13 14:33:18.213 DEBUG (MainThread) [custom_components.tesla_custom] Finished fetching tesla_custom data in 0.001 seconds (success: True)
2024-05-13 14:33:18.340 DEBUG (MainThread) [custom_components.tesla_custom] Running controller.update()
2024-05-13 14:33:18.340 DEBUG (MainThread) [teslajsonpy.controller] Get vehicles. Force: False Time: 20 Interval 60
2024-05-13 14:33:18.340 DEBUG (MainThread) [custom_components.tesla_custom] Finished fetching tesla_custom data in 0.001 seconds (success: True)
2024-05-13 14:33:28.213 DEBUG (MainThread) [custom_components.tesla_custom] Running controller.update()
2024-05-13 14:33:28.213 DEBUG (MainThread) [teslajsonpy.controller] Get vehicles. Force: False Time: 30 Interval 60
2024-05-13 14:33:28.213 DEBUG (MainThread) [teslajsonpy.controller] 93769: online. Polling policy: normal. Update state: normal. Since last park: 10. Since last wake up: 338. Idle interval: 600. shift_state: P sentry: False climate: False, charging: Disconnected 
2024-05-13 14:33:28.214 DEBUG (MainThread) [teslajsonpy.controller] 93769: Resetting last_parked_timestamp to: 1715603608 shift_state P
2024-05-13 14:33:28.214 DEBUG (MainThread) [teslajsonpy.controller] 93769: Skipping update with state online. Polling: True. Last update: 59 ago. Last parked: 0 ago. Last wake up 338 ago. 
2024-05-13 14:33:28.214 DEBUG (MainThread) [custom_components.tesla_custom] Finished fetching tesla_custom data in 0.001 seconds (success: True)
2024-05-13 14:33:28.341 DEBUG (MainThread) [custom_components.tesla_custom] Running controller.update()
2024-05-13 14:33:28.341 DEBUG (MainThread) [teslajsonpy.controller] Get vehicles. Force: False Time: 30 Interval 60
2024-05-13 14:33:28.341 DEBUG (MainThread) [custom_components.tesla_custom] Finished fetching tesla_custom data in 0.000 seconds (success: True)

-----

2024-05-13 14:34:48.340 DEBUG (MainThread) [teslajsonpy.controller] Get vehicles. Force: False Time: 50 Interval 60
2024-05-13 14:34:48.340 DEBUG (MainThread) [custom_components.tesla_custom] Finished fetching tesla_custom data in 0.000 seconds (success: True)
2024-05-13 14:34:58.212 DEBUG (MainThread) [custom_components.tesla_custom] Running controller.update()
2024-05-13 14:34:58.213 DEBUG (MainThread) [teslajsonpy.controller] Get vehicles. Force: False Time: 60 Interval 60
2024-05-13 14:34:58.213 DEBUG (MainThread) [teslajsonpy.controller] 93769: online. Polling policy: normal. Update state: normal. Since last park: 10. Since last wake up: 428. Idle interval: 600. shift_state: P sentry: False climate: False, charging: Disconnected 
2024-05-13 14:34:58.213 DEBUG (MainThread) [teslajsonpy.controller] 93769: Resetting last_parked_timestamp to: 1715603698 shift_state P
2024-05-13 14:34:58.213 DEBUG (MainThread) [teslajsonpy.controller] 93769: Skipping update with state online. Polling: True. Last update: 149 ago. Last parked: 0 ago. Last wake up 428 ago. 
2024-05-13 14:34:58.213 DEBUG (MainThread) [custom_components.tesla_custom] Finished fetching tesla_custom data in 0.001 seconds (success: True)
2024-05-13 14:34:58.340 DEBUG (MainThread) [custom_components.tesla_custom] Running controller.update()
2024-05-13 14:34:58.340 DEBUG (MainThread) [teslajsonpy.controller] Get vehicles. Force: False Time: 60 Interval 60
2024-05-13 14:34:58.340 DEBUG (MainThread) [teslajsonpy.connection] Token expiration in 5:33:17
2024-05-13 14:34:58.341 DEBUG (MainThread) [teslajsonpy.connection] get: https://owner-api.teslamotors.com/api/1/products {}
2024-05-13 14:34:58.695 DEBUG (MainThread) [teslajsonpy.connection] 200: {"response":[{"id":1492932346026788,"user_id":1269772,"vehicle_id":45645861,"vin":"5YJSA7E29HF193769","color":null,"access_type":"OWNER","display_name":"Humperdoo","option_codes":null,"cached_data":"EicKAgoAEgISABoCIgAqAhIAOgwIgJGIsgYQwN3uwQLABgHQBgHgBgEatgEKAhIA+gEGCPCrn5YGmgICIgDiAgwIgJGIsgYQwN3uwQLqAgIKAPICAgoA8gkICgIKABIAGgDABlrIBlrQBjLYBmToBgDwBgD9BvTPmEOFB35bPUONBylzdUOQB1mYB1mlB9gObkGtBwAAbkK1BwAAQEK4BwDABxjIBwDQBwDYBwDoBwDwBwD4BwCQCACoCAHICBjQCBiYCegCoAkAqAkYuAmcBMAJAMgJANAJANgJAOUJAAAAACKOAfIBAgoAigIMCICRiLIGEMDd7sECmgICCgCtBmdm3kG1BgAAyEG9BgAAtEHFBgAAuEHIBuP8/////////wHQBuj8/////////wHYBgDgBgDoBgjwBgH9BgAAcEGFBwAA4EGIBwCQBwDQBwDYBwDwBwD4BwCACACICACwCADACAHoCADwCAD4CAGQCQOwCQAqADKkApICAgoAsgISCgIKAMAGjBXIBgDQBgHaBgEgugIDqAYB2gIMCICRiLIGEMDd7sEC8gICCgD6AgIaALoDBv/3/84PB9IDDAikhoiyBhDA/4zNA9oDDAikhoiyBhDA/4zNA+IDDAikhoiyBhDA/4zNA+oDDAikhoiyBhDA/4zNA8IEAKgGPeIGFzIwMjMuMjYuMTIgMzg1ODljZjNmNjg4sgcJSHVtcGVyZG9vwAcByAcB0AcBmggIbm9fZXJyb3KoCAC4CAHACADoCADwCACgCQG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},"tokens":["8c537e0814269fc2","9d54a266275cd525"],"state":"online","in_service":false,"id_s":"1492932346026788","calendar_enabled":true,"api_version":61,"backseat_token":null,"backseat_token_updated_at":null,"ble_autopair_enrolled":false,"command_signing":"off","release_notes_supported":true}],"count":1}
2024-05-13 14:34:58.695 DEBUG (MainThread) [custom_components.tesla_custom] Finished fetching tesla_custom data in 0.355 seconds (success: True)
2024-05-13 14:35:08.213 DEBUG (MainThread) [custom_components.tesla_custom] Running controller.update()
2024-05-13 14:35:08.214 DEBUG (MainThread) [teslajsonpy.controller] Get vehicles. Force: False Time: 10 Interval 60
2024-05-13 14:35:08.214 DEBUG (MainThread) [teslajsonpy.controller] 93769: online. Polling policy: normal. Update state: normal. Since last park: 10. Since last wake up: 438. Idle interval: 600. shift_state: P sentry: False climate: False, charging: Disconnected 
2024-05-13 14:35:08.214 DEBUG (MainThread) [teslajsonpy.controller] 93769: Resetting last_parked_timestamp to: 1715603708 shift_state P
2024-05-13 14:35:08.214 DEBUG (MainThread) [teslajsonpy.controller] 93769: Skipping update with state online. Polling: True. Last update: 159 ago. Last parked: 0 ago. Last wake up 438 ago. 
2024-05-13 14:35:08.214 DEBUG (MainThread) [custom_components.tesla_custom] Finished fetching tesla_custom data in 0.001 seconds (success: True)
2024-05-13 14:35:08.340 DEBUG (MainThread) [custom_components.tesla_custom] Running controller.update()
2024-05-13 14:35:08.340 DEBUG (MainThread) [teslajsonpy.controller] Get vehicles. Force: False Time: 10 Interval 60

-----

2024-05-13 14:43:38.212 DEBUG (MainThread) [teslajsonpy.controller] Get vehicles. Force: False Time: 40 Interval 60
2024-05-13 14:43:38.212 DEBUG (MainThread) [teslajsonpy.controller] 93769: online. Polling policy: normal. Update state: normal. Since last park: 510. Since last wake up: 948. Idle interval: 600. shift_state:  sentry: False climate: False, charging: Disconnected 
2024-05-13 14:43:38.212 DEBUG (MainThread) [teslajsonpy.controller] 93769: Updating VEHICLE_DATA
2024-05-13 14:43:38.212 DEBUG (MainThread) [teslajsonpy.connection] Token expiration in 5:24:37
2024-05-13 14:43:38.213 DEBUG (MainThread) [teslajsonpy.connection] get: https://owner-api.teslamotors.com/api/1/vehicles/5YJSA7E29HF193769/vehicle_data?endpoints=charge_state%3Bclimate_state%3Bdrive_state%3Bgui_settings%3Bvehicle_config%3Bvehicle_state%3Blocation_data {}
2024-05-13 14:43:38.340 DEBUG (MainThread) [custom_components.tesla_custom] Running controller.update()
2024-05-13 14:43:43.684 DEBUG (MainThread) [teslajsonpy.connection] 200: {"response":{"id":1492932346026788,"user_id":1269772,"vehicle_id":45645861,"vin":"5YJSA7E29HF193769","color":null,"access_type":"OWNER","granular_access":{"hide_private":false},"tokens":["8c537e0814269fc2","9d54a266275cd525"],"state":"online","in_service":false,"id_s":"1492932346026788","calendar_enabled":true,"api_version":61,"backseat_token":null,"backseat_token_updated_at":null,"ble_autopair_enrolled":false,"charge_state":{"battery_heater_on":false,"battery_level":89,"battery_range":305.62,"charge_amps":24,"charge_current_request":24,"charge_current_request_max":24,"charge_enable_request":true,"charge_energy_added":14.88,"charge_limit_soc":90,"charge_limit_soc_max":100,"charge_limit_soc_min":50,"charge_limit_soc_std":90,"charge_miles_added_ideal":48.0,"charge_miles_added_rated":59.5,"charge_port_cold_weather_mode":null,"charge_port_color":"Off","charge_port_door_open":false,"charge_port_latch":"Blocking","charge_rate":0.0,"charger_actual_current":0,"charger_phases":null,"charger_pilot_current":24,"charger_power":0,"charger_voltage":0,"charging_state":"Disconnected","conn_charge_cable":"\u003cinvalid\u003e","est_battery_range":189.09,"fast_charger_brand":"\u003cinvalid\u003e","fast_charger_present":false,"fast_charger_type":"\u003cinvalid\u003e","ideal_battery_range":245.45,"max_range_charge_counter":0,"minutes_to_full_charge":0,"not_enough_power_to_heat":false,"off_peak_charging_enabled":false,"off_peak_charging_times":"all_week","off_peak_hours_end_time":360,"preconditioning_enabled":false,"preconditioning_times":"all_week","scheduled_charging_mode":"Off","scheduled_charging_pending":false,"scheduled_charging_start_time":null,"scheduled_charging_start_time_app":0,"scheduled_departure_time":1657263600,"scheduled_departure_time_minutes":540,"supercharger_session_trip_planner":false,"time_to_full_charge":0.0,"timestamp":1715604223592,"trip_charging":false,"usable_battery_level":89,"user_charge_enable_request":null},"climate_state":{"allow_cabin_overheat_protection":false,"battery_heater":false,"battery_heater_no_power":false,"bioweapon_mode":false,"cabin_overheat_protection":"On","climate_keeper_mode":"off","cop_activation_temperature":"High","defrost_mode":0,"driver_temp_setting":22.5,"fan_status":0,"hvac_auto_request":"On","inside_temp":32.4,"is_auto_conditioning_on":false,"is_climate_on":false,"is_front_defroster_on":false,"is_preconditioning":false,"is_rear_defroster_on":false,"left_temp_direction":-242,"max_avail_temp":28.0,"min_avail_temp":15.0,"outside_temp":25.0,"passenger_temp_setting":23.0,"remote_heater_control_enabled":false,"right_temp_direction":-245,"seat_heater_left":0,"seat_heater_right":0,"side_mirror_heaters":false,"supports_fan_only_cabin_overheat_protection":false,"timestamp":1715604223592,"wiper_blade_heater":false},"drive_state":{"active_route_latitude":51.438331,"active_route_longitude":6.999161,"active_route_traffic_minutes_delay":0.0,"gps_as_of":1715604214,"heading":164,"latitude":51.438049,"longitude":6.999233,"native_latitude":51.438049,"native_location_supported":1,"native_longitude":6.999233,"native_type":"wgs","power":0,"shift_state":null,"speed":null,"timestamp":1715604223592},"gui_settings":{"gui_24_hour_time":true,"gui_charge_rate_units":"kW","gui_distance_units":"km/hr","gui_range_display":"Rated","gui_temperature_units":"C","gui_tirepressure_units":"Bar","show_range_units":true,"timestamp":1715604223592},"vehicle_config":{"can_accept_navigation_requests":true,"can_actuate_trunks":true,"car_special_type":"base","car_type":"models2","charge_port_type":"EU","cop_user_set_temp_supported":false,"dashcam_clip_save_supported":true,"default_charge_to_max":false,"driver_assist":"TeslaAP3","ece_restrictions":true,"efficiency_package":"S2","eu_vehicle":true,"exterior_color":"Red","exterior_trim_override":"Chrome","front_drive_unit":"NoneOrSmall","has_air_suspension":true,"has_ludicrous_mode":false,"has_seat_cooling":false,"headlamp_type":"Led","interior_trim_type":"AllBlack","motorized_charge_port":true,"paint_color_override":"10,1,1,0.1,0.04","plg":true,"pws":false,"rear_drive_unit":"Small","rear_seat_heaters":0,"rear_seat_type":0,"rhd":false,"roof_color":"Glass","seat_type":2,"spoiler_type":"None","sun_roof_installed":0,"supports_qr_pairing":false,"third_row_seats":"None","timestamp":1715604223592,"trim_badging":"100d","use_range_badging":false,"utc_offset":7200,"webcam_selfie_supported":false,"webcam_supported":false,"wheel_type":"Super21Silver"},"vehicle_state":{"allow_authorized_mobile_devices_only":false,"api_version":61,"autopark_state_v2":"ready","autopark_style":"dead_man","calendar_supported":true,"car_version":"2023.26.12 38589cf3f688","center_display_state":0,"dashcam_clip_save_available":false,"dashcam_state":"Unavailable","df":0,"dr":0,"fd_window":0,"feature_bitmask":"f9dffbff,7","fp_window":0,"ft":0,"homelink_device_count":0,"homelink_nearby":false,"is_user_present":false,"last_autopark_error":"no_error","locked":true,"media_info":{"a2dp_source_name":"Pixel 7 Pro","audio_volume":0.3333,"audio_volume_increment":0.333333,"audio_volume_max":10.333333,"media_playback_status":"Stopped","now_playing_album":"","now_playing_artist":"","now_playing_duration":0,"now_playing_elapsed":0,"now_playing_source":"Spotify","now_playing_station":"","now_playing_title":""},"media_state":{"remote_control_enabled":true},"notifications_supported":true,"odometer":114164.285157,"parsed_calendar_supported":true,"pf":0,"pr":0,"rd_window":0,"remote_start":false,"remote_start_enabled":true,"remote_start_supported":true,"rp_window":0,"rt":0,"santa_mode":0,"sentry_mode":false,"sentry_mode_available":true,"service_mode":false,"service_mode_plus":false,"smart_summon_available":true,"software_update":{"download_perc":0,"expected_duration_sec":2700,"install_perc":1,"status":"","version":" "},"speed_limit_mode":{"active":false,"current_limit_mph":85.0,"max_limit_mph":120,"min_limit_mph":50.0,"pin_code_set":false},"summon_standby_mode_enabled":false,"timestamp":1715604223592,"tpms_hard_warning_fl":false,"tpms_hard_warning_fr":false,"tpms_hard_warning_rl":false,"tpms_hard_warning_rr":false,"tpms_last_seen_pressure_time_fl":1715602212,"tpms_last_seen_pressure_time_fr":1715602212,"tpms_last_seen_pressure_time_rl":1715602212,"tpms_last_seen_pressure_time_rr":1715602212,"tpms_pressure_fl":2.875,"tpms_pressure_fr":2.9,"tpms_pressure_rl":2.875,"tpms_pressure_rr":2.875,"tpms_rcp_front_value":2.9,"tpms_rcp_rear_value":2.9,"tpms_soft_warning_fl":false,"tpms_soft_warning_fr":false,"tpms_soft_warning_rl":false,"tpms_soft_warning_rr":false,"valet_mode":false,"valet_pin_needed":false,"vehicle_name":"Humperdoo","webcam_available":false}}}
2024-05-13 14:43:43.684 DEBUG (MainThread) [custom_components.tesla_custom] Finished fetching tesla_custom data in 5.472 seconds (success: True)
2024-05-13 14:43:43.691 DEBUG (MainThread) [teslajsonpy.controller] Get vehicles. Force: False Time: 46 Interval 60

Anything else?

I have really long debug logs which I cannot post here. Here is an abstract: I always get a message when the parking break status changes. The message times are:

Disengaged parking break at 14:32 Engaged parking break at 14:32 (a little later, both actually took place) Additional message about disengaged parking break at 14:35 Additional message about engaged parking break at 14:43

Contributor guide