#So we should update and change our

1 messages · Page 1 of 1 (latest)

cerulean widget
#

I had an ESP32 doing ONLY BTProxy and it was working, then a couple of months ago I put an ESP32 in an IKEA Air Quality monitor so it could do double-duty, but the BTProxy doesn't appear to be working.

real ember
#
substitutions:
  name: master-bt-proxy
packages:
  esphome.bluetooth-proxy: github://esphome/bluetooth-proxies/esp32-generic.yaml@main
esphome:
  name_add_mac_suffix: false

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password
#  fast_connect: true

api:```
cerulean widget
#

I just plugged my old BTProxy in and am trying it now.

real ember
#

that's what i am using on mine

#

i had fast_connect on cuz i was using a hidden IoT SSID and it wouldnt connect without it but decided to unhide the ssid cuz with fast_connect it just chooses w/e the first AP it sees is instead of scanning for the closest/strongest

cerulean widget
#

Just confirmed the old one is still working, so now I gotta figure out why the new one is not.

#

old:

  name: "bt-proxy-01"
packages:
  esphome.bluetooth-proxy: github://esphome/bluetooth-proxies/esp32-generic.yaml@main
esphome:
  name: ${name}
  name_add_mac_suffix: false


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

esp32_ble_tracker:

bluetooth_proxy:
  active: true```
#

New:

  name: air-quality-03
esphome:
  name: ${name}
  name_add_mac_suffix: false
  
esp32:
  board: esp32dev
  framework:
    type: arduino

# Enable logging
logger:

# Enable Home Assistant API
api:
  encryption:
    key: "redacted"

ota:
  password: "redacted"

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

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Air-Quality-03 Fallback Hotspot"
    password: "redacted"

captive_portal:

uart:
  rx_pin: GPIO17
  baud_rate: 9600

sensor:
  - platform: pm1006
    pm_2_5:
      name: "${name} Particulate Matter 2.5µm Concentration"
packages:
  esphome.bluetooth-proxy: github://esphome/bluetooth-proxies/esp32-generic.yaml@main
real ember
#

randomized keys?

#

or you accidentally leaking

cerulean widget
#

The encryption key?

real ember
#

password and keys there

cerulean widget
#

No, I just dont' care if you see that, that key is literally so that one device can connect to HA

#

And the fallback hotspot? don't care about that either

real ember
#

i think we can just use what it's filling in with the url

cerulean widget
#

There, fixed. I'm confident that was not a real security leak though

#

Now, to trouble shoot the combo device

real ember
#
esp32_ble_tracker:
  scan_parameters:
    interval: 1100ms
    window: 1100ms
    active: true

bluetooth_proxy:
  active: true```
#

might just need that

cerulean widget
#

The logs show:

[11:51:30][C][esp32_ble_tracker:584]:   Scan Duration: 300 s
[11:51:30][C][esp32_ble_tracker:585]:   Scan Interval: 1100.0 ms
[11:51:30][C][esp32_ble_tracker:586]:   Scan Window: 1100.0 ms
[11:51:30][C][esp32_ble_tracker:587]:   Scan Type: ACTIVE
[11:51:30][C][esp32_ble_tracker:588]:   Continuous Scanning: True
#

oh, that's tracker stuff

#

hang on

cerulean widget
real ember
#

Yea lol

#

Prob better if we just ask in the esphome discord

cerulean widget
#

Exactly what I was thinking.

real ember
#

I’m gonna nap you do it

cerulean widget
#

Well, I did some mucking around, I removed the sensor information, compiled and installed it and BT Proxy was working.

Then I uncommented the sensor stuff, compiled and installed again, and now the sensor and the proxy work

#
  name: air-quality-03
esphome:
  name: ${name}
  name_add_mac_suffix: false
 
esp32:
  board: esp32dev
  framework:
    type: arduino

# Enable logging
logger:

# Enable Home Assistant API
api:
  encryption:
    key: "redacted"

ota:
  password: "redacted"

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

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Air-Quality-03 Fallback Hotspot"
    password: "redacted"

captive_portal:

packages:
  esphome.bluetooth-proxy: github://esphome/bluetooth-proxies/esp32-generic.yaml@main

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

bluetooth_proxy:
  active: True

# Sensor stuff from here on
uart:
  rx_pin: GPIO17
  baud_rate: 9600

sensor:
  - platform: pm1006
    pm_2_5:
      name: "${name} Particulate Matter 2.5µm Concentration"```
real ember
#

You asked the wrong question in the esphome discord man

#

Seems our answer is all we need are the two lines Bluetooth proxy and active

#

I’m not even sure if we need the BLE tracker bit

cerulean widget
#

The Bluetooth proxy depends on ESP32 Bluetooth Low Energy Tracker Hub so make sure to add that to your configuration.