Not sure why it didn’t work manually just adding bluetooth_proxy as it says in the instructions but I created a new one directly ESPHome Bluetooth Proxy and that worked, detected the switchbot curtains right after
I only see one connection made to Home Assistant within a minute of uploading new code to the the ESP.
Yours seems to be continually disconnecting/reconnecting, and the Safe Mode switch entries in the logbook confirm that. Do you have VERY_VERBOSE logging enabled? That might shed some light on what’s happening. I’d suspect either poor WiFi signal strength or a problem with the ESP itself.
Something was up with HA server.
After a restart it is all stable, the esp and the curtains have stayed connected.
I have read about this somewhere here that it works for some time and then need to restart HA to get it to work again but so far so good
im also trying to get the curtains working via proxy. I can see in the verbose logs packets are being proxied but when clicking on the curtain the logs for the esphome proxy say:
[21:01:42][I][esp32_ble_client:058]: Attempting BLE connection to e3:f5:18:1f:f5:3c
[21:01:42][V][esp32_ble_client:123]: [e3:f5:18:1f:f5:3c] ESP_GATTC_DISCONNECT_EVT, reason 62
[21:01:42][V][esp32_ble_client:086]: [00:00:00:00:00:00] ESP_GATTC_OPEN_EVT
[21:01:42][W][esp32_ble_client:089]: connect to 00:00:00:00:00:00 failed, status=133
How did you create the create the BT proxy a blank esp32 via ESPHome Bluetooth Proxy or did you just add the bluetooth_proxy: to a new/existing device?
BT proxy didn’t work for me when I added it manually but works ok when creating it via github link.
i used the website. looks like it sometimes works but mostly fails to connect to device. overall, the proxy function seems to work as HA can tell the proxy device to find the curtain and open it but its the actual command from the proxy to the curtain that’s a hit or miss