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

Bluetooth light strip pairing fails with err 'PDU status was not success: Invalid request (6)' #76419

Closed
headblockhead opened this issue Aug 7, 2022 · 13 comments

Comments

@headblockhead
Copy link

headblockhead commented Aug 7, 2022

The problem

When pairing my LEDVANCE/OSRAM Flex CE Light strip over bluetooth, after inputting the pairing code the pair fails with the message 'This accessory is already paired to another device. Please reset the accessory and try again.' This device works fine when pairing to an IPhone and this behaviour can be replicated on multiple LED strips.

What version of Home Assistant Core has the issue?

core-2022.8.2

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Homekit Controller

Link to integration documentation on our website

https://www.home-assistant.io/integrations/homekit_controller

Diagnostics information

This diagnostics information was gathered from a different switch device ALREADY connected to Home Assistant. I'm not sure how much it can help.

config_entry-homekit_controller-822cb47f4450a53f0651fcb4284a18b7.json.txt

Example YAML snippet

No response

Anything in the logs that might be useful for us?

File "/usr/local/lib/python3.10/site-packages/aiohomekit/controller/ble/pairing.py", line 715, in _get_characteristics_while_connected
    data = await self._async_request_under_lock(OpCode.CHAR_READ, char)
  File "/usr/local/lib/python3.10/site-packages/aiohomekit/controller/ble/pairing.py", line 284, in _async_request_under_lock
    raise ValueError(
ValueError: Flex Ce (E6:DA:BE:C9:18:25): PDU status was not success: Invalid request (6)

Additional information

No response

@probot-home-assistant
Copy link

homekit_controller documentation
homekit_controller source
(message by IssueLinks)

@probot-home-assistant
Copy link

Hey there @Jc2k, @bdraco, mind taking a look at this issue as it has been labeled with an integration (homekit_controller) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)

@bdraco
Copy link
Member

bdraco commented Aug 7, 2022

I picked up one of the Flex SA C by LEDVANCE today and when I paired it, its missing a few services on linux, but works great when paired with mac. Something wrong with BlueZ likely here

@headblockhead
Copy link
Author

headblockhead commented Aug 7, 2022

Is this something that I would be able to fix by myself?

@bdraco
Copy link
Member

bdraco commented Aug 7, 2022

I have no idea why its missing yet. It seems to only happen on the LEDVANCE gear. I have an outlet with the same issue
Jc2k/aiohomekit#135

@headblockhead
Copy link
Author

Ok, I'll wait for more info.

@headblockhead
Copy link
Author

Any updates so far? @bdraco

@bdraco
Copy link
Member

bdraco commented Aug 11, 2022

@bdraco
Copy link
Member

bdraco commented Aug 11, 2022

I expect the probability that we can fix this is slim to none

@headblockhead
Copy link
Author

headblockhead commented Aug 11, 2022

That is a shame, I guess I should just buy some manual light strips and use ESP home instead!
Should I close this issue?

@bdraco
Copy link
Member

bdraco commented Aug 11, 2022

That is a shame, I guess I should just buy some manual light strips and use ESP home instead!

I've seen some users replace the controller with esphome or magic home with a home made pin adapter and use the existing strip

Should I close this issue?

We are tracking it it in aiohomekit so it's probably best to close this one and watch it there.

Any solution we come up with is unlikely to be accepted, and if it is it will likely take years to make it into the Linux distributions that ship bluez so looking for alternatives is the right approach for now.

@headblockhead
Copy link
Author

Ok, got it. Thanks for the help!

@headblockhead headblockhead closed this as not planned Won't fix, can't repro, duplicate, stale Aug 12, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Sep 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants