Skip to content
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

6.3.0: Bluetooth commissioning is not available #808

Closed
olavt opened this issue Jul 17, 2024 · 8 comments
Closed

6.3.0: Bluetooth commissioning is not available #808

olavt opened this issue Jul 17, 2024 · 8 comments

Comments

@olavt
Copy link

olavt commented Jul 17, 2024

I tried to commission a Matter over Thread device using 6.3.0 and got this error:

Bluetooth commissioning is not available.

6.2.2 works fine.

@marcelveldt
Copy link
Contributor

You need to assign a bluetooth adapter when starting the server. Not sure if we also expose that to docker

@olavt
Copy link
Author

olavt commented Jul 17, 2024

Can you explain a bit more on how this is working and why behavior changed?

@olavt
Copy link
Author

olavt commented Jul 18, 2024

Shouldn't the new releases default to the 6.2.2 behavior if the new Bluetooth capabilities are not used / specified and not fail?

@agners
Copy link
Collaborator

agners commented Jul 18, 2024

Can you explain a bit more on how this is working and why behavior changed?

The behavior changed with #799.

To restore what the Server did before, just pass --bluetooth-adapter 0 to the container.

Shouldn't the new releases default to the 6.2.2 behavior if the new Bluetooth capabilities are not used / specified and not fail?

The problem is that, at least in the past, there were issues when Home Assistant and the Matter Server used the same adapter. So rather then default to adapter 0, currently Bluetooth is disabled so the user needs to make a conscious decision which adapter to use (and potentially disable on HA side).

@marcelveldt
Copy link
Contributor

Can you actually pass that to the container or do we need to add a environmental variable ?

@olavt
Copy link
Author

olavt commented Jul 21, 2024

Passing "--bluetooth-adapter 0" to the "docker run" command does not work.

It would be great if a feature could be added to support setting this option when running in a Docker container.

@agners
Copy link
Collaborator

agners commented Jul 22, 2024

I just checked, it works here. Make sure you pass the default command line (as in CMD of the Dockerfile) as well! So e.g.

    ...
    ghcr.io/home-assistant-libs/python-matter-server:stable --storage-path /data --paa-root-cert-dir /data/credentials --bluetooth-adapter 0

Also created a PR to clarify this in the readme, see #826.

@olavt
Copy link
Author

olavt commented Jul 22, 2024

Thanks! Adding the command options after the image name works!

@olavt olavt closed this as completed Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants