1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-30 06:33:51 +00:00

Add support for BLE passkey authentication (#4258)

Co-authored-by: Branden Cash <203336+ammmze@users.noreply.github.com>
This commit is contained in:
Mat931
2023-05-01 21:25:10 +00:00
committed by GitHub
parent c97d361b6c
commit 1c4af08ed3
7 changed files with 312 additions and 5 deletions

View File

@@ -294,6 +294,9 @@ wled:
adalight:
esp32_ble:
io_capability: keyboard_only
esp32_ble_tracker:
ble_client:
@@ -307,6 +310,19 @@ ble_client:
on_disconnect:
then:
- switch.turn_on: ble1_status
on_passkey_request:
then:
- ble_client.passkey_reply:
id: ble_blah
passkey: 123456
on_passkey_notification:
then:
- logger.log: "Passkey notification received"
on_numeric_comparison_request:
then:
- ble_client.numeric_comparison_reply:
id: ble_blah
accept: True
- mac_address: C4:4F:33:11:22:33
id: my_bedjet_ble_client
bedjet: