home-assistant / operating-system

:beginner: Home Assistant Operating System
Apache License 2.0
5.09k stars 993 forks source link

SwitchBot and LD2410 BLE integrations stopped working after update #3148

Closed ptowalski closed 10 months ago

ptowalski commented 10 months ago

Describe the issue you are experiencing

My Bluetooth SwitchBot and LD2410 BLE integrations stopped working after this update. "Failed Setup, will retry!" My InkBird, Govee, ThermoPro and Oral-B Integrations still work. Enabling of logging for e.g. SwitchBot and manual reloading yields no additional insights.

What operating system image do you use?

rpi4-64 (Raspberry Pi 4/400 64-bit OS)

What version of Home Assistant Operating System is installed?

11.5

Did you upgrade the Operating System.

Yes

Steps to reproduce the issue

  1. Updated system from 11.4 to 11.5
  2. Reboot

Anything in the Supervisor logs that might be useful for us?

no

Anything in the Host logs that might be useful for us?

no

System information

System Information

version core-2024.1.6
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.11.6
os_name Linux
os_version 6.1.63-haos-raspi
arch aarch64
timezone Europe/Berlin
config_dir /config
Home Assistant Community Store GitHub API | ok -- | -- GitHub Content | ok GitHub Web | ok GitHub API Calls Remaining | 4860 Installed Version | 1.34.0 Stage | running Available Repositories | 1386 Downloaded Repositories | 4
Home Assistant Cloud logged_in | false -- | -- can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | ok
Home Assistant Supervisor host_os | Home Assistant OS 11.5 -- | -- update_channel | stable supervisor_version | supervisor-2024.01.1 agent_version | 1.6.0 docker_version | 24.0.7 disk_total | 234.0 GB disk_used | 16.2 GB healthy | true supported | true board | rpi4-64 supervisor_api | ok version_api | ok installed_addons | Terminal & SSH (9.8.1), SQLite Web (4.1.1), Samba share (12.2.0), Spotify Connect (0.13.0), File editor (5.7.0), Mosquitto broker (6.4.0), InfluxDB (5.0.0), VLC (0.3.0), Grafana (9.1.3)
Dashboards dashboards | 2 -- | -- resources | 1 views | 6 mode | storage
Recorder oldest_recorder_run | December 9, 2023 at 16:39 -- | -- current_recorder_run | February 5, 2024 at 19:05 estimated_db_size | 938.57 MiB database_engine | sqlite database_version | 3.41.2
Spotify api_endpoint_reachable | ok -- | --

Additional information

I restored a backup with 11.4 and the integrations worked fine again. If I switch back to the current version 11.5. they stop working.

sairon commented 10 months ago

Since nothing regards Bluetooth or Linux drivers changed between those two OS versions for Raspberry Pi targets, the problem is likely coincidental and caused just by the system restart. Host logs (and potentially Core logs for the Bluetooth integration) are needed for further investigation.

ptowalski commented 10 months ago

I tinkered around a bit futher... I downgraded via ha os update --version 11.4 then I shut down and power cycled the Raspi. Everything worked with 11.4 again like expected. Then I made an update to 11.5 over the webint to make sure that I can reproduce the error and it did not appear any more. Never had such a case before where bluetooth was partyl broken for some integrations and where it was consistent over backup/restore cycles.