Open brettp opened 2 years ago
Hi @OttoWinter - Thanks for the quick reply.
I tried installing to a fresh-out-of-the-box Atom Lite and am seeing the same thing. I'm able to connect and maintain a connection if I disable esp32_ble_tracker component.
I recently got a new Atom Lite and put 2021.9.x on it, and saw very bad WiFi connectivity issues once BLE tracker was enabled. Since I never used an older ESPHome release on it before, I did not have a reference point, and thought it could just be the ESP32 that was playing up. I have been using the same yaml config on other ESP32s (apart from the board config) for a while now, and know that they worked (apart from the OTA update issue that has been around for a while).
Now that I saw this issue report, I am thinking perhaps my issue is ESPHome related.
I don't know why this issue seemingly appeared out of nowhere, but I was able to resolve it on my Atom Lite by flashing an updated (but unofficial) CH552 firmware, as outlined here by @sohtamei: https://github.com/espressif/arduino-esp32/issues/2144#issuecomment-976084652
This requires creating a custom USB cable to put the CH552 into download mode, and seems to unfortunately break the ability to automatically switch the ESP32 into bootloader mode (meaning on the Atom Lite you have to push the side button twice, about 1 second apart when trying to flash), but I've had solid Wifi and BLE performance since.
NB: When flashing with WCHISPTool, be sure to keep the default pin for download mode as 3.6. The alternative pin (1.5) is not exposed via the cable on the Atom Lite and is a bit of a pain to use jumpers to pull to ground manually when powering on.
I'm having this same issue... I've read other forums suggesting moving to PlatformIO IDE but that hardly is possible when using esphome.. .any idea if this is fixable without creating custom cables etc.?
Ever since I changed my yaml to the following, I've not had any issues:
esp32:
board: m5stack-atom #or whatever you're using
framework:
type: esp-idf #arduino
The problem
After upgrading to 2021.9.2, all of my M5 Atom Lite devices have problems connecting to wifi with "Auth Expired" and "Association Expired" expired messages.
This persists for all board types I've tried, including m5stack-core-esp32 and node32s.
Which version of ESPHome has the issue?
2021.9.2
What type of installation are you using?
Home Assistant Add-on
Which version of Home Assistant has the issue?
core-2021.10.0
What platform are you using?
ESP32
Board
m5stack-core-esp32
Component causing the issue
esp32_ble_tracker, node32s
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
As indicated by the commented out lines, I've tried changing the BLE scan parameters, setting the power save mode, and specifying a static IP (both in the config and on my router) with no changes.