Bluetooth raspberry pi 3 fails after some time and does not recover

Ok, I will stop for now. Thanks for your help and suggestions.

I used an old mobile and installed a bluetooth scanner. I can’t find my current mobile with this (and vice versa, as they are both motorola’s).
My mobile is picked up by other equipment (like headphones and Hue lights), but for some reason it is not visible in the scanner. Even with discovery active. Might be the same reason why RPi3 does not show it with a ‘bluetoothctl’ command.
My insight in the functioning of HA BT has increased, but I am lost in Motorola’s BT implementation.

I can’t manage what I can’t see.

Sorry to hear that you give up (at least for now).
I have to admit that the BT stack of the RPi 3 is crap.
It doesn’t detect my amazon echo dot
Or, sometimes, it is after a looooooong time (ran systemctl scan on for 2 days for it to show up)

I suspect people have too much metal in their cases for cooling which may affect BT range.

@Spiro: range was not the issue, I held the scanner next to my mobile. I suspect the BT implementation by Motorola has some items why the scanner does not pick it up as a BT, while other BT equipment can (still) pair with it.
But that is definitely beyond my knowledge and capabiltiy to figure out.

@Olivier1974: It is not the end, I will definitely try again when I have replaced my mobile (which might take a year or 2). I found out that HA (and smart home in general) is addictive. About 1,5 year ago, I had just 1 light to figure out HA for fun and wondered what else to do with it (and why). When I installed shutters, I also installed shelly switches for them and that brought on the fever. It is still no necessity, but it fun to play with.

Thanks again guys!

Apologies if this has been mentioned, is this the built-in BT on the RPi?

I wonder if this exhibits the same problem with a USB BT dongle.

For me, yes, it is the built in one.
I was using an ESPHome ESP32 explicitly as BT relay as HA was not BT friendly when I started.
Now that HA is BT friendly, I moved to the internal BT. But this is not reliable.

I believe it is the same internal BT of the Pi for @spijkers09, to confirm.

Nevertheless, the packages used internaly or by external dongles are the same: bluetooth pi-bluetooth and bluez (optional blueman if you’re using the desktop environment, which I dont)

internal BT for me as wel (RPi3)

Hello! I have a similar issue. I have updated OS from 7.6 to 9.4, and core to 2023.1.6 (don’t remember what version it was before an update). And my bluetooth integration has stopped working.
image
When I enable passive scanning then the error disappears, but bluetooth still doesn’t work.
bluetoothctl show returns power: no, any command like power on, scan on returns org.Bluez.Error.NotReady/Busy. I don’t know what’s going on, can’t find any idea to fix it. I also have RPi b+ with built-in bluetooth.

Same issue here, I have updated my Pi3 for Pi4 and it does not see my iPhone as well while my old setting on Rpi3 is still accurate. Did setup a ESP32 for the BT detection however get a lot of devices in HA as Known Devices.
Would like to know what the best solution would be or the best script in ESP32, still looking for it

And same issue here too. It satarted after updated core to version 2023.2.2. I use RPi 4 with built-in-bluetooth.

As I can’t mark as solution, I link mine here

As it is what I did, using the script here under as solution.

1 Like

Same with me. I have 2 HA instances one is Pi4 and BT works fine. But the one with Pi3 cannot start BT. Adapter is visible (like the image of LiLatee above) but cannot start in active mode. Did anyone figured this out.image

Stupid stuff but it’s works with HomeAssistant OS:

alias: Reboot HA / BTE FAIL
description: "Reboot Home Assistant if BLE Device is unavailable / Bad mitigation but ..."
trigger:
  - platform: state
    entity_id:
      - switch.bot_2a67
    to: unavailable
    for:
      hours: 0
      minutes: 10
      seconds: 0
condition: []
action:
  - device_id: 7279f21a0d22a8d09cf9792e69f13a1b
    domain: mobile_app
    type: notify
    message: Reboot HA
  - service: homeassistant.restart
    data: {}
    enabled: false
  - service: hassio.host_reboot
    data: {}
mode: single