Hi,
I upgrade my previous version of Home Assistant (docker image for QNAP) and now, i have error at startup for bluetooth.
Error setting up platform legacy
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/bluetooth/bluez.py", line 31, in discover_devices
lookup_class=lookup_class, device_id=device_id)
_bluetooth.error: (4, 'Interrupted system call')
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/device_tracker/setup.py", line 77, in async_setup_legacy
discovery_info,
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/bluetooth_tracker/device_tracker.py", line 97, in setup_scanner
for dev in discover_devices():
File "/usr/src/homeassistant/homeassistant/components/bluetooth_tracker/device_tracker.py", line 72, in discover_devices
device_id=device_id,
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
This is my setup:
- QNAP and Docker (container station)
- Home Assistant 0.97.2 armv7l
- Bluetooth USB dongle
- Home assistant is running with privileged mode and network host (https://www.home-assistant.io/docs/installation/docker/#bluetooth)
With a previous version, know_devices.yaml contains my Bluetooth devices (connection with bluetooth OK)
I do some tests:
*** Host see USB bluetooth and work**
hciconfig dev
hci0: Type: USB
BD Address: 00:19:86:00:10:BC ACL MTU: 1017:8 SCO MTU: 64:0
UP RUNNING PSCAN
RX bytes:7524 acl:0 sco:0 events:347 errors:0
TX bytes:572 acl:0 sco:0 commands:52 errors:0
hcitool scan
Scanning ...
50:A0:09:B0:68:AA MIBOX3
3C:BD:3E:0F:77:6A 小米互联网音箱(580151104
*** Home Assistant see USB Bluetooth and work**
hciconfig dev
hci0: Type: Primary Bus: USB
BD Address: 00:19:86:00:10:BC ACL MTU: 1017:8 SCO MTU: 64:0
UP RUNNING PSCAN
RX bytes:7524 acl:0 sco:0 events:347 errors:0
TX bytes:572 acl:0 sco:0 commands:52 errors:0
hcitool scan
Scanning ...
3C:BD:3E:0F:77:6A 小米互联网音箱(580151104
50:A0:09:B0:68:AA MIBOX3
Can you help me ?