Bluetooth in ubuntu 18.04 docker container

So today I needed to power down the electricity to do some work. I turned the power back on and when I went into HA and I was surprised to be greeted with a notification the the Bluetooth adapter was found and whether I wanted to configure it. Had to double check that the container didn’t have the privileged flag set.

I think this is down to me running commands on the host and the Bluetooth adapter then being locked to that host so wasn’t accessible to the container. I suspect I probably just needed to do something to release the adapter (I did think I had restarted all the bluetooth stuff) but if anyone else comes across this and has ran out of things to try then restarting to clear everything out might solve it…

This fixed my issue on a Raspberry Pi 4. HA could see my BLE device but would not setup/connect. It connected and worked without issue after installing dbus-broker.