-
-
Notifications
You must be signed in to change notification settings - Fork 30.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bluetooth component doesn't cope when the host doesn't have bluetooth #75706
Comments
I'm running Home Assistant container ( 2022.8.0b1 - but it also happened on b0) on top of Debian 11 with the privileged flag and Bluez installed on the host, so I should meet the pre-reqs listed HERE. I know the Bluetooth adapter is available in the container, but I get a similar error, shown below. Running a NUC6 using integrated Bluetooth adapter. Maybe that's the issue? Any other Bluetooth integration I test does work and can see the adapter. I made sure to disable all bluetooth integrations and restart Home Assistant prior to testing this integration. Here's the error:
This is what my integration page looks like: This is what I see when I click Configure: Docker Compose:
Result of Result of |
Fixed in #75941 |
Do I have the same issue? I have just updated from 2022.7.7 to 2022.8.1 and have the following in my logs:
I do not (believe I have) have any BT devices on my R-Pi |
Which RPi is it? Some, like the 4B, have Bluetooth built-in. |
Agh, yes it's a 4b - thanks for explaining that. What is my best course of action? If it helps, I am running HA Core on DietPi (light Debian image) but can change to Docker if necessary |
Honestly, if the Pi is dedicated to running Home Assistant, just install Home Assistant OS. It gets the most testing. |
Hi, It isn't. I am running other things (AdBlockPlus, Unbound). Do you think Docker is worth a shot? |
Depends on how well you know Docker, I guess. If you don't need Bluetooth, I'd look into disabling it completely via |
agh - good idea - thanks! |
Just checked - Bluetooth is already disabled. ...very odd, but I'll try docker. |
OK, posting for anyone else that has this issue. Turning my Pi's Bluetooth on (and restarting HA) fixes it. This is repeatable. Turning Bluetooth off brings the problem back. This is using HA Core running on a Pi-4b with DietPi OS. |
...and just for completion, HA works fine when running in Docker with my Pi's Bluetooth disabled. |
The problem
There doesn't seem to be a way to run Home Assistant (
dev
) on an instance without Bluetooth, ashomeassistant.components.bluetooth
throws an error ifbluetoothctl
isn't installed.I'm working in an WSL2 instance that has no access to Bluetooth. This then has cascading impact on the HomeKit Controller (which now depends on the bluetooth component).
What version of Home Assistant Core has the issue?
2022.8.0.dev0
What was the last working version of Home Assistant Core?
2022.7.6
What type of installation are you running?
Home Assistant Core
Integration causing the issue
No response
Link to integration documentation on our website
No response
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
No response
The text was updated successfully, but these errors were encountered: