I just added an external Ugreen BT adapter to my (RPI 5 4GB, Hassio) HA and it fails to be configured. Would anyomee have an idea of what is wrong?
This sounds a bit like bluetooth integration constant state of initializing / retrying setup (bluetooth is broken with some adapters on newer linux kernels, kernel must be manually patched, workaround is to switch to ESPHome proxies instead) · Issue #92379 · home-assistant/core · GitHub, but I don’t see the ’ Out of Memory’. errors reported there
My versions:
* Core 2024.10.4
* Supervisor 2024.10.3
* Operating System 13.2
* Frontend 20241002.4
Here is a debug log from the BT integration
2024-11-05 12:23:10.962 WARNING (Recorder) [homeassistant.components.recorder.util] The system could not validate that the sqlite3 database at //config/home-assistant_v2.db was shutdown cleanly
2024-11-05 12:23:19.664 WARNING (MainThread) [bluetooth_auto_recovery.recover] Could not determine the power state of the Bluetooth adapter hci0 [00:A7:48:15:01:73] due to timeout after 5 seconds
2024-11-05 12:23:22.245 WARNING (MainThread) [bluetooth_auto_recovery.recover] Bluetooth management socket connection lost: [Errno 12] Out of memory
2024-11-05 12:23:22.299 WARNING (MainThread) [bluetooth_auto_recovery.recover] Could not cycle the Bluetooth adapter hci0 [00:A7:48:15:01:73]: [Errno 110] Operation timed out
2024-11-05 12:23:22.299 ERROR (MainThread) [bluetooth_auto_recovery.recover] Could not reset the power state of the Bluetooth adapter hci0 [00:A7:48:15:01:73]
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/bluetooth_auto_recovery/recover.py", line 618, in _execute_reset
return await _execute_power_on(adapter, name, power_state_before_reset)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/bluetooth_auto_recovery/recover.py", line 638, in _execute_power_on
await adapter.set_powered(True)
File "/usr/local/lib/python3.12/site-packages/bluetooth_auto_recovery/recover.py", line 295, in set_powered
response = await self.protocol.send(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/bluetooth_auto_recovery/recover.py", line 160, in send
assert self.transport is not None # nosec
^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError
2024-11-05 12:23:25.210 WARNING (MainThread) [bluetooth_auto_recovery.recover] Closing Bluetooth adapter hci0 [00:A7:48:15:01:73] failed: [Errno 9] Bad file descriptor
2024-11-05 12:23:33.827 WARNING (SyncWorker_5) [zhaquirks] Loaded custom quirks. Please contribute them to https://github.com/zigpy/zha-device-handlers
2024-11-05 12:23:58.737 WARNING (MainThread) [bluetooth_auto_recovery.recover] Could not determine the power state of the Bluetooth adapter hci0 [00:A7:48:15:01:73] due to timeout after 5 seconds
2024-11-05 12:24:01.374 WARNING (MainThread) [bluetooth_auto_recovery.recover] Could not cycle the Bluetooth adapter hci0 [00:A7:48:15:01:73]: [Errno 110] Operation timed out
2024-11-05 12:24:01.375 WARNING (MainThread) [bluetooth_auto_recovery.recover] Bluetooth management socket connection lost: [Errno 22] Invalid argument
2024-11-05 12:24:06.376 WARNING (MainThread) [bluetooth_auto_recovery.recover] Could not reset the power state of the Bluetooth adapter hci0 [00:A7:48:15:01:73] due to timeout after 5 seconds
2024-11-05 12:24:09.187 WARNING (MainThread) [bluetooth_auto_recovery.recover] Closing Bluetooth adapter hci0 [00:A7:48:15:01:73] failed: [Errno 9] Bad file descriptor
2024-11-05 12:24:15.695 WARNING (MainThread) [bluetooth_auto_recovery.recover] Could not determine the power state of the Bluetooth adapter hci0 [00:A7:48:15:01:73] due to timeout after 5 seconds
2024-11-05 12:24:18.194 WARNING (MainThread) [bluetooth_auto_recovery.recover] Bluetooth management socket connection lost: [Errno 12] Out of memory
2024-11-05 12:24:18.332 WARNING (MainThread) [bluetooth_auto_recovery.recover] Could not cycle the Bluetooth adapter hci0 [00:A7:48:15:01:73]: [Errno 110] Operation timed out
2024-11-05 12:24:18.332 ERROR (MainThread) [bluetooth_auto_recovery.recover] Could not reset the power state of the Bluetooth adapter hci0 [00:A7:48:15:01:73]
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/bluetooth_auto_recovery/recover.py", line 618, in _execute_reset
return await _execute_power_on(adapter, name, power_state_before_reset)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/bluetooth_auto_recovery/recover.py", line 638, in _execute_power_on
await adapter.set_powered(True)
File "/usr/local/lib/python3.12/site-packages/bluetooth_auto_recovery/recover.py", line 295, in set_powered
response = await self.protocol.send(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/bluetooth_auto_recovery/recover.py", line 160, in send
assert self.transport is not None # nosec
^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError
2024-11-05 12:24:21.146 WARNING (MainThread) [bluetooth_auto_recovery.recover] Closing Bluetooth adapter hci0 [00:A7:48:15:01:73] failed: [Errno 9] Bad file descriptor
2024-11-05 12:24:27.652 WARNING (MainThread) [bluetooth_auto_recovery.recover] Could not determine the power state of the Bluetooth adapter hci0 [00:A7:48:15:01:73] due to timeout after 5 seconds