So I can get room presence working with bluetooth really well for about an hour or so. After that it doesn’t pick up bluetooth devices and starts show some errors:
[ 171.270884] debugfs: File 'le_min_key_size' in directory 'hci0' already present!
[ 171.271620] debugfs: File 'le_max_key_size' in directory 'hci0' already present!
[ 171.271891] debugfs: File 'force_bredr_smp' in directory 'hci0' already present!
~ $ bluetoothctl
Agent registered
[CHG] Controller 00:1A:7D:DA:71:11 Pairable: yes
[bluetooth]# scan on
Failed to start discovery: org.bluez.Error.NotReady
If I reboot it will work fine again. I’ve tried four different bluetooth dongles - all different brands, etc but they all show up as:
ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
I’m running HA as a VM in Unraid with the USB device passed through. I also pass through other USB devices including a Conbee II, which seems to work flawlessly.
EDIT: so I just found that the ‘power’ was set to off, when I ran ‘power on’ it started scanning successfully again. So I need to figure out why power is turning off automatically after a while.