tesla icon indicating copy to clipboard operation
tesla copied to clipboard

update_available_sensor data doesnt match car or Tesla app

Open JerksonS opened this issue 2 years ago • 1 comments

The tesla app on my phone just told me there's an update available (2022.20.6) Went to the car and confirmed its on wifi and there's an update available on-screen.... but the sensor returns "off" as if there is no update available and shows the correct installed version 2022.16.3

image

After enabling debug log and restarting I found this in the log 2022-07-22 19:31:45 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=binary_sensor.tess_update_available_sensor, old_state=None, new_state=<state binary_sensor.tess_update_available_sensor=off; friendly_name=Tess update available sensor @ 2022-07-22T19:31:45.956240-04:00>>

JerksonS avatar Jul 22 '22 23:07 JerksonS

To avoid draining your battery, the component only updates after it detects a car has gone into a non-sleeping state. Give it some time to actually do an update.

You can also enable teslajsonpy debugging and look at the data we're getting. The relevant part of the json is here:

    "software_update": {
      "download_perc": 0,
      "expected_duration_sec": 2700,
      "install_perc": 1,
      "status": "",
      "version": ""
    },

status should say available if it's available. If it doesn't, then the api may have changed but we'll still need to know what it says to do anything.

alandtse avatar Jul 22 '22 23:07 alandtse