-
-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Description
I am trying to implement a BTHome sensor with encryption, but I am unable to add it to Home Assistant. The binding key is always rejected with an error "Decryption failed".
I also tried with the example data from https://bthome.io/encryption/, using the binding key "231d39c1d7cc1ab1aee224cd096db932" in Home Assistant, but still no luck.
Can you tell me what I am doing wrong?
Here is the debug log:
2025-12-29 15:20:23.517 DEBUG (MainThread) [bthome_ble.parser] Parsing BTHome BLE advertisement data: <BluetoothServiceInfoBleak name=UV address=54:48:E6:8F:80:A5 rssi=-70 manufacturer_data={} service_data={'0000fcd2-0000-1000-8000-00805f9b34fb': b'A\xa4rf\xc9_s3"\x11\x00x#r\x14'} service_uuids=['0000fcd2-0000-1000-8000-00805f9b34fb'] source=2C:CF:67:D9:37:36 connectable=True time=21939.194714709 tx_power=None raw=None>
2025-12-29 15:20:23.517 DEBUG (MainThread) [bthome_ble.parser] UV 80A5: Encryption key not set and adv is encrypted
2025-12-29 15:20:26.726 DEBUG (MainThread) [bthome_ble.parser] Parsing BTHome BLE advertisement data: <BluetoothServiceInfoBleak name=UV address=54:48:E6:8F:80:A5 rssi=-70 manufacturer_data={} service_data={'0000fcd2-0000-1000-8000-00805f9b34fb': b'A\xa4rf\xc9_s3"\x11\x00x#r\x14'} service_uuids=['0000fcd2-0000-1000-8000-00805f9b34fb'] source=2C:CF:67:D9:37:36 connectable=True time=21939.194714709 tx_power=None raw=None>
2025-12-29 15:20:26.726 WARNING (MainThread) [bthome_ble.parser] UV 80A5: Decryption failed:
2025-12-29 15:20:26.726 DEBUG (MainThread) [bthome_ble.parser] UV 80A5: mic: 78237214
2025-12-29 15:20:26.727 DEBUG (MainThread) [bthome_ble.parser] UV 80A5: nonce: 5448e68f80a5d2fc4133221100
2025-12-29 15:20:26.727 DEBUG (MainThread) [bthome_ble.parser] UV 80A5: encrypted_payload: a47266c95f73
Home Assistant version is 2025.12.4.
Best regards,
Emmanuel
Metadata
Metadata
Assignees
Labels
No labels