The Bluetooth tracker on my RP3b stopped working after a certain time.
I see this often return on various fora. I’m on the latest version of HA 104.2
The error message is:
Tue Feb 04 2020 23:49:59 GMT+0100 (Midden-Europese standaardtijd)
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: (110, 'Operation timed out')
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
2020-02-05 15:32:35 DEBUG (MainThread) [homeassistant.components.bluetooth_tracker.device_tracker] Previous execution of update_bluetooth is taking longer than the scheduled update of interval 0:00:45
configuration.yaml
device_tracker:
- platform: bluetooth_tracker