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
73.06k stars 30.56k forks source link

Tesla Powerwall integration shows battery level as "reserve" instead of charge #115103

Open robertalexa opened 6 months ago

robertalexa commented 6 months ago

The problem

On the frontend, while looking at the Device coming from the Tesla Powerwall integration, next to the logo, the battery level reported is the one of the Backup Reserve, instead of the Charge.

As the Backup Reserve is a fixed "threshold" of how much charge to keep in case of emergency, and not the current battery level, it makes more sense to display the "Charge" level instead.

I am not sure if the current behaviour is by-design or just an oversight, so forgive me if i am raised something that has been discussed before (wasn't able to find a reference to this).

Here is a screenshot showing device battery level 24% matching the Reserve, while the battery level is currently 100% image

Thanks in advance

What version of Home Assistant Core has the issue?

core-2024.4.1

What was the last working version of Home Assistant Core?

N/A

What type of installation are you running?

Home Assistant OS

Integration causing the issue

powerwall

Link to integration documentation on our website

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

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 6 months ago

Hey there @bdraco, @jrester, @daniel-simpson, mind taking a look at this issue as it has been labeled with an integration (powerwall) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `powerwall` 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 powerwall` 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)


powerwall documentation powerwall source (message by IssueLinks)

issue-triage-workflows[bot] commented 3 months ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

robertalexa commented 3 months ago

Issue is still ongoing on 2024.7.0.

image

However when you search for the device, the battery is reported correctly in the table? image

Thanks in advance

x-cubed commented 2 months ago

WORKAROUND It looks like Home Assistant picks the first battery value as the device battery value, and Battery Reserve comes before Charge when sorted alphabetically, so the Battery Reserve gets picked up by default. I renamed my Battery Reserve to Reserved Battery and now Charge is being picked as the device battery value instead: image

It would be nice to see a proper fix though.