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.04k stars 31.07k forks source link

Xiaomi BLE integration reports inaccurate battery level #127562

Open BorgTen opened 1 month ago

BorgTen commented 1 month ago

The problem

I am using several plant sensors of type HHCCJCY01. When the battery level is reported as 0 %, the plant sensors nevertheless continue to work for several months.

This leads to users swapping the batteries far to early, causing unnecessary environmental pollution and costs.

What version of Home Assistant Core has the issue?

core-2024.10.0

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

Xiaomi BLE

Link to integration documentation on our website

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

Diagnostics information

config_entry-battery_notes-01J9AN3PBEPNANYEER5DK2CPT4.json

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 1 month ago

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

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


xiaomi_ble documentation xiaomi_ble source (message by IssueLinks)

Jc2k commented 1 month ago

My understanding of this is that it is a known issue with that device, the sensor on that device is rubbish.

We initially didn't even bother to show the sensor, but some people want it even though it's wrong and don't believe me that it's wrong.

Unless you know of another app that shows a "real" battery %, there is nothing we can do.

BorgTen commented 1 month ago

How about showing a low battery value like 25 % as long as there is still other sensor data received and only show 0 % when the device does not send any more other sensor data? Or another algorithm to balance out the bad battery sensor with software?

When nothing can be done about this issue, you could add a note about it in the documentation.

Da-Jue-Sch commented 3 weeks ago

Unless you know of another app that shows a "real" battery %, there is nothing we can do.

If you use FlowerCare App from Xiaomi it works Same issues here at my side it shows 100% Xiaomi and in HomeAssistant 31%