Did someone manage to get ble_monitor running on rootless docker or podman? Now as the hass core installation has been deprecated, I have to switch to the container version. The bluetooth integration is working after using --userns=keep-id with podman or using the custom integration from Bluetooth and Docker (part 2) - #16 by smaeul with docker. With docker ble_monitor doesn’t list the adapter and with podman I keep getting HCIdump thread: Something wrong - interface hci0 not ready, and will be skipped for current scan period. although I use --cap-add=NET_RAW --cap-add=NET_ADMIN or --privileged and --net=host and even set caps inside the container. It only works when running the container as root.
I guess it has something to do with socket permissions as the deprecated hcitool lescan (Set scan parameters failed: Operation not permitted) also doesn’t work inside the container while bluetoothctl scan le works. Both hcitool and aioblescan which are using a socket (AF_BLUETOOTH, SOCK_RAW, BTPROTO_HCI), work on the host when using setcap "cap_net_admin,cap_net_raw=eip". Otherwise aioblescan just doesn’t output anything which is leading to ble_monitor’s error I guess?