custom-components / ble_monitor

BLE monitor for passive BLE sensors
https://community.home-assistant.io/t/passive-ble-monitor-integration/
MIT License
1.9k stars 243 forks source link

Decryption MiBeacon V2/V3 advertisement failed: No encryption key found #383

Closed perseus177 closed 3 years ago

perseus177 commented 3 years ago

Version

Version HA core-2021.5.5
Passive BLE monitor integration 2.6.3
Installation Type Home Assistant Supervised
Development false
Supervisor true
Docker true
Virtual Environment false
Python Version 3.8.9
Operating System Family Linux
Operating System Version 5.10.17-v7l+
CPU Architecture armv7l
Timezone Europe/Prague

Devices 3 X LYWSDCGQ 1 X YM-K1501 RPI4

YAML Configuration

# Bluetooth Senzory
ble_monitor:
     active_scan: False
     batt_entities: True
     decimals: 2
     devices:
      - mac: 'MAC Address'
      - mac: 'MAC Address'
      - mac: 'MAC Address'
##################################### Kanvica      
      - mac: 'MAC Address'

Error in Log


This error originated from a custom integration.

Logger: custom_components.ble_monitor.ble_parser.xiaomi
Source: custom_components/ble_monitor/ble_parser/xiaomi.py:644
Integration: Passive BLE monitor (documentation, issues)
First occurred: 30. mája 2021, 20:59:08 (2 occurrences)
Last logged: 31. mája 2021, 23:44:43

Decryption MiBeacon V2/V3 advertisement failed: No encryption key found
Ernst79 commented 3 years ago

I think there is a yeelight BLE device (remote or dimmer) near your house, probably from the neighbours, that uses v2/v3 decryption. If all your sensors are working fine, you could disable the option discovery (set it to false). This will prevent discovery of new devices, but make sure you add all Mac addresses of sensors you do want to see.

If you have a yeelight remote or dimmer yourself, check the documentation from ble monitor on how to get the encryption key .

perseus177 commented 3 years ago

you have right it found my yeelight remote and also Mi Scale :D Thanks I will check documentation image

Ernst79 commented 3 years ago

MiScale and Yeelight remotes have been added recently.

Encryption key can be found with method 5 (easiest) or method 6 or 7.

https://github.com/custom-components/ble_monitor/blob/master/faq.md#how-to-get-the-mibeacon-v2v3-encryption-key

I'm closing the issue. let me know if you can't find the key.

TrongTQ1999 commented 2 years ago

Hi everyone, i wanna decrypt data sensor door 2. I have beaconkey but don't know how can decrypt data. Can you support me?

Ernst79 commented 2 years ago

Open ble monitor settings, select (or add) your MAC address at the devices option (at the bottom) and click submit. A new menu will open, where you can enter your encryption key.