-
-
Notifications
You must be signed in to change notification settings - Fork 30.4k
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
Readings become unavailable all the time (and then come back). #109499
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 |
I have this same issue. From beginning of February or so the integration started to be very unreliable and the sensor values update only by soft booting or sometimes not even then, and sometimes recovering randomly for a moment. Core |
After updating to 2024.1.6 i'v got the same behaviour. |
same for me as well. keep going unavailable way too many times.. I have three airthings wave plus.. and each of them goes of randomly unavailable... |
Same issue here. I was really starting to worry about my setup haha. |
Same for me here, keep dropping and sometime it come back for 30min or so then drop again, reboot will bring it back for a short time. |
The same issue here. But noticed it some time ago already. Now running latest versions. |
Everything is possible, but probably all of us started to have these problems after installing 2024.1.6, which had and airthing-ble update in it... |
I ended up creating an automation that reloads the integration every 5 minutes..!! ( with condition if reading is unavailable)I would definitely like to avoid this unnecessary burden on my HA and Air things WaveBut so far it is good.. pretty much no missed valuesOn Feb 8, 2024, at 8:07 AM, Erik Stofira ***@***.***> wrote:
Everything is possible, but probably all of us started to have these problems after installing 2024.1.6, which had and airthing-ble update in it...
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***>
|
Have been having same issue for couple of weeks now as well. Entities go unavailable and back multiple times a day. |
Now all my Wave+ data entries have gone unavailable. I hadn't done anything. |
This has been getting worse. After the first issue in 2024.1.6 I downgraded back to 2024.1.4 and it was all good. When a new core update shows up I give it a try and if it still doesn't work I go back to 2024.1.4. However, now 2024.1.4 no longer works. The device goes to unavailable and occasionally the integration has issues initializing and will fail. Core - 2024.1.4 |
About every 15 minutes, my Wave+ disconnects for ~5 minutes. This is highly annoying, and breaks some automations that use the unavailable state (ex. to detect a dead battery). |
It seems to me that the Airthings device updates less frequently than the timeout that makes the entity be marked as unknown. It would be nice if this timeout could be set longer for the Airthings Integration. |
following up that i am seeing the same unavailable behaviour described in my last comment after upgrading core to |
Have this exact issue as well. |
I updated everything I could. Not only restarted HA, but power cycled my HA device. Took fresh batteries for the Airthings Wave+, placed it just next to each other. And it works just fine now! |
I tried the same. Brand new batteries & power cycling ... problem still persists with dropouts multiple times per hour :( |
I did the same but still have issues. The frequency of the drops seem to have reduced a bit with recent home assistant release but still happens. |
Update on SW on the AirThings Wave side? Distance reduction? Just thinking out loud.... |
No changes other than newer version of home assistant, not sure if any auto firmware updates happened in the background on the Airthings. |
For BLE connected devices you will see a message in the Airthings app you need to click on. No messages in the app = newest version. |
What? New version of what? |
https://www.home-assistant.io/blog/2024/02/07/release-20242/ |
Received an Home Assistant OS and Core update yesterday and the issue seems to have gotten slightly worse again (similar to frequency of drops from few weeks ago where integration showed in unavailable hourly). Up till yesterday’s update, the frequency of unavailability had dropped off to only few times a day. |
For now it is cca permanently unavailable, and only after reboot working for a few minutes |
@rsiv, mind walking through what you did for this exactly? I'm using Bluetooth Proxy, but my connectivity is still horrid (9/13 of my devices are randomly unavailable). I haven't done anything to disable my Bluetooth interface and I'm starting question whether my Bluetooth Proxy is actually doing anything. Would be great to hear exactly what you did 🙂 |
I also now use esp32 proxy and the connection stay connect much longer but still disconnect and reconnect every 1-2 hours. |
@AllenBurgett I configured an esp32 with:
Then I disabled the bluetooth adapter in Settings > Integrations > Bluetooth > Integration Entries > Disable. Depending on your house size and layout, you might need more than one proxy to cover all the devices. |
Seems like my Bluetooth integration was the only thing actually reading any of my devices. When I disabled it, I lost all updates from my Airthings. I've started going around the house and power cycling all of my bluetooth proxies. I'm now getting readings across the board! So, apparently my proxies were just borked. Thanks for giving me a troubleshooting path! |
A bit off topic, but you can add a restart button to your ESPHome nodes: |
I noticed the other day that there are a lot of USB Bluetooth adapters that are marked as frequently dropping connection in the Home Assistant integration documentation(https://www.home-assistant.io/integrations/bluetooth/). None of mine were on the list of fast connecting ones so I ordered a $7 one to see if that helps. In the mean time I replaced that location with an esp32 bluetooth proxy which so far is much better. |
I have couple of other Bluetooth sensors being monitored by home assistant including one outside passed a brick wall and one floor down which have no connectivity issues which leads me to believe it’s a Airthings integration issue rather than Bluetooth stack or hardware issue. |
Mine was definitely mostly an issue with my proxies. However, I'm still seeing some go unavailable, but they're mostly being cleaned up by my reloader automation. So, I would agree that there still seems to be something wrong with the Airthings integration. The first part of the graph is before restarting my proxies, the 100% is when I shut down the Bluetooth integration. It's been mostly zero since I restarted the proxies. |
Any estimate on when a new integration will drop? |
Thanks for this. I've had GL-S10 bluetooth proxies for a while now, and for some reason I thought the Bluetooth integration itself needed to also be enabled. All my Airthings have been a disaster since 2024.2. But just disabling the Bluetooth integration (using an internal radio on a micro PC that sits in a metal rack....) got them all back on immediately. Thank you! |
Issue still happening with latest Home assistant 2024.3 release that contained update for Airthings integration. |
I have same issue. The issue starts appearing with upgrade to Home Assistant Core 2024.1.6 or newer and issue still exists with HA Core 2024.3.1. Last working version is HA Core 2024.1.5. Issue can be reliably recreated by upgrading to anything newer than 2024.1.5 and issue is resolved when downgrading to 2024.1.5 or older. This is not an Airthings firmware, distance or battery issue. Only solution is to stay on HA Core 2024.1.5 for now @LaStrada: looks like #108612 broke Airthings-ble integration for a bunch of us. |
I just upgraded from 2024.1.5 to: Didn't read any release notes (#QA #clean-code #test-driven #living-on-the-edge #life-is-to-short)
I also have Xiaomi integration active for my bluetooth plant sensors, they did not suffer from these updates. Many thnx on the tip to reload the integration when the device is dropped, that at least helps a bit. The workaround:
|
Could someone who is connecting this with an ESPHome Bluetooth proxy share their ESPHome config? I disabled my HA Bluetooth integration and have one of these running and it isn't picking up my AirThings at all. I assume I have something configured incorrectly. |
I just tried this myself and didn't really do anything special, I flashed the ESP32 device using Bluetooth Proxy option from below site. Once flashing was complete and device was added to home assistant I just placed it close to middle of all my devices and then disabled the Bluetooth dongle in my home assistant. No other config changes were done and my Bluetooth sensors and Airthings Wave+ are all showing up fine. So far with the proxy AirThings is lot more stable and haven't seen any unavailable messages yet but its only been a couple of days. I still think issue is with AirThings integration perhaps not gracefully handling connection issues or weak signals at its set pooling intervals and resulting in unavailable message rather then just retrying it or waiting for several failed tries before marking entities as unavailable. |
Thanks for this. Helped me to understand I wasn't doing anything wrong and had followed the right steps. Turned out I needed to clean build files and reinstall. Past 24 hours of near perfect connection now. |
Improved version as reloading the config apparently may not always result in the device becoming available...
|
I have a similar concept, but I try to lower the amount of reload requests sent over a short period of time:
I've been kicking around setting a limit on how many times it tries to reload, before it just notifies me that something's wrong (ex. Like the battery is dead and it's never going to reload). |
Copy/pasting my comment from #113610 since there are more people following this issue: I've done some testing and I believe the problems were caused by this PR (which unfortunately contains a ton of changes, so it's hard to say which specific change is the bad one). For now I've worked around this by rolling back to the version of the airthings_ble integration that was in use prior to that PR. There's a little bit of info about how to do this in the Home Assistant docs, but here's a slightly more detailed version of the process:
This seems to have fixed the instability problems that I've been having. |
This has been ongoing for months, is there anything us regular people can do to help development for a fix? |
@LaStrada , any idea when this would be fixed ? |
Thanks for this work around, it's working great now |
b244fa0 seems potentially related. |
Thank you for this. My integration has been running solid for the past few hours now. Haven't seen that since January. |
duplicate of #113610 That one has more information, so please continue there instead. |
The problem
The logged readings are not continuous. This means the devices keep becoming unavailable and then come back.
Can we please have an option that prevents logging when the device is unavailable? That would save spare and be more useful.
What version of Home Assistant Core has the issue?
core-2024.1.6
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Container
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
The text was updated successfully, but these errors were encountered: