Skip to content

Missing datapoints and "ValueError: invalid literal for int() with base 10" #1165

@TomParis01

Description

@TomParis01

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.25.4

Version of the Tesla car software

2025.44.25.4

Model

Model S (2017)

Current Behavior

  • Missing data points (for example for charger_voltage, even when not charging)
  • Error message in logs: "ValueError: invalid literal for int() with base 10" (when not charging!), for
    • charger_voltage
    • charger_actual_current
    • charger_power
Image

Expected Behavior

  • No errors
  • No missing data points

Debug logs

Logger: homeassistant.util.logging
Quelle: util/logging.py:167
Erstmals aufgetreten: 05:59:03 (15 Vorkommnisse)
Zuletzt protokolliert: 14:43:09

    Exception in msg_recieved when handling msg on 'teslamate/cars/1/charger_voltage': '' Traceback (most recent call last): File "/config/custom_components/tesla_custom/teslamate.py", line 285, in msg_recieved ).result() ~~~~~~^^ File "/usr/local/lib/python3.13/concurrent/futures/_base.py", line 456, in result return self.__get_result() ~~~~~~~~~~~~~~~~~^^ File "/usr/local/lib/python3.13/concurrent/futures/_base.py", line 401, in __get_result raise self._exception File "/config/custom_components/tesla_custom/teslamate.py", line 334, in async_handle_new_data self.update_car_state(car, "charge_state", attr, cast(msg.payload)) ~~~~^^^^^^^^^^^^^ ValueError: invalid literal for int() with base 10: ''
    Exception in msg_recieved when handling msg on 'teslamate/cars/1/charger_actual_current': '' Traceback (most recent call last): File "/config/custom_components/tesla_custom/teslamate.py", line 285, in msg_recieved ).result() ~~~~~~^^ File "/usr/local/lib/python3.13/concurrent/futures/_base.py", line 456, in result return self.__get_result() ~~~~~~~~~~~~~~~~~^^ File "/usr/local/lib/python3.13/concurrent/futures/_base.py", line 401, in __get_result raise self._exception File "/config/custom_components/tesla_custom/teslamate.py", line 334, in async_handle_new_data self.update_car_state(car, "charge_state", attr, cast(msg.payload)) ~~~~^^^^^^^^^^^^^ ValueError: invalid literal for int() with base 10: ''
    Exception in msg_recieved when handling msg on 'teslamate/cars/1/charger_power': '' Traceback (most recent call last): File "/config/custom_components/tesla_custom/teslamate.py", line 285, in msg_recieved ).result() ~~~~~~^^ File "/usr/local/lib/python3.13/concurrent/futures/_base.py", line 456, in result return self.__get_result() ~~~~~~~~~~~~~~~~~^^ File "/usr/local/lib/python3.13/concurrent/futures/_base.py", line 401, in __get_result raise self._exception File "/config/custom_components/tesla_custom/teslamate.py", line 334, in async_handle_new_data self.update_car_state(car, "charge_state", attr, cast(msg.payload)) ~~~~^^^^^^^^^^^^^ ValueError: invalid literal for int() with base 10: ''
    Exception in msg_recieved when handling msg on 'teslamate/cars/1/charger_power': '' Traceback (most recent call last): File "/config/custom_components/tesla_custom/teslamate.py", line 285, in msg_recieved ).result() ~~~~~~^^ File "/usr/local/lib/python3.13/concurrent/futures/_base.py", line 449, in result return self.__get_result() ~~~~~~~~~~~~~~~~~^^ File "/usr/local/lib/python3.13/concurrent/futures/_base.py", line 401, in __get_result raise self._exception File "/config/custom_components/tesla_custom/teslamate.py", line 334, in async_handle_new_data self.update_car_state(car, "charge_state", attr, cast(msg.payload)) ~~~~^^^^^^^^^^^^^ ValueError: invalid literal for int() with base 10: ''

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    carFor items that relate to Tesla vehiclestriageNew issues raised that need initial attention

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions