At some point – I don’t really know when – bluetooth stopped working for me as a device tracker. Bluetooth devices aren’t detected anymore, and my logs are filled with the following, over and over and over:
2019-11-27 16:00:13 ERROR (MainThread) [homeassistant.components.bluetooth_tracker.device_tracker] Error looking up Bluetooth device Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/bluetooth/bluez.py", line 31, in discover_devices lookup_class=lookup_class, device_id=device_id) _bluetooth.error: (16, 'Resource busy') During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/bluetooth_tracker/device_tracker.py", line 140, in perform_bluetooth_update devices = await hass.async_add_executor_job(discover_devices, device_id) File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, **self.kwargs) File "/usr/src/homeassistant/homeassistant/components/bluetooth_tracker/device_tracker.py", line 62, in discover_devices device_id=device_id, File "/usr/local/lib/python3.7/site-packages/bluetooth/bluez.py", line 34, in discover_devices raise BluetoothError ("error communicating with local " bluetooth.btcommon.BluetoothError: error communicating with local bluetooth adapter
The only thing I’m using bluetooth for other than device tracking is monitoring a Flic button, using the flicd add-on, and that appears to be working as expected.
Any idea what’s going on here, and how I go about correcting it? I’m running hassio (HassOS 1.13) on a Raspberry Pi 3B+.