Hi,
My HA container is in bridge mode and I would like if possible to keep it that way. But I’m having trouble to give it Bluetooth access on my Raspberry Pi 4.
The container can correctly see and use the Bluetooth adapters. I can use bluetoothctl list and bluetoothctl scan from within the HA, but HA says that no adapter is found. That’s what I don’t understand, because I can list all nearby device from the console but not from HA.
Here is my docker compose configuration:
homeassistant:
image: lscr.io/linuxserver/homeassistant:latest
container_name: homeassistant
#network_mode: host
privileged: true
cap_add:
- NET_ADMIN
- NET_RAW
- SYS_ADMIN
networks:
- services
#security_opt:
# - no-new-privileges:true
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TZ}
- UMASK=${UMASK}
volumes:
- ${CONFIG_FOLDER}/homeassistant:/config
- /run/dbus:/run/dbus:ro
#ports:
# - 8123:8123 #optional
devices:
- /dev/ttyAMA0:/dev/ttyAMA0
restart: unless-stopped
labels:
caddy: homeassistant.mydomain.com
caddy.reverse_proxy: homeassistant:8123
Could the bridge mode be the problem? What should I try to do? I couldn’t find any documentation with HA in bridge mode. Is there something I’m doing wrong in my configuration ? I find very strange that I can access bluetooth from HA container console but not from HA. I really want to find what’s wrong.
I’m stuck on this issue for months now, any answer is welcome.
Thanks in advance for any answer, have a great day.