Bluetooth tracker - how to on Pi - OSError: [Errno 19] No such device

Hello,
I would explore the tacking capabilities using bluetooth.
So i added:

device_tracker:
  - platform: bluetooth_tracker

in my configuration.yaml
Unfortunately I got this error:

2018-12-24 17:55:56 ERROR (MainThread) [homeassistant.components.device_tracker] 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 73, in setup_scanner
    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

I suspect I miss something on my Pi. I just checked if the bluetooth service was running but I don’t know much this matter

root@moon:/opt/homeassistant# systemctl status bluetooth
● bluetooth.service - Bluetooth service
   Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
   Active: active (running) since Mon 2018-12-24 17:52:19 CET; 8min ago
     Docs: man:bluetoothd(8)
 Main PID: 14609 (bluetoothd)
   Status: "Running"
      CPU: 64ms
   CGroup: /system.slice/bluetooth.service
           └─14609 /usr/lib/bluetooth/bluetoothd

Dec 24 17:52:19 moon systemd[1]: Starting Bluetooth service...
Dec 24 17:52:19 moon bluetoothd[14609]: Bluetooth daemon 5.43
Dec 24 17:52:19 moon systemd[1]: Started Bluetooth service.
Dec 24 17:52:19 moon bluetoothd[14609]: Starting SDP server
Dec 24 17:52:19 moon bluetoothd[14609]: Bluetooth management interface 1.14 initialized

Is there anything I have to check?

Thank You

Hi! Don’t you use razbery or smth like that?

44

You are right!
I completely forgot that I disabled BT because I was using RaspBee and deCONZ.
Now I moved to zigbee2mqtt so I don’t need anymore to keep BT disabled.

Thank You for your support.

Happy that you got solution fast :slight_smile:

Hi all,

I’m having trouble to enable bluetooth tracker on my Rpi3.
Is it possible to enable bleutooth on Rpi running Resin OS?
And how should I do this?
I get this error but I have never disabled anything?

    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 81, in setup_scanner
        for dev in discover_devices():
      File "/usr/local/lib/python3.6/site-packages/homeassistant/components/device_tracker/bluetooth_tracker.py", line 59, in discover_devices
        lookup_class=False, device_id=device_id)
      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
1 Like