Closed Tickaren closed 4 years ago
I have the same error message. Hassio in Docker on Ubuntu, this happens on boot. New bluetooth dongle which is recogized by ubuntu.
I'm having the same issue as the original issue. Bluetooth_tracker works for a few hours and then stops. This is running in a Python venv on a Raspberry Pi3B using its internal Bluetooth adapter.
I can get it working by restarting Home Assistant and sometimes by running:
$ bluetoothctl : scan on : scan off
I also get the same error in my logs, but it doesn't seem to correspond to exactly when the Bluetooth tracker stops working.
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
still rellevant as of HA ver 0.115
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/bluetooth/bluez.py", line 30, in discover_devices
results = _bt.hci_inquiry (sock, duration=duration, flush_cache=True,
_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/bluetooth_tracker/device_tracker.py", line 140, in perform_bluetooth_update
devices = await hass.async_add_executor_job(discover_devices, device_id)
File "/usr/local/lib/python3.8/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 57, in discover_devices
result = bluetooth.discover_devices(
File "/usr/local/lib/python3.8/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'm suffering from a bluetooth issue that appeared yesterday in the latest build HA and Supervisor versions, reverting to an old snapshot didn't resolve the issue.
2020-10-18 21:32:06 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for inkbird which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-10-18 21:32:40 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up inkbird platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 193, in _async_setup_platform
await asyncio.shield(task)
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/inkbird/sensor.py", line 76, in setup_platform
inkbird_devices.append( InkbirdUpdater(hass, inkbird_devices) )
File "/config/custom_components/inkbird/sensor.py", line 93, in __init__
self.scanner.start()
File "/usr/local/lib/python3.8/site-packages/bluepy/btle.py", line 790, in start
self._mgmtCmd("le on")
File "/usr/local/lib/python3.8/site-packages/bluepy/btle.py", line 312, in _mgmtCmd
raise BTLEManagementError("Failed to execute management command '%s'" % (cmd), rsp)
bluepy.btle.BTLEManagementError: Failed to execute management command 'le on' (code: 17, error: Invalid Index)
Bluetooth Presence monitor Problematic add on 23-03-29 00:05:07 ERROR (SyncWorker_3) [supervisor.docker.interface] Container addon_bbd693f5_presence_monitor is not running 23-03-29 00:05:16 WARNING (MainThread) [supervisor.misc.tasks] Watchdog found a problem with bbd693f5_presence_monitor!
if i uninstall blue tooth presence monitor the error message continues after restart what can i do
Home Assistant release with the issue:
0.93.1
Last working Home Assistant release (if known): 0.92
Operating environment (Hass.io/Docker/Windows/etc.):
python virtual env.
Component/platform:
https://www.home-assistant.io/components/bluetooth_tracker/
Description of problem: The bluetooth tracker just stops working after a couple of ours after reboot. Have never had any problem before an have not changed anything between the versions.
Problem-relevant
configuration.yaml
entries and (fill out even if it seems unimportant):Traceback (if applicable):
Additional information: