Raspbian Bookworm
HA Core 2924.9.3
Frontend 20240909.1
Switchbot Integration (not sure how to get the version)
Pi Model 3B (yes old but perfectly suitable for running HA - apart from BLE!)
Rather frustrating this,
I have a number of Switchbot BLE Meter Plus devices that keep going offline/disabled in HA yet they are still working and can be detected by my Windows 10 PC and read using SW so the issue is Power supply, Pi hardware, Raspbian, bluetooth, HA or Switchbot integration. I have no idea where to start.
So when I power on the Pi, all is fine. After a couple of days maybe a day, the devices go “offline” in HA in that they are available but not being updated, disable, or both.
My competence is limited, but I have figured out that I can use the command line for lmited debug…
If I run hcitool -i hci0 lescan I get an inpout/output error
If I run hciconfig hci0 down then hciconfig hci up then hcitool -i hci0 lescan then I see the list of MAC addresses, some of the sensors in HA come back online although some of those are disabled and I have to reenable them in the integration. The system now works, for day or two, then I have to repeat.
Can I automate this up/down every day to reset bluetooth, or better, is it possible to work out what is going on and fix the root cause?
1 post - 1 participant