Not possible to remove pairing with a BLE accessory
See original GitHub issueCurrently it is not possible to remove a BLE pairing:
PYTHONPATH=. python3 homekit/unpair.py --log DEBUG -f ble.json -a DW1
This fails:
2019-01-11 06:40:16,366 ble_implementation.py:0292 DEBUG body: bytearray(b'\x06\x01\x01\x00\x01\x04\x01$066c8ca0-72ff-4e79-a2fd-be6ec86c77c6')
2019-01-11 06:40:16,371 ble_implementation.py:0299 DEBUG cipher and mac ade106a4434ab390d675d9033c18a0bd4f56a0a4a1e03d1f720e837fe83cd4ef9fe587c7c3c91aadfc91b31bd8f7de28db3a2bf4f32df84f91f12a6a16717dbd75
2019-01-11 06:40:16,371 ble_implementation.py:0302 DEBUG write resulted in: None
2019-01-11 06:40:17,373 ble_implementation.py:0309 DEBUG reading characteristic
Traceback (most recent call last):
File "homekit/unpair.py", line 44, in <module>
controller.remove_pairing(args.alias)
File "/home/jlusiardi/Dokumente/src/homekit_python/homekit/controller/controller.py", line 315, in remove_pairing
response = session.request(pair_remove_char, pair_remove_char_id, HapBleOpCodes.CHAR_WRITE, request_tlv)
File "/home/jlusiardi/Dokumente/src/homekit_python/homekit/controller/ble_implementation.py", line 312, in request
raise RuntimeError('Read failed')
RuntimeError: Read failed
The code starts roughly at https://github.com/jlusiardi/homekit_python/blob/add_bluetooth/homekit/controller/controller.py#L286
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Unpairing | Apple Developer Forums
Currently, the only way to unpair a Bluetooth accessory is by the user to manually "forget" it in Bluetooth Settings. This is a...
Read more >How to force remove a paired Bluetooth device from your iPhone
How to delete paired Bluetooth device from iPhone · Go to the Settings app and tap Bluetooth. · Tap the little info icon...
Read more >No option to remove Bluetooth device in iOS Settings app?
1) as a connected bluetooth device. Normally, I would go into my Settings -> Bluetooth and select the Info button (a small blue...
Read more >Delete Paired Bluetooth Connection - Android - Verizon
Bluetooth . Navigate: Settings. Bluetooth . Tap the appropriate device name or the. Settings icon. Gear (right). Tap 'Forget' or 'Unpair'.
Read more >iPhone 13/13 Pro: How to Disconnect/Forget a Bluetooth ...
Learn how you can disconnect or forget a bluetooth accessory on iPhone 13 / iPhone 13 Pro/Max Mini.Gears I use:iPhone 13 Pro: ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ok I guess I will integrate this tonight 😉 thanks.
checked the pair & unpair cycle for BLE and IP. Both work.