-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Battery Still Bogus #109826
Comments
Hey there @vincegio, @LaStrada, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) airthings_ble documentation |
Installed HA 2024.2.0 and the Battery level IS STILL BOGUS. Sigh ... |
Updated HA core to 2024.2.2 and battery percentage is STILL bogus. Will this ever be fixed? |
My Wave Plus is still running on its miracle battery with 0% life left |
I have also experienced difference in battery level reporting in HA (through the App is reporting |
It looks like the % available is running about 18-20% low. Be interesting if others are seeing the same offset. May need to create a template sensor to fix if the integration can't be fixed. If we had the raw voltage we could create our own voltage to % algorithm. It's not that complicated. We could also model the discharge curves for primary lithium cells, rechargeable lithium cells, and alkaline cells to be accurate assuming the voltage measurements are accurate. but that could be verified with raw voltage values. But the battery gauge doesn't need to be highly accurate, just better than being low 20% off to prevent replacing batteries that are fine |
I too have an AirThings+ using BLE integration into HomeAssistant and see incorrect battery information. I seem to have zero as the answer for the last 2 weeks of data.. The AirThings app tells me 72% |
Updated HA core to 2024.2.4 and battery percentage is STILL bogus. |
@def1149 any reason you expected it to be fixed in 2024.2.4? Release note did not mention any changes in the |
This battery issue, one of several defects that I have reported in this integration, has been ongoing since at least September 2023 when I reported it on #100521, That's 5 months to fix a simple calculation. Is there a scheduled date to release the fix which was referenced in #110866 as fixed "a while ago" |
Feel free to help out fixing this "simple calculation". If you can't, please have patience and help out where needed. |
I'm happy to be of assistance ' It's not known what Vmin and Vmax are for the Wave Plus but for Alkaline batteries the following simple formula won't be 20% off like the current "algorithm". Given that the batteries are supposed to last up to 18 months, the average discharge rate is very low. Also given these are indoor devices so batteries aren't typically exposed to low temperatures Battery percentage = ((Current voltage - Vmin)/(Vmax - Vmin)) x 100 This can be further refined and made a little more accurate by breaking the discharge curve into a series of 6 or 8 segments and applying the same formula for each segment. Ultimately the accuracy of this depends on the accuracy of the A/D converter being used and that is also unknown without a device teardown and examination. My guess is that the A/D converter is not off by 20% I could disassemble the device and measure the voltage and deduce Vmin and Vmax. But since the raw voltage isn't supplied by the integration I can't create my own template sensor to calculate the correct battery capacity remaining, or I would have already done that. |
As I’ve said many times now, this is fixed here: We haven’t made a release with this yet, but will very soon. We need to fix the light sensor (currently broken/missing) + test everything. I will make a PR to fix the light sensor before the weekend, and I’m hoping for a release very soon after that so we can bump the framework in Home Assistant. I can promise this will be done in March, but cannot promise it will be part of 2024.3.0. |
@LaStrada thanks for clarifying. Is the fix for battery state dependent on the light sensor? If not, would it be possible to fix these two in different releases? |
The problem
As of HA 2024.2.0b8 the battery % level reported by the integration for my Wave+ is still wrong. The Airthings App reports 22% and the intgegration reports 4%.
Is this transfer function so complicated that we're going to need to get rocket scientists involved?
What version of Home Assistant Core has the issue?
2024.2.0b8
What was the last working version of Home Assistant Core?
??
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Airthings BLE
Link to integration documentation on our website
No response
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
The text was updated successfully, but these errors were encountered: