Skip to content

Unable to obtain Switchbot Lock Pro encryption key #121698

Description

@DJOma

The problem

I own a Switchbot Lock Pro and am not able to set up the Bluetooth integration.
They config flow is not able to obtain the encryption key and ends with "Unknown error occurred"

The device is in range, as the bluetooth dongle lays right next to it.
I have no idea, what else to try.

I am using HAOS on proxmox.
Tried every possible way to get the bluetooth device to HAOS and it discovered the lock immediately but I just can not get the key.

What version of Home Assistant Core has the issue?

2024.07.1

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

switchbot

Link to integration documentation on our website

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

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

The protocol lists two entries.

`Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/bleak/backends/bluezdbus/client.py", line 214, in connect
    reply = await self._bus.call(
            ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/dbus_fast/aio/message_bus.py", line 385, in call
    await future
asyncio.exceptions.CancelledError`

And more likely the cause:

`C8-B3-56-XX-XX-XX (C8:B3:56:XX:XX:XX): device not found, no longer in range, or poor RSSI: -53
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/bleak/backends/bluezdbus/client.py", line 214, in connect
    reply = await self._bus.call(
            ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/dbus_fast/aio/message_bus.py", line 385, in call
    await future
asyncio.exceptions.CancelledError`

Additional information

No response

Metadata

Metadata

Type

No type

Fields

Priority

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions