substitutions:
  name: esp32-bluetooth-proxy-bb4b84
  friendly_name: Bluetooth Proxy Garage
packages:
  esphome.bluetooth-proxy: github://esphome/bluetooth-proxies/esp32-generic/esp32-generic.yaml@main
esphome:
  name: ${name}
  name_add_mac_suffix: false
  friendly_name: ${friendly_name}
api:
  encryption:
    key: 0QWYS2snebtCGQCUxJiCSbRiSoKP1q57J80uCelH1xM=


wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

logger:
  level: DEBUG # This is critical to see the raw hex codes

esp32_ble_tracker:
  scan_parameters:
    active: true # We need active scanning to "see" the controller better

esp32_ble:
   max_connections: 4

ble_client:
  # - mac_address: D5:E9:5E:AF:FB:65
  #   id: vLinker_MC_IOS

  - mac_address: 80:F1:B2:B3:B6:48
    id: spider_farmer
    on_connect:
      then:
        - lambda: |-
            ESP_LOGD("custom", "Connected to Spider Farmer! Exploration starting...");
    # This part below is a 'sniffer' that will dump the services to logs
    on_passkey_request:
      - lambda: ESP_LOGD("custom", "Passkey requested");
# sensor:
#   # RSSI based on MAC address
#   - platform: ble_rssi
#     mac_address: D5:E9:5E:AF:FB:65
#     name: "VLinker MC IOS RSSI"

# binary_sensor:
#   - platform: ble_presence
#     mac_address: D5:E9:5E:AF:FB:65
#     name: "VLinker MC IOS Presence"


