From 29baa6c80806f2a9680e1d8c30bb02f44315db1f Mon Sep 17 00:00:00 2001 From: Edward Firmo <94725493+edwardtfn@users.noreply.github.com> Date: Mon, 22 Apr 2024 11:07:33 +0200 Subject: [PATCH] Create nspanel_esphome_addon_ble_tracker.yaml --- .../nspanel_esphome_addon_ble_tracker.yaml | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 esphome/nspanel_esphome_addon_ble_tracker.yaml diff --git a/esphome/nspanel_esphome_addon_ble_tracker.yaml b/esphome/nspanel_esphome_addon_ble_tracker.yaml new file mode 100644 index 0000000..e984fab --- /dev/null +++ b/esphome/nspanel_esphome_addon_ble_tracker.yaml @@ -0,0 +1,36 @@ +##################################################################################################### +##### NSPANEL ESPHOME created by Blackymas - https://github.com/Blackymas/NSPanel_HA_Blueprint ##### +##### ESPHome Add-on for BLE Tracker ##### +##### PLEASE only make changes if it is necessary and also the required knowledge is available. ##### +##### For normal use with the Blueprint, no changes are necessary. ##### +##################################################################################################### +##### ATTENTION: This will add climate elements to the core system and requires the core part. ##### +##################################################################################################### +--- + +# Enable Bluetooth tracker +esp32_ble_tracker: + id: ble_tracker + +esphome: + platformio_options: + build_flags: + - -D NSPANEL_HA_BLUEPRINT_ADDON_BLE_TRACKER + +script: + - id: !extend dump_config + then: + - lambda: |- + // Check if this is installed with Arduino + #ifdef USE_ARDUINO + #error "Invalid settings for add-on BLE Tracker. Arduino framework is not supported when using Bluetooth in this project." + #endif + if (!id(is_uploading_tft)) { + static const char *const TAG = "nspanel_ha_blueprint"; + ESP_LOGCONFIG(TAG, "Add-on BLE Tracker"); + } + +# Set Wi-Fi power save mode to "LIGHT" as required for Bluetooth on ESP32 +wifi: + power_save_mode: LIGHT +...