Files
esphome/tests/components/exposure_notifications/common.yaml
T

13 lines
417 B
YAML

esp32_ble_tracker:
id: ble_tracker_hub
exposure_notifications:
on_exposure_notification:
# Explicit ble_hub_id: pins the neutral binding as a declared key.
ble_hub_id: ble_tracker_hub
then:
- lambda: |
ESP_LOGD("main", "Got notification:");
ESP_LOGD("main", " RPI: %s", format_hex(x.rolling_proximity_identifier).c_str());
ESP_LOGD("main", " RSSI: %d", x.rssi);