CCCPaste

Bluetooth Proxy / BLE Tracker ESPHome config

substitutions:
  name: "esp32-proxy-tracker-living-room"
  friendly_name: "Living Room Bluetooth Proxy / BLE Tracker"
  
  local_tdwlb_lcrppf_mac: !secret tdwlb_lcrppf_mac

esphome:
  name: ${name}
  friendly_name: ${friendly_name}

  name_add_mac_suffix: false

  min_version: 2025.7.0  # To support new sub-device features
  
  areas:
    - id: living_room_area
      name: "Living Room"

  platformio_options:
    board_build.f_flash: 40000000L
    board_build.flash_mode: dio
    board_build.flash_size: 4MB

esp32:
  board: esp32-s3-devkitc-1
  variant: esp32s3
  framework:
    type: esp-idf
    sdkconfig_options:
      CONFIG_BT_BLE_42_FEATURES_SUPPORTED: y
      CONFIG_BT_BLE_50_FEATURES_SUPPORTED: y

# Enable logging for debugging
logger:
  level: INFO

# Enable Home Assistant API
api:

# Enable Over-The-Air updates
ota:
  - platform: esphome
    password: !secret ota_password

# Allow WiFi provisioning via serial
improv_serial:

# WiFi configuration
wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password
  power_save_mode: light

captive_portal:

button:
  - platform: safe_mode
    id: safe_boot_button
    name: "Safe Mode Boot"

  - platform: factory_reset
    id: factory_rst_button
    name: "Factory Reset"

output:
  - platform: gpio
#   name: "Backlight Control"
    id: backlight
    pin: 7

switch:
  - platform: output
    name: "LCD Backlight"
    output: backlight


bluetooth_proxy:
  active: true

esp32_ble_tracker:
  scan_parameters:
    active: true
    interval: 320ms
    window: 30ms