Bluetooth With LXC? #598
Replies: 5 comments 9 replies
-
From what I'm finding BT devices don't passthru very well due to the way the Linux kernel is. HAos passed it through fine so idk. However, from what I've read BT devices register as network devices but don't have a name space...so they can't be passed through to LXCs. I'm finding that in trying to pass it through to Ubuntu is the exact same issue. I get the exact same error in my Ubuntu VM as I do the LXCs. It looks like I either have to choose BT and HAos or HA in a Container without BT. I'm quite enjoying not have the Supervisor and I don't have one BT device so 🤷 |
Beta Was this translation helpful? Give feedback.
-
@tteck what are the LXCs for HA built on? Is it Ubuntu or Debian? If it's Ubuntu any chance we can get a Debian version? Seems that Ubuntu is what is not playing nice with BT dongles. I had my AgentDVR and Deepstack in a Debian VM already and moved HA to that VM and passed the BT dongle through. Seems Debian has better support for these things. Debian in general seems like a more stable OS as is. Disregard if they are built on Debian because then it's a LXC issue as mentioned previously. |
Beta Was this translation helpful? Give feedback.
-
Maybe use a bluetooth proxy? |
Beta Was this translation helpful? Give feedback.
-
That was a suggestion on the HA forums too. I don't have any devs boards or the experience with them. I don't mind having HA inside the VM. I already have the VM running as AgentDVR is terrible inside an LXC. Adding HA to it didn't add much more overhead than the lxc was using. I installed a small GUI desktop that's probably using more than HA 😆 |
Beta Was this translation helpful? Give feedback.
-
hi, in 2024 i still having the same problem with the lxc homeassistant and bluetooth, any fix? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have tried this now with a couple of different BT a adapters. I am running the Home Assistant container LXC, the one with portainer. I successfully passed thru my USB devices by having it privileged. I am able to see all my USB sticks with lsusb. The HA container has access to them as the zigbee stick shows as a new integration. However the BT device doesn't show. It's not a docker/ha issue as the host lxc cannot start bluetoothctl.
I am able to successfully pass the BT devices to VMs fine and they work there. The host node can also access it. Seems that hci0 devices don't play well with the underlying os to the lxc...any ideas here? Is this an lxc issue, a debian issue...
I wonder if HA core would be better or the Podman version.
Does anyone have any ideas getting this BT device to properly work inside the LXC?
Beta Was this translation helpful? Give feedback.
All reactions