Bluetooth error


I recently realized that my bluetooth tracker stopped working. I’m using 0.82.1 on ResinOS on a Raspberry Pi 3.

My logs show the following on start:

2019-01-07 11:35:38 ERROR (SyncWorker_15) [homeassistant.components.device_tracker.bluetooth_tracker] Error looking up Bluetooth device
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/device_tracker/", line 99, in update_bluetooth_once
    result = bluetooth.lookup_name(mac, timeout=5)
  File "/usr/local/lib/python3.6/site-packages/bluetooth/", line 59, in lookup_name
    raise BluetoothError ("%s is not a valid Bluetooth address" % address)
bluetooth.btcommon.BluetoothError: _A8:A7:95:60:88:8E is not a valid Bluetooth address

I tried restarting but logs only show:

2019-01-08 11:30:17 INFO (MainThread) [homeassistant.components.http.view] Serving /api/hassio/addons/core_bluetooth_bcm43xx/restart to (auth: True)
2019-01-08 11:30:18 ERROR (MainThread) [homeassistant.core] Error doing job: Future exception was never retrieved
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/concurrent/futures/", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/device_tracker/", line 85, in update_bluetooth
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/device_tracker/", line 93, in update_bluetooth_once
    for dev in discover_devices():
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/device_tracker/", line 51, in discover_devices
  File "/usr/local/lib/python3.6/site-packages/bluetooth/", line 26, in discover_devices
    device_id = _bt.hci_get_route()
OSError: [Errno 19] No such device

Any ideas?

Deleting the known_devices file did the trick - now it’s working again.

1 Like