'New Device

 

esphome:
  name: bt-proxy
  friendly_name: bt-proxy

esp32:
  board: esp32dev
  framework:
    type: arduino

# Enable logging
logger:

# Enable Home Assistant API
api:
  encryption:
    key: "r3yWlwWBAHKsLMcVpR3+QF96f0towDMBgf/dJsiiEsI="

ota:
  password: "f20bb82d925ff5c2e3f2517008297f6f"

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

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Bt-Proxy Fallback Hotspot"
    password: "BUU53kEn0gW5"

captive_portal:

 

The lines below added to the end of the ESP configuration are all you need to turn your ESP32 into a Bluetooth proxy.

esp32_ble_tracker:
  scan_parameters:
    interval: 1100ms
    window: 1100ms
    active: true

bluetooth_proxy:
  active: true

Note

For WiFi-based proxies, changing the interval or window from their default values may result in an unstable WiFi connection. Using the default values for interval and window will usually resolve any instability.

 

The entire section with those values is specifically for using a board with an Ethernet connection (and is why it has YAML for changing the default values).

 

Guide

Instructions for setting up the Bluetooth Proxy in ESPHome

https://esphome.io/components/bluetooth_proxy.html

 

Useful links

https://techbits.io/bluetooth-proxy-home-assistant/#using-esphome-web

Comments


Comments are closed