mirror of
https://github.com/syssi/esphome-votronic.git
synced 2025-07-23 04:23:02 +02:00
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
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:
committed by
GitHub
parent
67d70a72ea
commit
91a7913e8b
@@ -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}
|
||||
|
@@ -31,6 +31,8 @@ api:
|
||||
reboot_timeout: 0s
|
||||
|
||||
esp32_ble_tracker:
|
||||
scan_parameters:
|
||||
active: true
|
||||
on_ble_advertise:
|
||||
then:
|
||||
- lambda: |-
|
||||
|
Reference in New Issue
Block a user