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

Allow multiple MAC addresses for 'on_ble_advertise' filter (#4773)

This commit is contained in:
RoboMagus
2023-06-09 02:53:30 +02:00
committed by GitHub
parent 302dea4169
commit 5f0892dec4
3 changed files with 21 additions and 6 deletions

View File

@@ -488,6 +488,14 @@ binary_sensor:
esp32_ble_tracker:
on_ble_advertise:
- mac_address:
- AA:BB:CC:DD:EE:FF
- FF:EE:DD:CC:BB:AA
then:
# yamllint disable rule:line-length
- lambda: !lambda |-
ESP_LOGD("main", "The device address (%s) exists in list", x.address_str().c_str());
# yamllint enable rule:line-length
- mac_address: AC:37:43:77:5F:4C
then:
# yamllint disable rule:line-length