After adding platform: bluetooth_tracker -> error message

Hi there,

After enabling the bluetooth_tracker I get an error in the front end saying:

The following components and platforms could not be set up:
devicetracker.bluetoothtracker
Please check your config

The error log shows:

2017-05-23 17:47:51 ERROR (Thread-4) [homeassistant.util.package] Unable to install package pybluez==0.22: Command “/usr/bin/python3 -u -c “import setuptools, tokenize;file=‘/tmp/pip-build-u_kcx4rl/pybluez/setup.py’;exec(compile(getattr(tokenize, ‘open’, open)(file).read().replace(‘\r\n’, ‘\n’), file, ‘exec’))” install --record /tmp/pip-ld0u24ix-record/install-record.txt --single-version-externally-managed --compile --home=/tmp/tmpmzjxumjo” failed with error code 1 in /tmp/pip-build-u_kcx4rl/pybluez/
2017-05-23 17:47:51 ERROR (MainThread) [homeassistant.setup] Not initializing device_tracker.bluetooth_tracker because could not install dependency pybluez==0.22
2017-05-23 17:47:51 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform device_tracker.bluetooth_tracker: Could not install all requirements.

It looks to me that Hass.io can not install the pybluez package.
Any ideas on how to fix this?

Just got the same bluetooth error when setting up hass.io now.

Bluetooth support comming with next docker build for homeassistant. Maby 0.45.2 or 0.46

https://github.com/home-assistant/hassio-build/commit/b677ad7a775c0c1e89693d7924cb215417832223

That would be great, thanx!

Also, FYI. resinos (host os) does not have bluetooth working at boot up. For now you will need:

/usr/bin/hciattach /dev/ttyAMA0 bcm43xx 921600 noflow -
hciconfig hci0 up

See https://github.com/resin-os/resinos/issues/199#issuecomment-303636974

I see the bluetooth addon for hass.io after the latest update and i have added it.
But it does still not work.

from log.
starting version 3.2.1
bcm43xx_init
Patch not found for BCM43430A1, continue anyway
Set Controller UART speed to 115200 bit/s
Device setup complete
Can’t init device hci0: Operation not permitted (1)

Do I have to activate it as the comment mentioned above? how do i do that?

Not working here either:

2017-06-05 17:58:13 ERROR (MainThread) [homeassistant.components.device_tracker] Error setting up platform bluetooth_tracker
Traceback (most recent call last):
File “/usr/lib/python3.5/site-packages/homeassistant/components/device_tracker/init.py”, line 162, in async_setup_platform
disc_info)
File “uvloop/future.pyx”, line 230, in iter (uvloop/loop.c:110600)
File “uvloop/future.pyx”, line 432, in uvloop.loop.BaseTask._fast_wakeup (uvloop/loop.c:113980)
File “uvloop/future.pyx”, line 101, in uvloop.loop.BaseFuture._result_impl (uvloop/loop.c:108900)
File “/usr/lib/python3.5/concurrent/futures/thread.py”, line 55, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/lib/python3.5/site-packages/homeassistant/components/device_tracker/bluetooth_tracker.py”, line 64, in setup_scanner
for dev in discover_devices():
File “/usr/lib/python3.5/site-packages/homeassistant/components/device_tracker/bluetooth_tracker.py”, line 42, in discover_devices
lookup_class=False)
File “/usr/lib/python3.5/site-packages/bluetooth/bluez.py”, line 26, in discover_devices
device_id = _bt.hci_get_route()
OSError: [Errno 19] No such device

Version 0.4 should fix it

Still not working just a different error msg :stuck_out_tongue: And looks like the state at least stay started on 0.4.

starting version 3.2.1
bcm43xx_init
Patch not found for BCM43430A1, continue anyway
Can’t get device info: No such device

2017-06-06 01:03:26 ERROR (MainThread) [homeassistant.components.device_tracker] Error setting up platform bluetooth_tracker
Traceback (most recent call last):
File “/usr/lib/python3.5/site-packages/homeassistant/components/device_tracker/init.py”, line 162, in async_setup_platform
disc_info)
File “uvloop/future.pyx”, line 230, in iter (uvloop/loop.c:110600)
File “uvloop/future.pyx”, line 432, in uvloop.loop.BaseTask._fast_wakeup (uvloop/loop.c:113980)
File “uvloop/future.pyx”, line 101, in uvloop.loop.BaseFuture._result_impl (uvloop/loop.c:108900)
File “/usr/lib/python3.5/concurrent/futures/thread.py”, line 55, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/lib/python3.5/site-packages/homeassistant/components/device_tracker/bluetooth_tracker.py”, line 64, in setup_scanner
for dev in discover_devices():
File “/usr/lib/python3.5/site-packages/homeassistant/components/device_tracker/bluetooth_tracker.py”, line 42, in discover_devices
lookup_class=False)
File “/usr/lib/python3.5/site-packages/bluetooth/bluez.py”, line 26, in discover_devices
device_id = _bt.hci_get_route()
OSError: [Errno 19] No such device

Can you post the output of Bluetooth addon. Is they still running?

Yes still running.

Log output from bluetooth addon is:

starting version 3.2.1
bcm43xx_init
Patch not found for BCM43430A1, continue anyway
Can’t get device info: No such device

Almost similar here (after installing addon):
starting version 3.2.1
bcm43xx_init

tried the latest 0.5 version now. Still no go.

starting version 3.2.1
bcm43xx_init
Can’t get device info: No such device
Patch not found for BCM43438A1 37, continue anyway

Try last update:

1 Like

Yes its working now. Thanks for the fix :grinning:

1 Like

Fixed here also, but some devices do not show up.
I have to check why