Bluetooth platform issue

Hey there. Trying to configure another device tracker. Getting this issue:

Error setting up platform bluetooth_tracker
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/device_tracker/__init__.py", line 183, in async_setup_platform
    disc_info)
  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 72, in setup_scanner
    for dev in discover_devices():
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/device_tracker/bluetooth_tracker.py", line 50, 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

Here is my configuration.yaml:

device_tracker:
  - platform: bluetooth_tracker
  - platform: nmap_tracker
    hosts:
      - 192.168.1.68
      - 192.168.1.71

There is so little to do. Do not know what am I doing wrong again. I have 3 devices in known_devices.yaml file, but I tried to comment them all. Same issue. As it’s said in documentation, I it scan on phone while HA was rebooting.

Tried to comment nmap platform - still same error…

Error setting up platform bluetooth_tracker
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/device_tracker/__init__.py", line 183, in async_setup_platform
    disc_info)
  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 72, in setup_scanner
    for dev in discover_devices():
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/device_tracker/bluetooth_tracker.py", line 50, 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

HA cannot see any bluetooth controllers on your machine. Can’t help much further until you tell more about your setup.

I am on Raspberry pi 3. Had nothing with bluetooth before (maybe I need do get add on?)
Using hass.io

Any ideas?

I have seen this error on other systems before and they went away with a hard shutdown power toggle to do a hardware reset.

I’m getting the same issue too, on my RPi3 with builtin BT4.1
I’ve tried a hard reset but to no avail. Did anyone find a fix?
Thanks

I have ordered new raspberry pi 3B+
Will try it out and let you know on sunday, probably

1 Like

Cheers, very annoying problem

Hi. I tried new raspberry with new memory card and it worked fine. Then I put that fresh card in old raspberry and it worked too, so the issue is not in raspberry. And I tried old card with new raspberry, but I did not got UI working. I just could not access to it.


Hey! Now I know what was wrong with my system.

I don’t know if this is useful info, my solution to this is physically powering off raspberry for a few seconds, then powering back again, helps with this error.