Home Assistant Bluetooth issue

Getting error on starting Home Assistant docker

Device Details

OS: postmarketOS edge aarch64 
Host: Xiaomi Redmi Note 4X 
Kernel: 6.12.0-postmarketos-qcom-msm8953 
homeassistant  | Linuxserver.io version: 2024.11.3-ls49
homeassistant  | Build-date: 2024-11-27T02:08:27+00:00
homeassistant  | ───────────────────────────────────────
homeassistant  |     
homeassistant  | **** New container detected, fixing python package permissions. This may take a while. ****
homeassistant  | Setting permissions
homeassistant  | [custom-init] No custom files found, skipping...
homeassistant  | 2024-11-30 10:15:07.853 WARNING (Recorder) [homeassistant.components.recorder.util] The system could not validate that the sqlite3 database at //config/home-assistant_v2.db was shutdown cleanly
homeassistant  | Connection to localhost (::1) 8123 port [tcp/*] succeeded!
homeassistant  | [ls.io-init] done.
homeassistant  | 2024-11-30 10:15:15.426 ERROR (SyncWorker_6) [bluetooth_adapters.systems.linux] Unexpected error setting up device hci<usb_devices.BluetoothDevice object at 0xffff774a40c0>
homeassistant  | Traceback (most recent call last):
homeassistant  |   File "/usr/local/lib/python3.12/site-packages/bluetooth_adapters/systems/linux.py", line 55, in _refresh_devices
homeassistant  |     dev.setup()
homeassistant  |   File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 61, in setup
homeassistant  |     self.usb_device = USBDevice(path.parts[-1])
homeassistant  |                       ^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 94, in __init__
homeassistant  |     bus_port_id, interface_id = id_str.split(":")
homeassistant  |     ^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  | ValueError: too many values to unpack (expected 2)
homeassistant  | 2024-11-30 10:15:15.608 WARNING (MainThread) [bluetooth_auto_recovery.recover] Could not cycle the Bluetooth adapter hci0 [02:00:67:7A:D4:F1]: [Errno 1] Operation not permitted
homeassistant  | 2024-11-30 10:15:20.610 WARNING (MainThread) [bluetooth_auto_recovery.recover] Could not reset the power state of the Bluetooth adapter hci0 [02:00:67:7A:D4:F1] due to timeout after 5 seconds
homeassistant  | 2024-11-30 10:15:20.613 ERROR (MainThread) [bluetooth_auto_recovery.recover] Unexpected error while attempting USB reset of hci0: too many values to unpack (expected 2)
homeassistant  | Traceback (most recent call last):
homeassistant  |   File "/usr/local/lib/python3.12/site-packages/bluetooth_auto_recovery/recover.py", line 515, in _usb_reset_adapter
homeassistant  |     return await dev.async_reset()
homeassistant  |            ^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 49, in async_reset
homeassistant  |     return await asyncio.get_running_loop().run_in_executor(None, self.reset)
homeassistant  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
homeassistant  |     result = self.fn(*self.args, **self.kwargs)
homeassistant  |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 54, in reset
homeassistant  |     self.setup()
homeassistant  |   File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 61, in setup
homeassistant  |     self.usb_device = USBDevice(path.parts[-1])
homeassistant  |                       ^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 94, in __init__
homeassistant  |     bus_port_id, interface_id = id_str.split(":")
homeassistant  |     ^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  | ValueError: too many values to unpack (expected 2)
homeassistant  | 2024-11-30 10:15:20.618 WARNING (MainThread) [bluetooth_auto_recovery.recover] Bluetooth management socket connection lost: [Errno 9] Bad file descriptor
homeassistant  | 2024-11-30 10:15:23.463 WARNING (MainThread) [bluetooth_auto_recovery.recover] Could not cycle the Bluetooth adapter hci0 [02:00:67:7A:D4:F1]: [Errno 1] Operation not permitted
homeassistant  | 2024-11-30 10:15:28.476 WARNING (MainThread) [bluetooth_auto_recovery.recover] Could not reset the power state of the Bluetooth adapter hci0 [02:00:67:7A:D4:F1] due to timeout after 5 seconds
homeassistant  | 2024-11-30 10:15:28.497 ERROR (MainThread) [bluetooth_auto_recovery.recover] Unexpected error while attempting USB reset of hci0: too many values to unpack (expected 2)
homeassistant  | Traceback (most recent call last):
homeassistant  |   File "/usr/local/lib/python3.12/site-packages/bluetooth_auto_recovery/recover.py", line 515, in _usb_reset_adapter
homeassistant  |     return await dev.async_reset()
homeassistant  |            ^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 49, in async_reset
homeassistant  |     return await asyncio.get_running_loop().run_in_executor(None, self.reset)
homeassistant  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
homeassistant  |     result = self.fn(*self.args, **self.kwargs)
homeassistant  |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 54, in reset
homeassistant  |     self.setup()
homeassistant  |   File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 61, in setup
homeassistant  |     self.usb_device = USBDevice(path.parts[-1])
homeassistant  |                       ^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 94, in __init__
homeassistant  |     bus_port_id, interface_id = id_str.split(":")
homeassistant  |     ^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  | ValueError: too many values to unpack (expected 2)
homeassistant  | 2024-11-30 10:15:28.508 WARNING (MainThread) [bluetooth_auto_recovery.recover] Bluetooth management socket connection lost: [Errno 9] Bad file descriptor
homeassistant  | 2024-11-30 10:15:28.661 WARNING (MainThread) [bluetooth_auto_recovery.recover] Could not cycle the Bluetooth adapter hci0 [02:00:67:7A:D4:F1]: [Errno 1] Operation not permitted
homeassistant  | 2024-11-30 10:15:33.679 WARNING (MainThread) [bluetooth_auto_recovery.recover] Could not reset the power state of the Bluetooth adapter hci0 [02:00:67:7A:D4:F1] due to timeout after 5 seconds
homeassistant  | 2024-11-30 10:15:33.682 ERROR (MainThread) [bluetooth_auto_recovery.recover] Unexpected error while attempting USB reset of hci0: too many values to unpack (expected 2)
homeassistant  | Traceback (most recent call last):
homeassistant  |   File "/usr/local/lib/python3.12/site-packages/bluetooth_auto_recovery/recover.py", line 515, in _usb_reset_adapter
homeassistant  |     return await dev.async_reset()
homeassistant  |            ^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 49, in async_reset
homeassistant  |     return await asyncio.get_running_loop().run_in_executor(None, self.reset)
homeassistant  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
homeassistant  |     result = self.fn(*self.args, **self.kwargs)
homeassistant  |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 54, in reset
homeassistant  |     self.setup()
homeassistant  |   File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 61, in setup
homeassistant  |     self.usb_device = USBDevice(path.parts[-1])
homeassistant  |                       ^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 94, in __init__
homeassistant  |     bus_port_id, interface_id = id_str.split(":")
homeassistant  |     ^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  | ValueError: too many values to unpack (expected 2)
homeassistant  | 2024-11-30 10:15:33.687 WARNING (MainThread) [bluetooth_auto_recovery.recover] Bluetooth management socket connection lost: [Errno 9] Bad file descriptor
homeassistant  | 2024-11-30 10:15:33.827 WARNING (MainThread) [bluetooth_auto_recovery.recover] Could not cycle the Bluetooth adapter hci0 [02:00:67:7A:D4:F1]: [Errno 1] Operation not permitted
homeassistant  | 2024-11-30 10:15:38.829 WARNING (MainThread) [bluetooth_auto_recovery.recover] Could not reset the power state of the Bluetooth adapter hci0 [02:00:67:7A:D4:F1] due to timeout after 5 seconds
homeassistant  | 2024-11-30 10:15:38.833 ERROR (MainThread) [bluetooth_auto_recovery.recover] Unexpected error while attempting USB reset of hci0: too many values to unpack (expected 2)
homeassistant  | Traceback (most recent call last):
homeassistant  |   File "/usr/local/lib/python3.12/site-packages/bluetooth_auto_recovery/recover.py", line 515, in _usb_reset_adapter
homeassistant  |     return await dev.async_reset()
homeassistant  |            ^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 49, in async_reset
homeassistant  |     return await asyncio.get_running_loop().run_in_executor(None, self.reset)
homeassistant  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
homeassistant  |     result = self.fn(*self.args, **self.kwargs)
homeassistant  |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 54, in reset
homeassistant  |     self.setup()
homeassistant  |   File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 61, in setup
homeassistant  |     self.usb_device = USBDevice(path.parts[-1])
homeassistant  |                       ^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 94, in __init__
homeassistant  |     bus_port_id, interface_id = id_str.split(":")
homeassistant  |     ^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  | ValueError: too many values to unpack (expected 2)
homeassistant  | 2024-11-30 10:15:38.838 WARNING (MainThread) [bluetooth_auto_recovery.recover] Bluetooth management socket connection lost: [Errno 9] Bad file descriptor
homeassistant  | 2024-11-30 10:15:44.107 WARNING (MainThread) [bluetooth_auto_recovery.recover] Could not cycle the Bluetooth adapter hci0 [02:00:67:7A:D4:F1]: [Errno 1] Operation not permitted
homeassistant  | 2024-11-30 10:15:49.110 WARNING (MainThread) [bluetooth_auto_recovery.recover] Could not reset the power state of the Bluetooth adapter hci0 [02:00:67:7A:D4:F1] due to timeout after 5 seconds
homeassistant  | 2024-11-30 10:15:49.113 ERROR (MainThread) [bluetooth_auto_recovery.recover] Unexpected error while attempting USB reset of hci0: too many values to unpack (expected 2)
homeassistant  | Traceback (most recent call last):
homeassistant  |   File "/usr/local/lib/python3.12/site-packages/bluetooth_auto_recovery/recover.py", line 515, in _usb_reset_adapter
homeassistant  |     return await dev.async_reset()
homeassistant  |            ^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 49, in async_reset
homeassistant  |     return await asyncio.get_running_loop().run_in_executor(None, self.reset)
homeassistant  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
homeassistant  |     result = self.fn(*self.args, **self.kwargs)
homeassistant  |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 54, in reset
homeassistant  |     self.setup()
homeassistant  |   File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 61, in setup
homeassistant  |     self.usb_device = USBDevice(path.parts[-1])
homeassistant  |                       ^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 94, in __init__
homeassistant  |     bus_port_id, interface_id = id_str.split(":")
homeassistant  |     ^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  | ValueError: too many values to unpack (expected 2)
homeassistant  | 2024-11-30 10:15:49.117 WARNING (MainThread) [bluetooth_auto_recovery.recover] Bluetooth management socket connection lost: [Errno 9] Bad file descriptor
homeassistant  | 2024-11-30 10:15:59.293 WARNING (MainThread) [bluetooth_auto_recovery.recover] Could not cycle the Bluetooth adapter hci0 [02:00:67:7A:D4:F1]: [Errno 1] Operation not permitted
homeassistant  | 2024-11-30 10:16:04.295 WARNING (MainThread) [bluetooth_auto_recovery.recover] Could not reset the power state of the Bluetooth adapter hci0 [02:00:67:7A:D4:F1] due to timeout after 5 seconds
homeassistant  | 2024-11-30 10:16:04.298 ERROR (MainThread) [bluetooth_auto_recovery.recover] Unexpected error while attempting USB reset of hci0: too many values to unpack (expected 2)
homeassistant  | Traceback (most recent call last):
homeassistant  |   File "/usr/local/lib/python3.12/site-packages/bluetooth_auto_recovery/recover.py", line 515, in _usb_reset_adapter
homeassistant  |     return await dev.async_reset()
homeassistant  |            ^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 49, in async_reset
homeassistant  |     return await asyncio.get_running_loop().run_in_executor(None, self.reset)
homeassistant  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
homeassistant  |     result = self.fn(*self.args, **self.kwargs)
homeassistant  |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 54, in reset
homeassistant  |     self.setup()
homeassistant  |   File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 61, in setup
homeassistant  |     self.usb_device = USBDevice(path.parts[-1])
homeassistant  |                       ^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 94, in __init__
homeassistant  |     bus_port_id, interface_id = id_str.split(":")
homeassistant  |     ^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  | ValueError: too many values to unpack (expected 2)
homeassistant  | 2024-11-30 10:16:04.302 WARNING (MainThread) [bluetooth_auto_recovery.recover] Bluetooth management socket connection lost: [Errno 9] Bad file descriptor
homeassistant  | 2024-11-30 10:16:29.432 WARNING (MainThread) [bluetooth_auto_recovery.recover] Could not cycle the Bluetooth adapter hci0 [02:00:67:7A:D4:F1]: [Errno 1] Operation not permitted
homeassistant  | 2024-11-30 10:16:34.435 WARNING (MainThread) [bluetooth_auto_recovery.recover] Could not reset the power state of the Bluetooth adapter hci0 [02:00:67:7A:D4:F1] due to timeout after 5 seconds
homeassistant  | 2024-11-30 10:16:34.438 ERROR (MainThread) [bluetooth_auto_recovery.recover] Unexpected error while attempting USB reset of hci0: too many values to unpack (expected 2)
homeassistant  | Traceback (most recent call last):
homeassistant  |   File "/usr/local/lib/python3.12/site-packages/bluetooth_auto_recovery/recover.py", line 515, in _usb_reset_adapter
homeassistant  |     return await dev.async_reset()
homeassistant  |            ^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 49, in async_reset
homeassistant  |     return await asyncio.get_running_loop().run_in_executor(None, self.reset)
homeassistant  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
homeassistant  |     result = self.fn(*self.args, **self.kwargs)
homeassistant  |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 54, in reset
homeassistant  |     self.setup()
homeassistant  |   File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 61, in setup
homeassistant  |     self.usb_device = USBDevice(path.parts[-1])
homeassistant  |                       ^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 94, in __init__
homeassistant  |     bus_port_id, interface_id = id_str.split(":")
homeassistant  |     ^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  | ValueError: too many values to unpack (expected 2)
homeassistant  | 2024-11-30 10:16:34.443 WARNING (MainThread) [bluetooth_auto_recovery.recover] Bluetooth management socket connection lost: [Errno 9] Bad file descriptor
homeassistant  | 2024-11-30 10:17:24.794 WARNING (MainThread) [bluetooth_auto_recovery.recover] Could not cycle the Bluetooth adapter hci0 [02:00:67:7A:D4:F1]: [Errno 1] Operation not permitted
homeassistant  | 2024-11-30 10:17:29.797 WARNING (MainThread) [bluetooth_auto_recovery.recover] Could not reset the power state of the Bluetooth adapter hci0 [02:00:67:7A:D4:F1] due to timeout after 5 seconds
homeassistant  | 2024-11-30 10:17:29.800 ERROR (MainThread) [bluetooth_auto_recovery.recover] Unexpected error while attempting USB reset of hci0: too many values to unpack (expected 2)
homeassistant  | Traceback (most recent call last):
homeassistant  |   File "/usr/local/lib/python3.12/site-packages/bluetooth_auto_recovery/recover.py", line 515, in _usb_reset_adapter
homeassistant  |     return await dev.async_reset()
homeassistant  |            ^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 49, in async_reset
homeassistant  |     return await asyncio.get_running_loop().run_in_executor(None, self.reset)
homeassistant  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
homeassistant  |     result = self.fn(*self.args, **self.kwargs)
homeassistant  |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 54, in reset
homeassistant  |     self.setup()
homeassistant  |   File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 61, in setup
homeassistant  |     self.usb_device = USBDevice(path.parts[-1])
homeassistant  |                       ^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 94, in __init__
homeassistant  |     bus_port_id, interface_id = id_str.split(":")
homeassistant  |     ^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  | ValueError: too many values to unpack (expected 2)
homeassistant  | 2024-11-30 10:17:29.805 WARNING (MainThread) [bluetooth_auto_recovery.recover] Bluetooth management socket connection lost: [Errno 9] Bad file descriptor
homeassistant  | 2024-11-30 10:17:54.822 WARNING (MainThread) [bluetooth_auto_recovery.recover] Could not cycle the Bluetooth adapter hci0 [02:00:67:7A:D4:F1]: [Errno 1] Operation not permitted
homeassistant  | 2024-11-30 10:17:59.826 WARNING (MainThread) [bluetooth_auto_recovery.recover] Could not reset the power state of the Bluetooth adapter hci0 [02:00:67:7A:D4:F1] due to timeout after 5 seconds
homeassistant  | 2024-11-30 10:17:59.834 ERROR (MainThread) [bluetooth_auto_recovery.recover] Unexpected error while attempting USB reset of hci0: too many values to unpack (expected 2)
homeassistant  | Traceback (most recent call last):
homeassistant  |   File "/usr/local/lib/python3.12/site-packages/bluetooth_auto_recovery/recover.py", line 515, in _usb_reset_adapter
homeassistant  |     return await dev.async_reset()
homeassistant  |            ^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 49, in async_reset
homeassistant  |     return await asyncio.get_running_loop().run_in_executor(None, self.reset)
homeassistant  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
homeassistant  |     result = self.fn(*self.args, **self.kwargs)
homeassistant  |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 54, in reset
homeassistant  |     self.setup()
homeassistant  |   File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 61, in setup
homeassistant  |     self.usb_device = USBDevice(path.parts[-1])
homeassistant  |                       ^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 94, in __init__
homeassistant  |     bus_port_id, interface_id = id_str.split(":")
homeassistant  |     ^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  | ValueError: too many values to unpack (expected 2)
homeassistant  | 2024-11-30 10:17:59.838 WARNING (MainThread) [bluetooth_auto_recovery.recover] Bluetooth management socket connection lost: [Errno 9] Bad file descriptor
homeassistant  | 2024-11-30 10:18:50.040 WARNING (MainThread) [bluetooth_auto_recovery.recover] Could not cycle the Bluetooth adapter hci0 [02:00:67:7A:D4:F1]: [Errno 1] Operation not permitted
homeassistant  | 2024-11-30 10:18:55.041 WARNING (MainThread) [bluetooth_auto_recovery.recover] Could not reset the power state of the Bluetooth adapter hci0 [02:00:67:7A:D4:F1] due to timeout after 5 seconds
homeassistant  | 2024-11-30 10:18:55.044 ERROR (MainThread) [bluetooth_auto_recovery.recover] Unexpected error while attempting USB reset of hci0: too many values to unpack (expected 2)
homeassistant  | Traceback (most recent call last):
homeassistant  |   File "/usr/local/lib/python3.12/site-packages/bluetooth_auto_recovery/recover.py", line 515, in _usb_reset_adapter
homeassistant  |     return await dev.async_reset()
homeassistant  |            ^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 49, in async_reset
homeassistant  |     return await asyncio.get_running_loop().run_in_executor(None, self.reset)
homeassistant  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
homeassistant  |     result = self.fn(*self.args, **self.kwargs)
homeassistant  |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 54, in reset
homeassistant  |     self.setup()
homeassistant  |   File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 61, in setup
homeassistant  |     self.usb_device = USBDevice(path.parts[-1])
homeassistant  |                       ^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 94, in __init__
homeassistant  |     bus_port_id, interface_id = id_str.split(":")
homeassistant  |     ^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  | ValueError: too many values to unpack (expected 2)
homeassistant  | 2024-11-30 10:18:55.048 WARNING (MainThread) [bluetooth_auto_recovery.recover] Bluetooth management socket connection lost: [Errno 9] Bad file descriptor
homeassistant  | 2024-11-30 10:19:20.162 WARNING (MainThread) [bluetooth_auto_recovery.recover] Could not cycle the Bluetooth adapter hci0 [02:00:67:7A:D4:F1]: [Errno 1] Operation not permitted
homeassistant  | 2024-11-30 10:19:25.164 WARNING (MainThread) [bluetooth_auto_recovery.recover] Could not reset the power state of the Bluetooth adapter hci0 [02:00:67:7A:D4:F1] due to timeout after 5 seconds
homeassistant  | 2024-11-30 10:19:25.167 ERROR (MainThread) [bluetooth_auto_recovery.recover] Unexpected error while attempting USB reset of hci0: too many values to unpack (expected 2)
homeassistant  | Traceback (most recent call last):
homeassistant  |   File "/usr/local/lib/python3.12/site-packages/bluetooth_auto_recovery/recover.py", line 515, in _usb_reset_adapter
homeassistant  |     return await dev.async_reset()
homeassistant  |            ^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 49, in async_reset
homeassistant  |     return await asyncio.get_running_loop().run_in_executor(None, self.reset)
homeassistant  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
homeassistant  |     result = self.fn(*self.args, **self.kwargs)
homeassistant  |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 54, in reset
homeassistant  |     self.setup()
homeassistant  |   File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 61, in setup
homeassistant  |     self.usb_device = USBDevice(path.parts[-1])
homeassistant  |                       ^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 94, in __init__
homeassistant  |     bus_port_id, interface_id = id_str.split(":")
homeassistant  |     ^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  | ValueError: too many values to unpack (expected 2)
homeassistant  | 2024-11-30 10:19:25.172 WARNING (MainThread) [bluetooth_auto_recovery.recover] Bluetooth management socket connection lost: [Errno 9] Bad file descriptor
homeassistant  | 2024-11-30 10:20:15.258 WARNING (MainThread) [bluetooth_auto_recovery.recover] Could not cycle the Bluetooth adapter hci0 [02:00:67:7A:D4:F1]: [Errno 1] Operation not permitted
homeassistant  | 2024-11-30 10:20:20.262 WARNING (MainThread) [bluetooth_auto_recovery.recover] Could not reset the power state of the Bluetooth adapter hci0 [02:00:67:7A:D4:F1] due to timeout after 5 seconds
homeassistant  | 2024-11-30 10:20:20.265 ERROR (MainThread) [bluetooth_auto_recovery.recover] Unexpected error while attempting USB reset of hci0: too many values to unpack (expected 2)
homeassistant  | Traceback (most recent call last):
homeassistant  |   File "/usr/local/lib/python3.12/site-packages/bluetooth_auto_recovery/recover.py", line 515, in _usb_reset_adapter
homeassistant  |     return await dev.async_reset()
homeassistant  |            ^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 49, in async_reset
homeassistant  |     return await asyncio.get_running_loop().run_in_executor(None, self.reset)
homeassistant  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
homeassistant  |     result = self.fn(*self.args, **self.kwargs)
homeassistant  |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 54, in reset
homeassistant  |     self.setup()
homeassistant  |   File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 61, in setup
homeassistant  |     self.usb_device = USBDevice(path.parts[-1])
homeassistant  |                       ^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 94, in __init__
homeassistant  |     bus_port_id, interface_id = id_str.split(":")
homeassistant  |     ^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  | ValueError: too many values to unpack (expected 2)
homeassistant  | 2024-11-30 10:20:20.269 WARNING (MainThread) [bluetooth_auto_recovery.recover] Bluetooth management socket connection lost: [Errno 9] Bad file descriptor

Without you providing any sort of information on how you deloyed the container, I can only guess what the issue is.

But it looks like whatever device you set for Bluetooth when deploying the container is the incorrect one.

I will say no one within the team would’ve tested deploying any of our containers on a mobile phone.

Thank you @j0nnymoe for your reply

Please tell me what the details are you want.

Here is my docker compose file

version: "3.3"
services:
  homeassistant:
    container_name: homeassistant
    # image: ghcr.io/home-assistant/home-assistant:stable
    image: lscr.io/linuxserver/homeassistant:latest
    volumes:
      - ./config:/config
      - /etc/localtime:/etc/localtime:ro
      - /run/dbus:/run/dbus:ro
    restart: unless-stopped
    # privileged: true
    network_mode: host
    ports:
      - 8123:8123
    environment:
      #   DISABLE_JEMALLOC: true
      - PUID=10000
      - PGID=10000
      - TZ=Etc/UTC
networks: {}

logs

homeassistant  | [migrations] started
homeassistant  | [migrations] no migrations found
homeassistant  | usermod: no changes
homeassistant  | ───────────────────────────────────────
homeassistant  | 
homeassistant  |       ██╗     ███████╗██╗ ██████╗
homeassistant  |       ██║     ██╔════╝██║██╔═══██╗
homeassistant  |       ██║     ███████╗██║██║   ██║
homeassistant  |       ██║     ╚════██║██║██║   ██║
homeassistant  |       ███████╗███████║██║╚██████╔╝
homeassistant  |       ╚══════╝╚══════╝╚═╝ ╚═════╝
homeassistant  | 
homeassistant  |    Brought to you by linuxserver.io
homeassistant  | ───────────────────────────────────────
homeassistant  | 
homeassistant  | To support LSIO projects visit:
homeassistant  | https://www.linuxserver.io/donate/
homeassistant  | 
homeassistant  | ───────────────────────────────────────
homeassistant  | GID/UID
homeassistant  | ───────────────────────────────────────
homeassistant  | 
homeassistant  | User UID:    10000
homeassistant  | User GID:    10000
homeassistant  | ───────────────────────────────────────
homeassistant  | Linuxserver.io version: 2024.11.3-ls49
homeassistant  | Build-date: 2024-11-27T02:08:27+00:00
homeassistant  | ───────────────────────────────────────
homeassistant  |     
homeassistant  | Setting permissions
homeassistant  | [custom-init] No custom files found, skipping...
homeassistant  | 2024-11-30 11:24:19.460 WARNING (Recorder) [homeassistant.components.recorder.util] The system could not validate that the sqlite3 database at //config/home-assistant_v2.db was shutdown cleanly
homeassistant  | Connection to localhost (::1) 8123 port [tcp/*] succeeded!
homeassistant  | [ls.io-init] done.
homeassistant  | 2024-11-30 11:24:23.874 ERROR (SyncWorker_0) [bluetooth_adapters.systems.linux] Unexpected error setting up device hci<usb_devices.BluetoothDevice object at 0xffff75783ac0>
homeassistant  | Traceback (most recent call last):
homeassistant  |   File "/usr/local/lib/python3.12/site-packages/bluetooth_adapters/systems/linux.py", line 55, in _refresh_devices
homeassistant  |     dev.setup()
homeassistant  |   File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 61, in setup
homeassistant  |     self.usb_device = USBDevice(path.parts[-1])
homeassistant  |                       ^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 94, in __init__
homeassistant  |     bus_port_id, interface_id = id_str.split(":")
homeassistant  |     ^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  | ValueError: too many values to unpack (expected 2)
homeassistant  | 2024-11-30 11:24:23.986 WARNING (MainThread) [bluetooth_auto_recovery.recover] Could not cycle the Bluetooth adapter hci0 [02:00:67:7A:D4:F1]: [Errno 1] Operation not permitted
homeassistant  | 2024-11-30 11:24:28.990 WARNING (MainThread) [bluetooth_auto_recovery.recover] Could not reset the power state of the Bluetooth adapter hci0 [02:00:67:7A:D4:F1] due to timeout after 5 seconds
homeassistant  | 2024-11-30 11:24:28.993 ERROR (MainThread) [bluetooth_auto_recovery.recover] Unexpected error while attempting USB reset of hci0: too many values to unpack (expected 2)
homeassistant  | Traceback (most recent call last):
homeassistant  |   File "/usr/local/lib/python3.12/site-packages/bluetooth_auto_recovery/recover.py", line 515, in _usb_reset_adapter
homeassistant  |     return await dev.async_reset()
homeassistant  |            ^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 49, in async_reset
homeassistant  |     return await asyncio.get_running_loop().run_in_executor(None, self.reset)
homeassistant  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
homeassistant  |     result = self.fn(*self.args, **self.kwargs)
homeassistant  |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 54, in reset
homeassistant  |     self.setup()
homeassistant  |   File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 61, in setup
homeassistant  |     self.usb_device = USBDevice(path.parts[-1])
homeassistant  |                       ^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 94, in __init__
homeassistant  |     bus_port_id, interface_id = id_str.split(":")
homeassistant  |     ^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  | ValueError: too many values to unpack (expected 2)
homeassistant  | 2024-11-30 11:24:28.999 WARNING (MainThread) [bluetooth_auto_recovery.recover] Bluetooth management socket connection lost: [Errno 9] Bad file descriptor
homeassistant  | 2024-11-30 11:24:30.930 WARNING (MainThread) [bluetooth_auto_recovery.recover] Could not cycle the Bluetooth adapter hci0 [02:00:67:7A:D4:F1]: [Errno 1] Operation not permitted
homeassistant  | 2024-11-30 11:24:35.932 WARNING (MainThread) [bluetooth_auto_recovery.recover] Could not reset the power state of the Bluetooth adapter hci0 [02:00:67:7A:D4:F1] due to timeout after 5 seconds
homeassistant  | 2024-11-30 11:24:35.935 ERROR (MainThread) [bluetooth_auto_recovery.recover] Unexpected error while attempting USB reset of hci0: too many values to unpack (expected 2)

Looks like you need to add these bits:

Tried to install BlueZ
image

Also updated the compose file

version: "3.3"
services:
  homeassistant:
    container_name: homeassistant
    # image: ghcr.io/home-assistant/home-assistant:stable
    image: lscr.io/linuxserver/homeassistant:arm64v8-latest
    cap_add:
      - NET_ADMIN
      - NET_RAW
    volumes:
      - ./config:/config
      - /etc/localtime:/etc/localtime:ro
      - /run/dbus:/run/dbus:ro
      - /var/run/dbus:/var/run/dbus:ro
    restart: unless-stopped
    # privileged: true
    network_mode: host
    ports:
      - 8123:8123
    environment:
      #   DISABLE_JEMALLOC: true
      - PUID=10000
      - PGID=10000
      - TZ=Etc/UTC
networks: {}

But still facing same issue

homeassistant  | [migrations] started
homeassistant  | [migrations] no migrations found
homeassistant  | ───────────────────────────────────────
homeassistant  | 
homeassistant  |       ██╗     ███████╗██╗ ██████╗
homeassistant  |       ██║     ██╔════╝██║██╔═══██╗
homeassistant  |       ██║     ███████╗██║██║   ██║
homeassistant  |       ██║     ╚════██║██║██║   ██║
homeassistant  |       ███████╗███████║██║╚██████╔╝
homeassistant  |       ╚══════╝╚══════╝╚═╝ ╚═════╝
homeassistant  | 
homeassistant  |    Brought to you by linuxserver.io
homeassistant  | ───────────────────────────────────────
homeassistant  | 
homeassistant  | To support LSIO projects visit:
homeassistant  | https://www.linuxserver.io/donate/
homeassistant  | 
homeassistant  | ───────────────────────────────────────
homeassistant  | GID/UID
homeassistant  | ───────────────────────────────────────
homeassistant  | 
homeassistant  | User UID:    10000
homeassistant  | User GID:    10000
homeassistant  | ───────────────────────────────────────
homeassistant  | Linuxserver.io version: 2024.11.3-ls49
homeassistant  | Build-date: 2024-11-27T02:08:27+00:00
homeassistant  | ───────────────────────────────────────
homeassistant  |     
homeassistant  | **** New container detected, fixing python package permissions. This may take a while. ****
homeassistant  | Setting permissions
homeassistant  | [custom-init] No custom files found, skipping...
homeassistant  | Connection to localhost (::1) 8123 port [tcp/*] succeeded!
homeassistant  | [ls.io-init] done.
homeassistant  | 2024-11-30 11:52:01.860 ERROR (SyncWorker_2) [bluetooth_adapters.systems.linux] Unexpected error setting up device hci<usb_devices.BluetoothDevice object at 0xffffa17988c0>
homeassistant  | Traceback (most recent call last):
homeassistant  |   File "/usr/local/lib/python3.12/site-packages/bluetooth_adapters/systems/linux.py", line 55, in _refresh_devices
homeassistant  |     dev.setup()
homeassistant  |   File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 61, in setup
homeassistant  |     self.usb_device = USBDevice(path.parts[-1])
homeassistant  |                       ^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "/usr/local/lib/python3.12/site-packages/usb_devices/__init__.py", line 94, in __init__
homeassistant  |     bus_port_id, interface_id = id_str.split(":")
homeassistant  |     ^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  | ValueError: too many values to unpack (expected 2)

I don’t want to provide Bluetooth to HA; what should I do?

Remove the dbus lines and the cap_add bits. You could have mentioned before that you didn’t want to pass through Bluetooth.