I’m running HA v2022.8.6 on docker on a RPi4 with ubuntu 22.04.
Since this morning, I lost connection to my one of my xiaomi bluetooth sensors (broken: LYWSDCGQ. Still connected: LYWSD03MMC) which I have used for a long time via the Passive BLE monitor integration (actually v9.2.0) installed via hacs.
That’s what I see in the log:
2022-08-25 11:44:10.085 ERROR (MainThread) [homeassistant.setup] Error during setup of component bluetooth
File "/usr/src/homeassistant/homeassistant/components/bluetooth/__init__.py", line 244, in async_setup
elif await _async_has_bluetooth_adapter():
File "/usr/src/homeassistant/homeassistant/components/bluetooth/__init__.py", line 224, in _async_has_bluetooth_adapter
return bool(await async_get_bluetooth_adapters())
File "/usr/src/homeassistant/homeassistant/components/bluetooth/util.py", line 19, in async_get_bluetooth_adapters
adapters = await get_bluetooth_adapters()
File "/usr/local/lib/python3.10/site-packages/bluetooth_adapters/__init__.py", line 35, in get_bluetooth_adapters
File "/usr/src/homeassistant/homeassistant/components/bluetooth/__init__.py", line 244, in async_setup
elif await _async_has_bluetooth_adapter():
File "/usr/src/homeassistant/homeassistant/components/bluetooth/__init__.py", line 224, in _async_has_bluetooth_adapter
return bool(await async_get_bluetooth_adapters())
File "/usr/src/homeassistant/homeassistant/components/bluetooth/util.py", line 19, in async_get_bluetooth_adapters
adapters = await get_bluetooth_adapters()
File "/usr/local/lib/python3.10/site-packages/bluetooth_adapters/__init__.py", line 35, in get_bluetooth_adapters
2022-08-25 11:48:34.638 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of default_config. Setup failed for dependencies: bluetooth
2022-08-25 11:48:34.641 ERROR (MainThread) [homeassistant.setup] Setup failed for default_config: (DependencyError(...), 'Could not setup dependencies: bluetooth')
In my configuration.yaml, I have:
default_config:
...
ble_monitor:
hci_interface: 0
discovery: True
active_scan: False
report_unknown: False
# batt_entities: True [DEPRECATED]
# rounding: True
decimals: 1
period: 60
log_spikes: False
use_median: False
restore_state: True
devices:
- mac: '4C:65:A8:DD:FF:D3' # Wohnzimmer Hygro: +1,5%
- mac: 'A4:C1:38:90:77:A5' # Schlafzimmer Hygro: -1%
encryption_key: 'da6fc7ea704fba43807a5259e54cf6ab'
# logger:
# default: warn
# logs:
# custom_components.ble_monitor: debug
I wonder, what causes the problem and how to debug and solve.
I think , I haven’t done a change in my setup.
(But: Updated some ubuntu packages after the break…)