Xiaomi MIjia YEELOCK integration

Someone in that thread did this originally which was informed this integration. If you meant can you use the Bluetooth from the ESPHome (via HA) with this integration - the answer is yes.

Hi @codyc1515
YeeLock Pro

I currently using this lock but i unable to connect to this lock from Yeelock app i can scan and add the key but seem like the app cannot connect to the lock it always timed out, i figure it can be add to mi home with China region, so my guess the device region lockd, so if i use my Yeelock account which is outside of china since it require china phone number it cannot get the ble_sign_key so is there any other option to get ble_sign key for the lock ?
BTW the Yeelock BLE integration able to see and add the Lock but unable to control it
here is the log error


                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/bleak/__init__.py", line 615, in connect
    return await self._backend.connect(**kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/bleak/backends/bluezdbus/client.py", line 254, in connect
    assert_reply(reply)
  File "/usr/local/lib/python3.12/site-packages/bleak/backends/bluezdbus/utils.py", line 20, in assert_reply
    raise BleakDBusError(reply.error_name, reply.body)
bleak.exc.BleakDBusError: [org.bluez.Error.Failed] br-connection-canceled
2024-09-01 00:15:10.842 DEBUG (MainThread) [custom_components.yeelock.device] Connecting to 67:54:51:44:66:49
2024-09-01 00:15:19.611 DEBUG (MainThread) [custom_components.yeelock.config_flow] Starting bluetooth step
2024-09-01 00:15:20.080 DEBUG (MainThread) [custom_components.yeelock.device] Locking
2024-09-01 00:15:20.080 DEBUG (MainThread) [custom_components.yeelock.device] Sent transactional msg b'\x01Pf\xd3O\xa8\x02\xe6_\xbeA\nv\x9a!\x81CT\xb2\xdb'
2024-09-01 00:15:20.155 DEBUG (MainThread) [custom_components.yeelock.device] Received b'ff 42 66 d3 4f a8 cb 32 4b 5e bb 47 bb d1 96 0b 30 73 a3 db' from 58af3dca-6fc0-4fa3-9464-74662f043a3a (Handle: 37): Unknown
2024-09-01 00:15:20.156 ERROR (MainThread) [custom_components.yeelock.device] Invalid signing key
2024-09-01 00:15:20.156 DEBUG (MainThread) [custom_components.yeelock.device] Notified of jammed
2024-09-01 00:15:20.156 DEBUG (MainThread) [custom_components.yeelock.lock] Setting state to jammed
2024-09-01 00:15:22.709 DEBUG (MainThread) [custom_components.yeelock.device] Connecting to 43:38:7A:79:65:51
2024-09-01 00:15:32.716 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140393582347744] Unexpected exception

addtionaly the lock add directly add to the mihome app without the QR key, but currently xiaomi BLE integration doesn’t support lock

You may need to delete your device and try re-add it. It seems like the ble_sign_key is not valid for some reason.