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
70.47k stars 29.4k forks source link

Battery sensor always reads as 0. #103855

Closed galmok closed 5 months ago

galmok commented 9 months ago

The problem

Ever since I deleted all my airthings sensors (due to a recent HA creating doubles and generally a mess), I can't see the actual value of the battery sensor. It always reads as zero.

I don't know if this is correlated with all sensors often (half the time) shows as unavailable (and after logged as such; shouldn't really be logged then).

What version of Home Assistant Core has the issue?

core-2023.11.2

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

airthings_ble

Link to integration documentation on our website

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

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

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

Code owner commands Code owners of `airthings_ble` 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 airthings_ble` Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


airthings_ble documentation airthings_ble source (message by IssueLinks)

LaStrada commented 6 months ago

What device type(s) do you have? Is it still 0%?

Not all devices have battery % as we speak, but will be fixed here: https://github.com/Airthings/airthings-ble/pull/27 This also includes improved battery calculation so it can be aligned with the cloud integration. Will be pushed a new version of the framework later this week.

galmok commented 6 months ago

It isn't 0% anymore. Currently both say 80% but the AirThings app says 100% (which is closer to the truth as the batteries were replaced like 14 days ago).

The devices are Wave Plus (I have two).

def1149 commented 5 months ago

HA core 2024.2.3 today and Wave Plus battery level is still broken. I'm going on three weeks now running on batteries with 0% life. The Airthings app reports 18%. We're now at least three months with an "intractable" battery life calculation

andrewlow commented 5 months ago

This is clearly related to https://github.com/home-assistant/core/issues/109826 - we should close one and work the issue in the other.

LaStrada commented 5 months ago

The fix is merged and will be part of 2024.3.1

LaStrada commented 5 months ago

@home-assistant close