Disable active BLE scans to save some power and RF pollution (#54)
Some checks failed
CI / yamllint (push) Has been cancelled
CI / lint-clang-format (push) Has been cancelled
CI / lint-clang-tidy (push) Has been cancelled
CI / lint-python (push) Has been cancelled
CI / esphome-config (push) Has been cancelled
CI / esphome-compile (push) Has been cancelled

This commit is contained in:
Sebastian Muszynski
2024-10-21 13:57:14 +02:00
committed by GitHub
parent 67d70a72ea
commit 91a7913e8b
2 changed files with 4 additions and 13 deletions

View File

@@ -45,19 +45,8 @@ esp32_ble:
io_capability: keyboard_only
esp32_ble_tracker:
on_ble_advertise:
then:
- lambda: |-
if (x.get_name().rfind("votronic", 0) == 0) {
ESP_LOGI("ble_adv", "New Votronic BLE controller found");
ESP_LOGI("ble_adv", " Name: %s", x.get_name().c_str());
ESP_LOGI("ble_adv", " MAC address: %s", x.address_str().c_str());
ESP_LOGD("ble_adv", " Advertised service UUIDs:");
for (auto uuid : x.get_service_uuids()) {
ESP_LOGD("ble_adv", " - %s", uuid.to_string().c_str());
}
}
scan_parameters:
active: false
ble_client:
- mac_address: ${mac_address}

View File

@@ -31,6 +31,8 @@ api:
reboot_timeout: 0s
esp32_ble_tracker:
scan_parameters:
active: true
on_ble_advertise:
then:
- lambda: |-