ESP32s Bluetooth Proxy not working (?)

I just re-flashed one of my esp32 and now seeing this in the logs:

[09:23:08][I][esp32_ble_client:064]: [0] [30:24:C4:00:03:11] 0x00 Attempting BLE connection
[09:23:08][D][esp-idf:000]: W (446492) BT_HCI: hcif disc complete: hdl 0x0, rsn 0x8

[09:23:08][D][esp-idf:000]: W (446499) BT_APPL: gattc_conn_cb: if=3 st=0 id=3 rsn=0x8

[09:23:08][D][esp-idf:000]: W (446501) BT_APPL: gattc_conn_cb: if=4 st=0 id=4 rsn=0x8

[09:23:08][D][esp-idf:000]: W (446502) BT_APPL: gattc_conn_cb: if=5 st=0 id=5 rsn=0x8

[09:23:08][W][esp32_ble_client:131]: [0] [] Connection failed, status=133

I assume this is an issue?

Is it “active: true” needed or advisable for xiaomi thermo/hygrometers only? I have currently disabled, but it still works… well, fine…

Esp-idf does a bit more logging. Some gatt errors are expected, and It’s only an issue if something is actually going wrong

I don’t think those devices need active scans

1 Like

Same problem- Flashed with esphome bluetooth proxy. Was able to add it to HA, but it doesn’t pick up any of my bluetooth devices. Tried deleting the device (as my Pi bluetooth was able to initially add the device) but the esp32 still will not recognize it.

Got the same issue, it cannot detect 2 Inkbird TH2 thermometers for some odd reason.

I am seeing similar things:

[14:52:14][C][logger:420]: Hardware UART: UART0
[14:52:14][C][bluetooth_proxy:088]: Bluetooth Proxy:
[14:52:14][C][bluetooth_proxy:089]: Active: YES
[14:52:14][C][esp32_ble:238]: ESP32 BLE:
[14:52:14][C][esp32_ble:240]: MAC address: A0:B7:65:DC:30:FE
[14:52:14][C][esp32_ble:241]: IO Capability: none
[14:52:14][C][esp32_ble_tracker:617]: BLE Tracker:
[14:52:14][C][esp32_ble_tracker:618]: Scan Duration: 300 s
[14:52:14][C][esp32_ble_tracker:619]: Scan Interval: 320.0 ms
[14:52:14][C][esp32_ble_tracker:620]: Scan Window: 30.0 ms
[14:52:14][C][esp32_ble_tracker:621]: Scan Type: ACTIVE
[14:52:14][C][esp32_ble_tracker:622]: Continuous Scanning: True

[14:52:23][V][esp32_ble:178]: (BLE) gap_event_handler - 3
[14:52:23][V][bluetooth_proxy:097]: [0] Free connection
[14:52:23][V][bluetooth_proxy:097]: [1] Free connection
[14:52:23][V][bluetooth_proxy:097]: [2] Free connection
[14:52:24][V][esp32_ble:178]: (BLE) gap_event_handler - 3
[14:52:24][V][bluetooth_proxy:058]: Proxying 1 packets
[14:52:24][V][esp32_ble:178]: (BLE) gap_event_handler - 3
[14:52:24][V][bluetooth_proxy:058]: Proxying 1 packets
[14:52:24][V][esp32_ble:178]: (BLE) gap_event_handler - 3
[14:52:24][V][bluetooth_proxy:058]: Proxying 1 packets
[14:52:24][V][esp32_ble:178]: (BLE) gap_event_handler - 3
[14:52:24][V][bluetooth_proxy:058]: Proxying 1 packets
[14:52:25][V][esp32_ble:178]: (BLE) gap_event_handler - 3
[14:52:25][V][bluetooth_proxy:058]: Proxying 1 packets
[14:52:25][V][esp32_ble:178]: (BLE) gap_event_handler - 3

And that is it, it does not find my Xiaomi Mi Temperature and Humidity Monitor 2 running this firmware: GitHub - atc1441/ATC_MiThermometer: Custom firmware for the Xiaomi Thermometer LYWSD03MMC and Telink Flasher via USB to Serial converter

These sensors works just fine with the same ESP32 module and Tasmota, but I would like play a bit with ESP home.