alandtse/tesla

'Teslamate ID' isn't retained - ValueError: invalid literal for int() with base 10: ''

Chiusa

#1055 aperta il 19 ott 2024

 (5 commenti) (1 reazione) (0 assegnatari)Python (128 fork)github user discovery
bugcargood first issuehelp wantedstaletriage

Metriche repository

Star
 (776 stelle)
Metriche merge PR
 (Merge medio 13g 8h) (14 PR mergiate in 30 g)

Descrizione

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

v3.24.1

Version of the Tesla car software

2024.32.9

Model

Model S

Current Behavior

I'm using Teslamate MQT for the Tesla custom integration. Everything works for a few minutes then the Teslamate ID reverts from 1 to unknown, and MQTT stops syncing.

image image

Expected Behavior

Teslamate ID to be persistent

Debug logs

Log when working:
2024-10-19 09:53:27.894 INFO (MainThread) [custom_components.tesla_custom.teslamate] Created mqtt Topic for: teslamate/cars/1/#
2024-10-19 09:53:27.894 DEBUG (MainThread) [custom_components.tesla_custom.teslamate] Subscribed to MQTT Topics
2024-10-19 09:53:27.894 DEBUG (MainThread) [custom_components.tesla_custom.teslamate] Completed watch_cars
2024-10-19 09:53:28.077 DEBUG (MainThread) [custom_components.tesla_custom.teslamate] MQTT Topic Recieved: teslamate/cars/1/latitude
2024-10-19 09:53:28.077 DEBUG (MainThread) [custom_components.tesla_custom.teslamate] Getting TeslaCar for teslaMateID:1
2024-10-19 09:53:28.077 DEBUG (MainThread) [custom_components.tesla_custom.teslamate] Got latitude from MQTT for VIN:5YJSB7E43GF158755 | TeslsMateID:1
2024-10-19 09:53:28.077 DEBUG (MainThread) [custom_components.tesla_custom.teslamate] Updating state 'latitude' to value '53.443722' in sub_path 'drive_state' for VIN:5YJSB7E43GF158755
etc..

There are no MQTT logs in the log after 'Teslamate ID' reverts to 'unknown'

Anything else?

Home Assistant can successfully subscribe to the teslamate/cars/1/# topics

Guida contributor