alandtse/tesla

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

Closed

#1,055 opened on Oct 19, 2024

 (5 comments) (1 reaction) (0 assignees)Python (127 forks)github user discovery
bugcargood first issuehelp wantedstaletriage

Repository metrics

Stars
 (777 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

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

Contributor guide