-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
Describe the bug
Bluetooth dongle fails after a few minutes after boot.
When I boot the VM and HA starts bluetooth communication works for a few minutes
Then every bluetooth device is out of order
I have logs in the console that a file in /sys/kernel/debug/bluetooth/hci0 already exists
Only solution to fix the issue is:
- either to reboot the whole VM
- unplug the USB Bluetooth dongle for a few seconds (it clears the files under /sys/kernel/debug/bluetooth/hci0 ) then replug it and go to the HA integrations and reload the bluetooth integration
It will then work for a few minutes and fail again...
To Reproduce
Steps to reproduce the behavior:
- Boot the HAFBX VM with A Bluetooth USB dongle plugged in and trasnfered to the VM
- Wait a few minutes
- all bluetooth devices appear offline

Expected behavior
Bluetooth USB dongle should be stable
Screenshots
Here is the error under HA when it happens:

Logger: homeassistant.components.bluetooth.scanner
Source: components/bluetooth/scanner.py:286
Integration: Bluetooth ([documentation](https://www.home-assistant.io/integrations/bluetooth), [issues](https://github.com/home-assistant/home-assistant/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+bluetooth%22))
First occurred: 13:20:21 (14 occurrences)
Last logged: 13:33:21
hci0 (00:01:95:6D:90:46): Failed to restart Bluetooth scanner: hci0 (00:01:95:6D:90:46): Timed out starting Bluetooth after 15 seconds
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/bluetooth/scanner.py", line 241, in _async_start
await self.scanner.start() # type: ignore[no-untyped-call]
File "/usr/local/lib/python3.10/site-packages/bleak/__init__.py", line 156, in start
await self._backend.start()
File "/usr/local/lib/python3.10/site-packages/bleak/backends/bluezdbus/scanner.py", line 191, in start
self._stop = await manager.active_scan(
File "/usr/local/lib/python3.10/site-packages/bleak/backends/bluezdbus/manager.py", line 360, in active_scan
reply = await self._bus.call(
File "/usr/local/lib/python3.10/site-packages/dbus_fast/aio/message_bus.py", line 370, in call
await future
asyncio.exceptions.CancelledError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/bluetooth/scanner.py", line 240, in _async_start
async with async_timeout.timeout(START_TIMEOUT):
File "/usr/local/lib/python3.10/site-packages/async_timeout/__init__.py", line 129, in __aexit__
self._do_exit(exc_type)
File "/usr/local/lib/python3.10/site-packages/async_timeout/__init__.py", line 212, in _do_exit
raise asyncio.TimeoutError
asyncio.exceptions.TimeoutError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/bluetooth/scanner.py", line 374, in _async_scanner_watchdog
await self._async_start()
File "/usr/src/homeassistant/homeassistant/components/bluetooth/scanner.py", line 286, in _async_start
raise ScannerStartError(
homeassistant.components.bluetooth.scanner.ScannerStartError: hci0 (00:01:95:6D:90:46): Timed out starting Bluetooth after 15 seconds
Here is the error under the console of the VM when this happens

Additional context
Bluetooth USB dongle model: UD100-G03
Metadata
Metadata
Assignees
Labels
No labels