First time configuring Home Assistant with ESPHome and bluetooth proxy

Good morning.

I am trying to set up ESPHome with Home Assistant, simply to use the Bluetooth Proxy with different thermometers in the house. Roughly speaking right now I have.

1 Server with TrueNAS Scale and the apps installed from TrueCharts.

Home Assistant installed and running on IP 192.168.1.200

ESPHome installed and running on IP 192.168.1.205

An ESP32 with ESPHome and Bluetooth Proxy installed, with this configuration:

esphome:
  name: bluetooth-proxy
  friendly_name: Bluetooth Proxy

esp32:
  board: esp32dev
  framework:
    type: esp-idf
    version: recommended
    # Custom sdkconfig options
    sdkconfig_options:
      COMPILER_OPTIMIZATION_SIZE: y
    # Advanced tweaking options
    advanced:
      ignore_efuse_mac_crc: false

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

logger:
  level: DEBUG

bluetooth_proxy:
  active: true

# Enable Home Assistant API
api:
  #port: 6053
  #encryption:
    #key: "hidden"

ota:
  password: "hidden"

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password
  # Optional manual IP
  manual_ip:
    static_ip: 192.168.1.202
    gateway: 192.168.1.1
    subnet: 255.255.255.0

  fast_connect: true

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

captive_portal:

Now, from ESPHome I can update the ESP32, but once installed, I go to Home Assistant, add the ESPHome integration and when I enter the IP address of the ESP32 it tells me that it cannot connect, that I check that the .yaml has the line “api:”

Obviously from the HA container I can ping both the ESPHome container and the ESP32 itself.

What am I doing wrong?

Not posting logs.

1 Like

I’d go the easy way. Just upload this firmware that’s associated with your board. There should be one that works with yours. Ready-Made Projects — ESPHome

Try removing window and interval settings, the ones you have are for wired, leaving them at default i.e. not configured is recommended for Wi-Fi.