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
71.88k stars 30.11k forks source link

airthings_ble: spurious air pressure after changing batteries #126976

Open agoode opened 3 days ago

agoode commented 3 days ago

The problem

After I change the batteries in an Airthings Wave Plus, the first few readings have a very incorrect value for air pressure (1310.70 hPa in one case). This causes a large anomaly when viewing timeseries later.

Screenshot 2024-09-27 at 23 42 07

What version of Home Assistant Core has the issue?

core-2024.9.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

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

Wave Plus by Airthings AS Firmware: G-BLE-2.2.0-master+0 Hardware: REV A

home-assistant[bot] commented 3 days 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. - `@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)


airthings_ble documentation airthings_ble source (message by IssueLinks)

agoode commented 3 days ago

The bad value is 1310.7. 1310.7 * 50 = 65535.

Looks like a similar approach to https://github.com/Airthings/airthings-ble/pull/11 would work.

LaStrada commented 3 days ago

Seems like it, yes. Will make a fix for it! Thanks for reporting 👍

agoode commented 3 days ago

Thank you!