Bluetooth error

Hey,

I recently realized that my bluetooth tracker stopped working. I’m using Hass.io 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/bluetooth_tracker.py", line 99, in update_bluetooth_once
    result = bluetooth.lookup_name(mac, timeout=5)
  File "/usr/local/lib/python3.6/site-packages/bluetooth/bluez.py", 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 192.168.0.164 (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/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/device_tracker/bluetooth_tracker.py", line 85, in update_bluetooth
    update_bluetooth_once()
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/device_tracker/bluetooth_tracker.py", line 93, in update_bluetooth_once
    for dev in discover_devices():
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/device_tracker/bluetooth_tracker.py", line 51, in discover_devices
    lookup_class=False)
  File "/usr/local/lib/python3.6/site-packages/bluetooth/bluez.py", 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