This all worked fine until I upgraded to v 0.98.0 Since upgrading, the Bluetooth device tracker does not work. The below error gets logged. I’m wondering if this is related to the switch to Alpine Linux in the Docker image? Here’s the error I see:
2019-08-29 11:40:52 INFO (MainThread) [homeassistant.setup] Setting up device_tracker
2019-08-29 11:40:53 INFO (MainThread) [homeassistant.components.device_tracker] Setting up device_tracker.legacy
2019-08-29 11:40:54 ERROR (MainThread) [homeassistant.components.device_tracker] Error setting up platform legacy
File "/usr/src/homeassistant/homeassistant/components/device_tracker/setup.py", line 77, in async_setup_legacy
File "/usr/src/homeassistant/homeassistant/components/bluetooth_tracker/device_tracker.py", line 97, in setup_scanner
File "/usr/src/homeassistant/homeassistant/components/bluetooth_tracker/device_tracker.py", line 72, in discover_devices
2019-08-29 11:40:54 INFO (MainThread) [homeassistant.setup] Setup of domain device_tracker took 2.2 seconds.
Further to this, here’s a log with a bit more detail. My Bluetooth hardware works, as I can do both BT and BTLE scans with hcitool. Thanks.
2019-08-30 18:02:24 INFO (SyncWorker_15) [homeassistant.loader] Loaded bluetooth_tracker from homeassistant.components.bluetooth_tracker
File "/usr/local/lib/python3.7/site-packages/bluetooth/bluez.py", line 31, in discover_devices
_bluetooth.error: (4, 'Interrupted system call')
File "/usr/src/homeassistant/homeassistant/components/bluetooth_tracker/device_tracker.py", line 97, in setup_scanner
File "/usr/src/homeassistant/homeassistant/components/bluetooth_tracker/device_tracker.py", line 72, in discover_devices
File "/usr/local/lib/python3.7/site-packages/bluetooth/bluez.py", line 34, in discover_devices
raise BluetoothError ("error communicating with local "
bluetooth.btcommon.BluetoothError: error communicating with local bluetooth adapter
I encountered the same problem (and error messages) in Docker after upgrading to 0.98.X images. The Docker host is a Debian Stretch virtual machine. Like you I suspect it’s related to the switch to Alpine.
Bluetooth device-tracker runs on my pre-Alpine 0.97.2 version container while bluetoothd runs on the host.
While looking for an alternate source of semi-official and routinely updated non-Alpine images on Docker Hub found these HA images for Intel NUC which might work for you.