Home Assistant docker container seeing Bluetooth device but unable to add it via integration

Hello,

I am running HA (core-2023.3.6) docker (compose) container on top of Ubuntu 22 LTS, on top of ESXI.

I have successfully passed the (supported Asus BT-500) Bluetooth USB module to my Ubuntu VM, from there I’ve made another pass-through using my docker-compose.yaml file to map the device according to the instructions from:

I used the HA container shell to lookup the device and using hciconfig and hcitool and the device is visible there, along with the correct MAC address. From the HA GUI, trying to add the Bluetooth integration spits out the “No unconfigured Bluetooth adapters found. There are 0 ignored adapters.” error message.

Are there any logs that I can provide which can bring light to this problem?

Thanks!

Additionally, running bluetoothctl gives me the following error:
Waiting to connect to bluetoothd…dbus[140]: arguments to dbus_connection_get_object_path_data() were incorrect, assertion “connection != NULL” failed in file dbus-connection.c line 5921

This is normally a bug in some applications using the D-Bus library.

The answer to my question is that I should learn how to read. I mounted
/run/dbus:/run/dbus:ro
In the wrong container. After mounting it in the correct one, everything worked smoothly.

That happens to me everyday. I have to keep saying slow down and triple check everything. I find less issues and less stress. But that is life as a hobbyist, tech integration, tech of all trades type people.

1 Like

Because I have the same problem. Can you tell me exactly how you did it

Sorry, I didn’t get you. What exactly do you need help with? In this comment, I simply explained that after mounting the dbus into the correct container, all went fine.

I had the same problem. I added the “/run/dbus:/run/dbus:ro” bit into my docker compose file as follows, and this works:

services:
  homeassistant:
    container_name: homeassistant
    image: "ghcr.io/home-assistant/home-assistant:stable"
    volumes:
      - /srv/dev-disk-by-uuid-3b614a3f-4a65-4480-876a-8a998e01ac9b/data/homeassistant:/config
      - /etc/localtime:/etc/localtime:ro
      - /run/dbus:/run/dbus:ro
    restart: unless-stopped
    privileged: true
    network_mode: host