home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
70.57k stars 29.49k forks source link

Bluetooth dongle not detected by Bluetooth integration #122002

Open ov1d1u opened 1 month ago

ov1d1u commented 1 month ago

The problem

After a forced shutdown caused by a power blackout, my Home Assistant installation no longer detects the Bluetooth dongle I'm using (ASUS_USB-BT500). The device appears in the hardware list in Settings -> System -> Hardware -> All hardware:

BUSNUM: '001'
DEVNAME: /dev/bus/usb/001/008
DEVNUM: '008'
DEVPATH: /devices/platform/axi/1000120000.pcie/1f00200000.usb/xhci-hcd.0/usb1/1-2/1-2.3
DEVTYPE: usb_device
DRIVER: usb
ID_BUS: usb
ID_MODEL: ASUS_USB-BT500
ID_MODEL_ENC: ASUS\x20USB-BT500
ID_MODEL_ID: 190e
ID_PATH: platform-xhci-hcd.0-usb-0:2.3
ID_PATH_TAG: platform-xhci-hcd_0-usb-0_2_3
ID_PATH_WITH_USB_REVISION: platform-xhci-hcd.0-usbv2-0:2.3
ID_REVISION: '0200'
ID_SERIAL: Realtek_ASUS_USB-BT500_00E04C239987
ID_SERIAL_SHORT: 00E04C239987
ID_USB_INTERFACES: ':e00101:'
ID_USB_MODEL: ASUS_USB-BT500
ID_USB_MODEL_ENC: ASUS\x20USB-BT500
ID_USB_MODEL_ID: 190e
ID_USB_REVISION: '0200'
ID_USB_SERIAL: Realtek_ASUS_USB-BT500_00E04C239987
ID_USB_SERIAL_SHORT: 00E04C239987
ID_USB_VENDOR: Realtek
ID_USB_VENDOR_ENC: Realtek
ID_USB_VENDOR_ID: 0b05
ID_VENDOR: Realtek
ID_VENDOR_ENC: Realtek
ID_VENDOR_ID: 0b05
MAJOR: '189'
MINOR: '7'
PRODUCT: b05/190e/200
SUBSYSTEM: usb
TYPE: 224/1/1
USEC_INITIALIZED: '1457865266'

Also, it is detected by rfkill list:

0: hci0: bluetooth
        Soft blocked: no
        Hard blocked: no
1: phy0: wlan
        Soft blocked: no
        Hard blocked: no
4: hci1: bluetooth
        Soft blocked: no
        Hard blocked: no

but not by bluetoothctl list:

Controller D8:3A:DD:BB:51:33 homeassistant [default]

When I try to add a new entry for Bluetooh, I get:

No unconfigured Bluetooth adapters found. There are 0 ignored adapters.

I had a similar issue some time ago, but it was fixed by removing and readding the dongle in a different USB port, but this time this does not fix the issue. I also tried a reboot, but still no success.

What version of Home Assistant Core has the issue?

core-2024.7.2

What was the last working version of Home Assistant Core?

core-2024.7.2

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

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 1 month ago

Hey there @bdraco, mind taking a look at this issue as it has been labeled with an integration (bluetooth) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `bluetooth` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign bluetooth` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


bluetooth documentation bluetooth source (message by IssueLinks)

ov1d1u commented 1 month ago

Hmm, after a few more unplugs and replugs, the dongle was finally detected and appeared as hci2.