-
-
Notifications
You must be signed in to change notification settings - Fork 28.6k
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
Bluetooth receiver connection drops at startup and after some hours #107554
Comments
Hey there @bdraco, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) bluetooth documentation |
Having this happen quite often on RPI4, with both the internal BT and a BCOM dongle. |
Hello, I am experiencing the exact same issue. I have a switchbot integration and it keeps losing connectivity with the bluetooth adapter. I have tried using the Raspberry PI 4 internal and a usb dongle. I am running core-2024-1.2. |
Reporting the same issue with a Dell/Wyse 3040 Thin Client and internal BT.
|
This happens to me when I start the computer. |
I did two actions which make it confusing to determine which of the two helped.
I won't close this issue as I think my solution may not be suitable for all, and the root cause is still unknown. |
Also having this issue with RPI4 internal adaptor. @bsjouke can you explain how you change the order? |
FYI, this is what keeps cycling in the logs: 2024-01-13 22:21:29.198 DEBUG (MainThread) [homeassistant.components.bluetooth] Rediscovered adapters: {'hci0': {'address': 'D8:3A:DD:10:0E:72', 'sw_version': 'homeassistant', 'hw_version': 'usb:v1D6Bp0246d0546', 'passive_scan': True, 'manufacturer': None, 'product': None, 'vendor_id': None, 'product_id': None}} |
I'm running HA in OVA mode as VM on a Synology box. In the settings I can add attached devces like this: Months ago I also experienced problems, and at that moment this setting helped:
Recently it did not work anymore, @andrezstar2's remark about the adapters affecting each other gave me the idea to switch the two as in the screenprint. All in all this doesn't seem a stable situation as to my best knowledge the order of USB devices should have no impact. |
I can fix it by disabling the bluetoith, rebooting the device then once
it's started, enabling the device
…On Sun, 14 Jan 2024, 08:02 bsjouke, ***@***.***> wrote:
Also having this issue with RPI4 internal adaptor. @bsjouke
<https://github.com/bsjouke> can you explain how you change the order?
I'm running HA in OVA mode as VM on a Synology box. In the settings I can
add attached devces like this:
image.png (view on web)
<https://github.com/home-assistant/core/assets/11473110/1b130cde-edad-43eb-9686-088a93a09756>
Months ago I also experienced problems, and at that moment this setting
helped:
- ZB adapter
- blank
- BT adapter
Recently it did not work anymore, @andrezstar2
<https://github.com/andrezstar2>'s remark about the adapters affecting
each other gave me the idea to switch the two as in the screenprint.
All in all this doesn't seem a stable situation as to my best knowledge
the order of USB devices should have no impact.
—
Reply to this email directly, view it on GitHub
<#107554 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANS4VDQ3KAZY5QIDQA4GBVLYOOGIJAVCNFSM6AAAAABBRVM6I2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJQHA3TOMZVGQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I tried that but it didn't work for me. Both built-in and dongle Bluetooth adapters are still failing. |
Yeah, still seeing this issue here. No combination of reboots seems to fix it. |
I added an Asus BT400 to my setup and now have 2 adapters (internal/external) which ran for 36 hours with out any issues. I am monitoring 2 InkBird sensors and for some reason the IBS-TH2 will only pair with the internal but the IBS-TH2 will pair with either. I have created a time based automation to reboot the host every 8 hours but have it disabled since mine appears to be less of an issue for now |
Any more ideas? This is becoming too frequent |
Same issue here with generic x86 and built-in BT. (Edit: ZHA went down at the same time but got back after the warm restart of the host.) |
An issue for me also, I have worked around it with an automation that reboots home assistant if a bluetooth sensor goes unavailable which is a band-aid at best. |
I have an issue where my Bluetooth sensor becomes unavailable. I thought it was a proxy issue or the inkbird integration. A reboot of HA always fixes the issue. How do you tell if it is the Bluetooth itself causing the issue versus the other variant? First started seeing this several months ago. |
I would say, does it resolve after a warm restart or do you need to do a hardware reboot? If it works with a restart then it might be the inkbird sensor connectivity, etc, but if if requires a reboot then it is the Bluetooth adapter. Mine would only resolve with a reboot. I also can connect to my Inkbird sensors with the Engbird mobile app when HA shows it unavailable. |
My new BLE adapter has been running fine for maybe eight hours now. |
I was told in a different issue to disable the adapter 's Bluetooth as I use the Bluetooth proxy. So far this has worked successfully for me. |
I got same problem: after x hours..I can not control Switchbot (Passive scanning ON/OFF does not make difference, problems comes back after x hours) Core 2024.2.2 Bluetooth info (hci0 (MAC-address)) I checked the LOG VIEWER and I see a lot of times: after this, it's working again...a couple of minutes |
How do you use this? on a raspberry pi 3? |
I have Raspberry Pi 4 (rpi4-64) (going to disable passive scan option again, just to see if there is any difference) |
It looks like you are using a Realtek adapter
Sadly these adapters are known to lock up and require a physical unplug and replug to restore their functionality. https://www.home-assistant.io/integrations/bluetooth/#realtek-rtl8761bu-adapters
The only solution other than to unplug and replug is to replace it with an adapter that does have a reset pin https://www.home-assistant.io/integrations/bluetooth/#cambridge-silicon-radio-csr--based-adapters or use an ESPHome Bluetooth proxy https://esphome.io/components/bluetooth_proxy.html https://esphome.io/projects/?type=bluetooth |
I switched a couple of months ago to ESPHome Bluetooth proxy (and disabled local bluetooth) and so far no problem anymore! Cheap sollution and even better because it's now located in center of building. |
The problem
The issue
is that the Bluetooth adapter seems to become unreachable thus the connection with the BLE devices is lost.
The issue occurs:
Logging:
See below in the details
Workaround:
What version of Home Assistant Core has the issue?
core-2023.12.4
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
Bluetooth
Link to integration documentation on our website
https://www.home-assistant.io/integrations/bluetooth
Diagnostics information
config_entry-bluetooth-80939c045beed540f2ed6f89b57a0e32.json.txt
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
No response
The text was updated successfully, but these errors were encountered: