Open ptr727 opened 2 weeks ago
Observation:
I had ruled out PSU due to testing three different PSU's (never an issue before using BT proxy), but it does seem that the PSU noise has a greater influences when using BT and WiFi on some devices with possibly inadequate power noise regulation?
I had been running the really early BT Proxy config... from when it was first announced... and updating to 2024.4.2 broke it... hadn't had an issue before with a ESP32-DEV board being powered off USB, hanging off a desk lamp. Tried swapping to the current config, and no change.
However, it seems like maybe it it is starting to fail, or there has been some timing changing which is causing it to brownout when both bluetooth and WiFi are started... as I swapped it with another ESP32-DEV, and that one is working. Adding capacitors to either VCC/3V3 made no change, but disabling the bluetooth-proxy did restore it to functioning :shrug: Pretty sure I had 2024.4.1 on it before.
However, it seems like maybe it it is starting to fail
Did you try fast_connect: true
to see if it made a difference?
The problem
TL;DR:
When using
framework: type: esp-idf
the ESP32 keeps disconnecting from HA unless usingwifi: fast_connect: true
.I discovered this problem when I wanted to use my first BT proxy.
I created a BT proxy using standard ESPHome devices BT proxy on a Screek BP1 ESP32.
The device kept on disconnecting / reconnecting from WiFi and / or HA.
I created a minimal configuration, no BT proxy, and through experimentation I found that:
framework: type: arduino
, or not specifyingframework
, the device works fine.framework: type: esp-idf
the ESP32 keeps disconnecting from HA.framework: type: esp-idf
andwifi: power_save_mode: none
, the device works fine.wifi: power_save_mode: none
is incompatible with BT proxies.framework: type: esp-idf
andwifi: fast_connect: true
, the device works fine.wifi: fast_connect: true
is undesirable as I have several AP's.Note: I run Ubiquity UniFi network equipment, including several Unifi v6 AP's and lots of devices, including several ESPHome devices that use the default Arduino framework, without any issues.
I verified that using
framework: type: esp-idf
andwifi: fast_connect: true
andesp32_ble_tracker
andbluetooth_proxy
works.Which version of ESPHome has the issue?
2024.4.2
What type of installation are you using?
Docker
Which version of Home Assistant has the issue?
2024.4.4
What platform are you using?
ESP32-IDF
Board
Screek Bluetooth Proxy BP1
Component causing the issue
esp-idf
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
No response