home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
74.14k stars 31.12k forks source link

Sensors does not restore state when HA restarts #132044

Open EagleStClair opened 10 hours ago

EagleStClair commented 10 hours ago

The problem

My sensors from Tesla Fleet integration all goes to unavailable/unknown when HA is restarted. Had the same ever since the integration was introduced (2024.9 ?) Waking the vehicle manually or with the wake button from the integration gets the values within a couple of minutes.

Should the integration not restore the last known state when HA is restarted as other integrations do?

What version of Home Assistant Core has the issue?

2024.11.3

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Tesla Fleet

Link to integration documentation on our website

https://www.home-assistant.io/integrations/tesla_fleet

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 10 hours ago

Hey there @bre77, mind taking a look at this issue as it has been labeled with an integration (tesla_fleet) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `tesla_fleet` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign tesla_fleet` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


tesla_fleet documentation tesla_fleet source (message by IssueLinks)

Bre77 commented 8 hours ago

Restore is implemented so this is meant to work, but probably isn't due to a logic bug.

Note to myself for later: use state rather than refreshed to make restore condition on.