Lost connection to a Bluetooth devices

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 :innocent:, I haven’t done a change in my setup.

(But: Updated some ubuntu packages after the break…)

Strange enough: I press the connect button (as I did in the morning, too) several times again and the device reconnected and shows a new value. But than again, I does no updates.

I think I may have a similar issue.

My switchbot bot’s state isn’t updating in HA. However, I can use the switch.turn_on and switch.turn_off service to control it. I just can’t see the correct state in.

This happened within the last couple of days.

I’m running HA OS and wondered if the recent update was to blame.

Did the update to 2022.8.7.
I see the same errors in the log, but my sensor seems to work.

I’ve done the update to 2022.8.7.
I don’t have any errors in the log, but the state still doesn’t update.

I’ve raised this as an issue through Github.

1 Like

You might link the issue here?

1 Like