I have home assistant installed as HA OS on a NUC without a display.
I’m having trouble with the bluetooth module.
I have ssh installed so I can access the command line from my laptop.
At first the bluetooth worked, but suddenly it stopped working.
The Bluetooth integration gave an error, so I deleted the integration and hoped that i would be able to reinstall the integration after a restart.
now it says : No unconfigured Bluetooth adapters found. There are 0 ignored adapters.
How can I investigate this problem further?
I have no experience with the HA OS command line and a newbie in home assistant.
when I do a “bluetoothctl” and then a “show” I see this error : “no default controller available”
So how do I reactivate this bluetooth controller again?
It is not a HA problem as the OS most likely did not load the correct driver at the boot time. I’ve a supervised HA installed on Debian and using this USB adapter that showed the same error as you mentioned above.
So I troubleshooted using following commands on the Debian box:
$ journalctl -l | grep bluetooth
and the output showed that the firmware for the adapter did not load:
Dec 29 04:18:57 debian kernel: bluetooth hci0: firmware: failed to load rtl_bt/rtl8822b_fw.bin (-2)
So installed the firmware package for Realtek using:
$ apt-get install firmware-realtek
Rebooted and checked the logs again, it showed the driver loaded successfully and bluetooth started working.
I would not recommend as this is a driver related problem at the OS level. But try running the above commands from HA terminal and in worse case you will not see any output, so no harm done!