esphome / issues

Issue Tracker for ESPHome
https://esphome.io/
294 stars 37 forks source link

WLAN connection not possible #2693

Closed minimag450 closed 2 years ago

minimag450 commented 3 years ago

The problem

Since the last update, the WLAN connection from a programmed ESP8266 nodemcu (I also tried different D1, ESP8266 and ESP32) does not work anymore. I have a very simple sketch to try. Once I entered only the FRITZBox 7490, once only the FRITZ!Box 3390 in the sketch, no connection to the WLAN there either. In the log you can see that the 7490 is found, the 3390 is sometimes not found. And then the 7490 is gone. If I press the reset button on the D1, then it finds the 7490, tries to log in 2 times and then no longer finds it. There are also no failed login attempts in the 7490. Translated with www.DeepL.com/Translator (free version)

Which version of ESPHome has the issue?

2021.10.3

What type of installation are you using?

Home Assistant Add-on

Which version of Home Assistant has the issue?

2021.11.0

What platform are you using?

ESP8266

Board

nodemcu, D1 mini

Component causing the issue

none

Example YAML snippet

esphome:
  name: test1a
  platform: ESP8266
  board: nodemcuv2

# Enable logging
logger:

# Enable Home Assistant API
api:

ota:
  password: "73857115a105b5a4f92eb74b7431d8fd"

wifi:
  ssid: "FRITZ!Box 7490"
  password:"mypassword"

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Test1A Fallback Hotspot"
    password: "QWekGR2hqcGx"

captive_portal:

Anything in the logs that might be useful for us?

INFO Reading configuration /config/esphome/test1a.yaml...
INFO Generating C++ source...
INFO Compiling app...
Processing test1a (board: nodemcuv2; framework: arduino; platform: platformio/espressif8266 @ 2.6.3)
--------------------------------------------------------------------------------
HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash
Dependency Graph
|-- <ESPAsyncTCP-esphome> 1.2.3
|   |-- <ESP8266WiFi> 1.0
|-- <ESPAsyncWebServer-esphome> 2.0.0
|   |-- <ESPAsyncTCP-esphome> 1.2.3
|   |   |-- <ESP8266WiFi> 1.0
|   |-- <Hash> 1.0
|   |-- <ESP8266WiFi> 1.0
|-- <ESP8266WiFi> 1.0
|-- <ESP8266mDNS> 1.2
|   |-- <ESP8266WiFi> 1.0
|-- <noise-c> 0.1.4
|   |-- <libsodium> 1.10018.1
|-- <DNSServer> 1.1.1
|   |-- <ESP8266WiFi> 1.0
Compiling /data/test1a/.pioenvs/test1a/src/esphome/components/api/api_connection.cpp.o
Compiling /data/test1a/.pioenvs/test1a/src/esphome/components/api/api_frame_helper.cpp.o
Compiling /data/test1a/.pioenvs/test1a/src/esphome/components/api/api_pb2.cpp.o
Compiling /data/test1a/.pioenvs/test1a/src/esphome/components/api/api_pb2_service.cpp.o
Compiling /data/test1a/.pioenvs/test1a/src/esphome/components/api/api_server.cpp.o
Compiling /data/test1a/.pioenvs/test1a/src/esphome/components/api/list_entities.cpp.o
Compiling /data/test1a/.pioenvs/test1a/src/esphome/components/api/proto.cpp.o
Compiling /data/test1a/.pioenvs/test1a/src/esphome/components/api/subscribe_state.cpp.o
Compiling /data/test1a/.pioenvs/test1a/src/esphome/components/api/user_services.cpp.o
Compiling /data/test1a/.pioenvs/test1a/src/esphome/components/api/util.cpp.o
Compiling /data/test1a/.pioenvs/test1a/src/esphome/components/captive_portal/captive_portal.cpp.o
Compiling /data/test1a/.pioenvs/test1a/src/esphome/components/esp8266/core.cpp.o
Compiling /data/test1a/.pioenvs/test1a/src/esphome/components/esp8266/gpio.cpp.o
Compiling /data/test1a/.pioenvs/test1a/src/esphome/components/esp8266/preferences.cpp.o
Compiling /data/test1a/.pioenvs/test1a/src/esphome/components/logger/logger.cpp.o
Compiling /data/test1a/.pioenvs/test1a/src/esphome/components/md5/md5.cpp.o
Compiling /data/test1a/.pioenvs/test1a/src/esphome/components/mdns/mdns_component.cpp.o
Compiling /data/test1a/.pioenvs/test1a/src/esphome/components/mdns/mdns_esp32_arduino.cpp.o
Compiling /data/test1a/.pioenvs/test1a/src/esphome/components/mdns/mdns_esp8266.cpp.o
Compiling /data/test1a/.pioenvs/test1a/src/esphome/components/mdns/mdns_esp_idf.cpp.o
Compiling /data/test1a/.pioenvs/test1a/src/esphome/components/network/util.cpp.o
Compiling /data/test1a/.pioenvs/test1a/src/esphome/components/ota/ota_backend_arduino_esp32.cpp.o
Compiling /data/test1a/.pioenvs/test1a/src/esphome/components/ota/ota_backend_arduino_esp8266.cpp.o
Compiling /data/test1a/.pioenvs/test1a/src/esphome/components/ota/ota_backend_esp_idf.cpp.o
Compiling /data/test1a/.pioenvs/test1a/src/esphome/components/ota/ota_component.cpp.o
Compiling /data/test1a/.pioenvs/test1a/src/esphome/components/socket/bsd_sockets_impl.cpp.o
Compiling /data/test1a/.pioenvs/test1a/src/esphome/components/socket/lwip_raw_tcp_impl.cpp.o
Compiling /data/test1a/.pioenvs/test1a/src/esphome/components/web_server_base/web_server_base.cpp.o
Compiling /data/test1a/.pioenvs/test1a/src/esphome/components/wifi/wifi_component.cpp.o
Compiling /data/test1a/.pioenvs/test1a/src/esphome/components/wifi/wifi_component_esp32_arduino.cpp.o
Compiling /data/test1a/.pioenvs/test1a/src/esphome/components/wifi/wifi_component_esp8266.cpp.o
Compiling /data/test1a/.pioenvs/test1a/src/esphome/components/wifi/wifi_component_esp_idf.cpp.o
Compiling /data/test1a/.pioenvs/test1a/src/esphome/core/application.cpp.o
Compiling /data/test1a/.pioenvs/test1a/src/esphome/core/color.cpp.o
Compiling /data/test1a/.pioenvs/test1a/src/esphome/core/component.cpp.o
Compiling /data/test1a/.pioenvs/test1a/src/esphome/core/controller.cpp.o
Compiling /data/test1a/.pioenvs/test1a/src/esphome/core/entity_base.cpp.o
Compiling /data/test1a/.pioenvs/test1a/src/esphome/core/helpers.cpp.o
Compiling /data/test1a/.pioenvs/test1a/src/esphome/core/log.cpp.o
Compiling /data/test1a/.pioenvs/test1a/src/esphome/core/scheduler.cpp.o
Compiling /data/test1a/.pioenvs/test1a/src/esphome/core/util.cpp.o
Compiling /data/test1a/.pioenvs/test1a/src/main.cpp.o
Generating LD script /data/test1a/.pioenvs/test1a/ld/local.eagle.app.v6.common.ld
Compiling /data/test1a/.pioenvs/test1a/lib67b/ESP8266WiFi/BearSSLHelpers.cpp.o
Compiling /data/test1a/.pioenvs/test1a/lib67b/ESP8266WiFi/CertStoreBearSSL.cpp.o
Compiling /data/test1a/.pioenvs/test1a/lib67b/ESP8266WiFi/ESP8266WiFi.cpp.o
Compiling /data/test1a/.pioenvs/test1a/lib67b/ESP8266WiFi/ESP8266WiFiAP.cpp.o
Compiling /data/test1a/.pioenvs/test1a/lib67b/ESP8266WiFi/ESP8266WiFiGeneric.cpp.o
Compiling /data/test1a/.pioenvs/test1a/lib67b/ESP8266WiFi/ESP8266WiFiGratuitous.cpp.o
Compiling /data/test1a/.pioenvs/test1a/lib67b/ESP8266WiFi/ESP8266WiFiMulti.cpp.o
Compiling /data/test1a/.pioenvs/test1a/lib67b/ESP8266WiFi/ESP8266WiFiSTA-WPS.cpp.o
Compiling /data/test1a/.pioenvs/test1a/lib67b/ESP8266WiFi/ESP8266WiFiSTA.cpp.o
Compiling /data/test1a/.pioenvs/test1a/lib67b/ESP8266WiFi/ESP8266WiFiScan.cpp.o
Compiling /data/test1a/.pioenvs/test1a/lib67b/ESP8266WiFi/WiFiClient.cpp.o
Compiling /data/test1a/.pioenvs/test1a/lib67b/ESP8266WiFi/WiFiClientSecureAxTLS.cpp.o
Compiling /data/test1a/.pioenvs/test1a/lib67b/ESP8266WiFi/WiFiClientSecureBearSSL.cpp.o
Compiling /data/test1a/.pioenvs/test1a/lib67b/ESP8266WiFi/WiFiServer.cpp.o
Compiling /data/test1a/.pioenvs/test1a/lib67b/ESP8266WiFi/WiFiServerSecureAxTLS.cpp.o
Compiling /data/test1a/.pioenvs/test1a/lib67b/ESP8266WiFi/WiFiServerSecureBearSSL.cpp.o
Compiling /data/test1a/.pioenvs/test1a/lib67b/ESP8266WiFi/WiFiUdp.cpp.o
Compiling /data/test1a/.pioenvs/test1a/lib975/ESPAsyncTCP-esphome/AsyncPrinter.cpp.o
Compiling /data/test1a/.pioenvs/test1a/lib975/ESPAsyncTCP-esphome/ESPAsyncTCP.cpp.o
Compiling /data/test1a/.pioenvs/test1a/lib975/ESPAsyncTCP-esphome/ESPAsyncTCPbuffer.cpp.o
Archiving /data/test1a/.pioenvs/test1a/lib67b/libESP8266WiFi.a
Compiling /data/test1a/.pioenvs/test1a/lib975/ESPAsyncTCP-esphome/SyncClient.cpp.o
Compiling /data/test1a/.pioenvs/test1a/lib975/ESPAsyncTCP-esphome/tcp_axtls.c.o
Compiling /data/test1a/.pioenvs/test1a/libaf0/Hash/Hash.cpp.o
Compiling /data/test1a/.pioenvs/test1a/libc74/ESPAsyncWebServer-esphome/AsyncEventSource.cpp.o
Compiling /data/test1a/.pioenvs/test1a/libc74/ESPAsyncWebServer-esphome/AsyncWebSocket.cpp.o
Archiving /data/test1a/.pioenvs/test1a/libaf0/libHash.a
Compiling /data/test1a/.pioenvs/test1a/libc74/ESPAsyncWebServer-esphome/WebAuthentication.cpp.o
Archiving /data/test1a/.pioenvs/test1a/lib975/libESPAsyncTCP-esphome.a
Compiling /data/test1a/.pioenvs/test1a/libc74/ESPAsyncWebServer-esphome/WebHandlers.cpp.o
Compiling /data/test1a/.pioenvs/test1a/libc74/ESPAsyncWebServer-esphome/WebRequest.cpp.o
Compiling /data/test1a/.pioenvs/test1a/libc74/ESPAsyncWebServer-esphome/WebResponses.cpp.o
Compiling /data/test1a/.pioenvs/test1a/libc74/ESPAsyncWebServer-esphome/WebServer.cpp.o
Compiling /data/test1a/.pioenvs/test1a/lib3ff/ESP8266mDNS/ESP8266mDNS.cpp.o
Compiling /data/test1a/.pioenvs/test1a/lib3ff/ESP8266mDNS/ESP8266mDNS_Legacy.cpp.o
Compiling /data/test1a/.pioenvs/test1a/lib3ff/ESP8266mDNS/LEAmDNS.cpp.o
Archiving /data/test1a/.pioenvs/test1a/libc74/libESPAsyncWebServer-esphome.a
Compiling /data/test1a/.pioenvs/test1a/lib3ff/ESP8266mDNS/LEAmDNS_Control.cpp.o
Compiling /data/test1a/.pioenvs/test1a/lib3ff/ESP8266mDNS/LEAmDNS_Helpers.cpp.o
Compiling /data/test1a/.pioenvs/test1a/lib3ff/ESP8266mDNS/LEAmDNS_Structs.cpp.o
Compiling /data/test1a/.pioenvs/test1a/lib3ff/ESP8266mDNS/LEAmDNS_Transfer.cpp.o
Compiling /data/test1a/.pioenvs/test1a/libfb8/libsodium/crypto_aead/chacha20poly1305/sodium/aead_chacha20poly1305.c.o
Compiling /data/test1a/.pioenvs/test1a/libfb8/libsodium/crypto_core/ed25519/core_ed25519.c.o
Compiling /data/test1a/.pioenvs/test1a/libfb8/libsodium/crypto_core/ed25519/core_ristretto255.c.o
Compiling /data/test1a/.pioenvs/test1a/libfb8/libsodium/crypto_core/ed25519/ref10/ed25519_ref10.c.o
Compiling /data/test1a/.pioenvs/test1a/libfb8/libsodium/crypto_hash/crypto_hash.c.o
Compiling /data/test1a/.pioenvs/test1a/libfb8/libsodium/crypto_hash/sha256/cp/hash_sha256_cp.c.o
Compiling /data/test1a/.pioenvs/test1a/libfb8/libsodium/crypto_hash/sha256/hash_sha256.c.o
Compiling /data/test1a/.pioenvs/test1a/libfb8/libsodium/crypto_onetimeauth/crypto_onetimeauth.c.o
Compiling /data/test1a/.pioenvs/test1a/libfb8/libsodium/crypto_onetimeauth/poly1305/donna/poly1305_donna.c.o
Compiling /data/test1a/.pioenvs/test1a/libfb8/libsodium/crypto_onetimeauth/poly1305/onetimeauth_poly1305.c.o
Compiling /data/test1a/.pioenvs/test1a/libfb8/libsodium/crypto_scalarmult/crypto_scalarmult.c.o
Compiling /data/test1a/.pioenvs/test1a/libfb8/libsodium/crypto_scalarmult/curve25519/ref10/x25519_ref10.c.o
Compiling /data/test1a/.pioenvs/test1a/libfb8/libsodium/crypto_scalarmult/curve25519/scalarmult_curve25519.c.o
Compiling /data/test1a/.pioenvs/test1a/libfb8/libsodium/crypto_stream/chacha20/ref/chacha20_ref.c.o
Archiving /data/test1a/.pioenvs/test1a/lib3ff/libESP8266mDNS.a
Compiling /data/test1a/.pioenvs/test1a/libfb8/libsodium/crypto_stream/chacha20/stream_chacha20.c.o
Compiling /data/test1a/.pioenvs/test1a/libfb8/libsodium/crypto_stream/crypto_stream.c.o
Compiling /data/test1a/.pioenvs/test1a/libfb8/libsodium/crypto_verify/sodium/verify.c.o
Compiling /data/test1a/.pioenvs/test1a/libfb8/libsodium/sodium/codecs.c.o
Compiling /data/test1a/.pioenvs/test1a/libfb8/libsodium/sodium/core.c.o
Compiling /data/test1a/.pioenvs/test1a/libfb8/libsodium/sodium/runtime.c.o
Compiling /data/test1a/.pioenvs/test1a/libfb8/libsodium/sodium/utils.c.o
Compiling /data/test1a/.pioenvs/test1a/lib85b/noise-c/backend/openssl/cipher-aesgcm.c.o
Compiling /data/test1a/.pioenvs/test1a/lib85b/noise-c/backend/ref/cipher-aesgcm.c.o
Compiling /data/test1a/.pioenvs/test1a/lib85b/noise-c/backend/ref/cipher-chachapoly.c.o
Compiling /data/test1a/.pioenvs/test1a/lib85b/noise-c/backend/ref/dh-curve25519.c.o
Compiling /data/test1a/.pioenvs/test1a/lib85b/noise-c/backend/ref/hash-blake2b.c.o
Compiling /data/test1a/.pioenvs/test1a/lib85b/noise-c/backend/ref/hash-blake2s.c.o
Compiling /data/test1a/.pioenvs/test1a/lib85b/noise-c/backend/ref/hash-sha256.c.o
Compiling /data/test1a/.pioenvs/test1a/lib85b/noise-c/backend/sodium/cipher-aesgcm.c.o
Compiling /data/test1a/.pioenvs/test1a/lib85b/noise-c/backend/sodium/cipher-chachapoly.c.o
Compiling /data/test1a/.pioenvs/test1a/lib85b/noise-c/backend/sodium/dh-curve25519.c.o
Compiling /data/test1a/.pioenvs/test1a/lib85b/noise-c/backend/sodium/hash-blake2b.c.o
Compiling /data/test1a/.pioenvs/test1a/lib85b/noise-c/backend/sodium/hash-sha256.c.o
Compiling /data/test1a/.pioenvs/test1a/lib85b/noise-c/crypto/aes/rijndael-alg-fst.c.o
Compiling /data/test1a/.pioenvs/test1a/lib85b/noise-c/crypto/blake2/blake2b.c.o
Compiling /data/test1a/.pioenvs/test1a/lib85b/noise-c/crypto/blake2/blake2s.c.o
Compiling /data/test1a/.pioenvs/test1a/lib85b/noise-c/crypto/chacha/chacha.c.o
Compiling /data/test1a/.pioenvs/test1a/lib85b/noise-c/crypto/donna/curve25519-donna-c64.c.o
Compiling /data/test1a/.pioenvs/test1a/lib85b/noise-c/crypto/donna/curve25519-donna.c.o
Compiling /data/test1a/.pioenvs/test1a/lib85b/noise-c/crypto/donna/poly1305-donna.c.o
Compiling /data/test1a/.pioenvs/test1a/lib85b/noise-c/crypto/sha2/sha256.c.o
Compiling /data/test1a/.pioenvs/test1a/lib85b/noise-c/crypto/sha2/sha512.c.o
Compiling /data/test1a/.pioenvs/test1a/lib85b/noise-c/crypto/x25519/x25519.c.o
Compiling /data/test1a/.pioenvs/test1a/lib85b/noise-c/protocol/cipherstate.c.o
Compiling /data/test1a/.pioenvs/test1a/lib85b/noise-c/protocol/dhstate.c.o
Compiling /data/test1a/.pioenvs/test1a/lib85b/noise-c/protocol/errors.c.o
Compiling /data/test1a/.pioenvs/test1a/lib85b/noise-c/protocol/handshakestate.c.o
Compiling /data/test1a/.pioenvs/test1a/lib85b/noise-c/protocol/hashstate.c.o
Compiling /data/test1a/.pioenvs/test1a/lib85b/noise-c/protocol/internal.c.o
Compiling /data/test1a/.pioenvs/test1a/lib85b/noise-c/protocol/names.c.o
Compiling /data/test1a/.pioenvs/test1a/lib85b/noise-c/protocol/patterns.c.o
Compiling /data/test1a/.pioenvs/test1a/lib85b/noise-c/protocol/rand_os.c.o
Archiving /data/test1a/.pioenvs/test1a/libfb8/libsodium.a
Compiling /data/test1a/.pioenvs/test1a/lib85b/noise-c/protocol/rand_sodium.c.o
Compiling /data/test1a/.pioenvs/test1a/lib85b/noise-c/protocol/randstate.c.o
Compiling /data/test1a/.pioenvs/test1a/lib85b/noise-c/protocol/signstate.c.o
Compiling /data/test1a/.pioenvs/test1a/lib85b/noise-c/protocol/symmetricstate.c.o
Compiling /data/test1a/.pioenvs/test1a/lib85b/noise-c/protocol/util.c.o
Compiling /data/test1a/.pioenvs/test1a/libecb/DNSServer/DNSServer.cpp.o
Archiving /data/test1a/.pioenvs/test1a/libFrameworkArduinoVariant.a
Compiling /data/test1a/.pioenvs/test1a/FrameworkArduino/Crypto.cpp.o
Compiling /data/test1a/.pioenvs/test1a/FrameworkArduino/Esp-frag.cpp.o
Archiving /data/test1a/.pioenvs/test1a/lib85b/libnoise-c.a
Compiling /data/test1a/.pioenvs/test1a/FrameworkArduino/Esp-version.cpp.o
Compiling /data/test1a/.pioenvs/test1a/FrameworkArduino/Esp.cpp.o
Archiving /data/test1a/.pioenvs/test1a/libecb/libDNSServer.a
Compiling /data/test1a/.pioenvs/test1a/FrameworkArduino/FS.cpp.o
Compiling /data/test1a/.pioenvs/test1a/FrameworkArduino/FSnoop.cpp.o
Compiling /data/test1a/.pioenvs/test1a/FrameworkArduino/FunctionalInterrupt.cpp.o
Compiling /data/test1a/.pioenvs/test1a/FrameworkArduino/HardwareSerial.cpp.o
Compiling /data/test1a/.pioenvs/test1a/FrameworkArduino/IPAddress.cpp.o
Compiling /data/test1a/.pioenvs/test1a/FrameworkArduino/MD5Builder.cpp.o
Compiling /data/test1a/.pioenvs/test1a/FrameworkArduino/Print.cpp.o
Compiling /data/test1a/.pioenvs/test1a/FrameworkArduino/Schedule.cpp.o
Compiling /data/test1a/.pioenvs/test1a/FrameworkArduino/StackThunk.cpp.o
Compiling /data/test1a/.pioenvs/test1a/FrameworkArduino/Stream.cpp.o
Compiling /data/test1a/.pioenvs/test1a/FrameworkArduino/StreamString.cpp.o
Compiling /data/test1a/.pioenvs/test1a/FrameworkArduino/Tone.cpp.o
Compiling /data/test1a/.pioenvs/test1a/FrameworkArduino/TypeConversion.cpp.o
Compiling /data/test1a/.pioenvs/test1a/FrameworkArduino/Updater.cpp.o
Compiling /data/test1a/.pioenvs/test1a/FrameworkArduino/WMath.cpp.o
Compiling /data/test1a/.pioenvs/test1a/FrameworkArduino/WString.cpp.o
Compiling /data/test1a/.pioenvs/test1a/FrameworkArduino/abi.cpp.o
Compiling /data/test1a/.pioenvs/test1a/FrameworkArduino/base64.cpp.o
Compiling /data/test1a/.pioenvs/test1a/FrameworkArduino/cbuf.cpp.o
Compiling /data/test1a/.pioenvs/test1a/FrameworkArduino/cont.S.o
Compiling /data/test1a/.pioenvs/test1a/FrameworkArduino/cont_util.cpp.o
Compiling /data/test1a/.pioenvs/test1a/FrameworkArduino/core_esp8266_app_entry_noextra4k.cpp.o
Compiling /data/test1a/.pioenvs/test1a/FrameworkArduino/core_esp8266_eboot_command.cpp.o
Compiling /data/test1a/.pioenvs/test1a/FrameworkArduino/core_esp8266_features.cpp.o
Compiling /data/test1a/.pioenvs/test1a/FrameworkArduino/core_esp8266_flash_quirks.cpp.o
Compiling /data/test1a/.pioenvs/test1a/FrameworkArduino/core_esp8266_flash_utils.cpp.o
Compiling /data/test1a/.pioenvs/test1a/FrameworkArduino/core_esp8266_i2s.cpp.o
Compiling /data/test1a/.pioenvs/test1a/FrameworkArduino/core_esp8266_main.cpp.o
Compiling /data/test1a/.pioenvs/test1a/FrameworkArduino/core_esp8266_noniso.cpp.o
Compiling /data/test1a/.pioenvs/test1a/FrameworkArduino/core_esp8266_phy.cpp.o
Compiling /data/test1a/.pioenvs/test1a/FrameworkArduino/core_esp8266_postmortem.cpp.o
Compiling /data/test1a/.pioenvs/test1a/FrameworkArduino/core_esp8266_si2c.cpp.o
Compiling /data/test1a/.pioenvs/test1a/FrameworkArduino/core_esp8266_sigma_delta.cpp.o
Compiling /data/test1a/.pioenvs/test1a/FrameworkArduino/core_esp8266_spi_utils.cpp.o
Compiling /data/test1a/.pioenvs/test1a/FrameworkArduino/core_esp8266_timer.cpp.o
Compiling /data/test1a/.pioenvs/test1a/FrameworkArduino/core_esp8266_waveform.cpp.o
Compiling /data/test1a/.pioenvs/test1a/FrameworkArduino/core_esp8266_wiring.cpp.o
Compiling /data/test1a/.pioenvs/test1a/FrameworkArduino/core_esp8266_wiring_analog.cpp.o
Compiling /data/test1a/.pioenvs/test1a/FrameworkArduino/core_esp8266_wiring_digital.cpp.o
Compiling /data/test1a/.pioenvs/test1a/FrameworkArduino/core_esp8266_wiring_pulse.cpp.o
Compiling /data/test1a/.pioenvs/test1a/FrameworkArduino/core_esp8266_wiring_pwm.cpp.o
Compiling /data/test1a/.pioenvs/test1a/FrameworkArduino/core_esp8266_wiring_shift.cpp.o
Compiling /data/test1a/.pioenvs/test1a/FrameworkArduino/crc32.cpp.o
Compiling /data/test1a/.pioenvs/test1a/FrameworkArduino/debug.cpp.o
Compiling /data/test1a/.pioenvs/test1a/FrameworkArduino/flash_hal.cpp.o
Compiling /data/test1a/.pioenvs/test1a/FrameworkArduino/gdb_hooks.cpp.o
Compiling /data/test1a/.pioenvs/test1a/FrameworkArduino/heap.cpp.o
Compiling /data/test1a/.pioenvs/test1a/FrameworkArduino/libb64/cdecode.cpp.o
Compiling /data/test1a/.pioenvs/test1a/FrameworkArduino/libb64/cencode.cpp.o
Compiling /data/test1a/.pioenvs/test1a/FrameworkArduino/libc_replacements.cpp.o
Compiling /data/test1a/.pioenvs/test1a/FrameworkArduino/sntp-lwip2.cpp.o
Compiling /data/test1a/.pioenvs/test1a/FrameworkArduino/spiffs/spiffs_cache.cpp.o
Compiling /data/test1a/.pioenvs/test1a/FrameworkArduino/spiffs/spiffs_check.cpp.o
Compiling /data/test1a/.pioenvs/test1a/FrameworkArduino/spiffs/spiffs_gc.cpp.o
Compiling /data/test1a/.pioenvs/test1a/FrameworkArduino/spiffs/spiffs_hydrogen.cpp.o
Compiling /data/test1a/.pioenvs/test1a/FrameworkArduino/spiffs/spiffs_nucleus.cpp.o
Compiling /data/test1a/.pioenvs/test1a/FrameworkArduino/spiffs_api.cpp.o
Compiling /data/test1a/.pioenvs/test1a/FrameworkArduino/sqrt32.cpp.o
Compiling /data/test1a/.pioenvs/test1a/FrameworkArduino/time.cpp.o
Compiling /data/test1a/.pioenvs/test1a/FrameworkArduino/uart.cpp.o
Compiling /data/test1a/.pioenvs/test1a/FrameworkArduino/umm_malloc/umm_info.c.o
Compiling /data/test1a/.pioenvs/test1a/FrameworkArduino/umm_malloc/umm_integrity.c.o
Compiling /data/test1a/.pioenvs/test1a/FrameworkArduino/umm_malloc/umm_local.c.o
Compiling /data/test1a/.pioenvs/test1a/FrameworkArduino/umm_malloc/umm_malloc.cpp.o
Compiling /data/test1a/.pioenvs/test1a/FrameworkArduino/umm_malloc/umm_poison.c.o
Archiving /data/test1a/.pioenvs/test1a/libFrameworkArduino.a
Linking /data/test1a/.pioenvs/test1a/firmware.elf

RAM:   [====      ]  37.8% (used 30972 bytes from 81920 bytes)
Flash: [====      ]  37.8% (used 394396 bytes from 1044464 bytes)
========================= [SUCCESS] Took 99.88 seconds =========================
INFO Successfully compiled program.
esptool.py v3.1
Serial port /dev/ttyUSB0
Connecting....
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC: cc:50:e3:56:a6:3a
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Auto-detected Flash size: 4MB
Flash will be erased from 0x00000000 to 0x00061fff...
Compressed 398544 bytes to 278860...
Wrote 398544 bytes (278860 compressed) at 0x00000000 in 6.5 seconds (effective 488.2 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...
INFO Successfully uploaded program.
INFO Starting log output from /dev/ttyUSB0 with baud rate 115200
[10:15:52][I][logger:214]: Log initialized
[10:15:52][C][ota:452]: There have been 1 suspected unsuccessful boot attempts.
[10:15:52][I][app:029]: Running through setup()...
[10:15:52][C][wifi:037]: Setting up WiFi...
[10:15:52][D][wifi:372]: Starting scan...
[10:15:58][D][wifi:387]: Found networks:
[10:15:58][I][wifi:431]: - 'FRITZ!Box 7490' [redacted]▂▄▆█
[10:15:58][D][wifi:432]:     Channel: 1
[10:15:58][D][wifi:433]:     RSSI: -69 dB
[10:15:58][D][wifi:436]: - [redacted] [redacted]▂▄▆█
[10:15:58][D][wifi:436]: - [redacted] [redacted]▂▄▆█
[10:15:58][I][wifi:247]: WiFi Connecting to 'FRITZ!Box 7490'...
[10:16:28][W][wifi:529]: Timeout while connecting to WiFi.
[10:16:28][I][wifi:247]: WiFi Connecting to 'FRITZ!Box 7490'...
[10:16:28][W][wifi_esp8266:213]: wifi_apply_hostname_(test1a): lwIP error -16 on interface st (index 0)
[10:16:28][W][wifi_esp8266:483]: Event: Disconnected ssid='FRITZ!Box 7490' bssid=[redacted] reason='Association Leave'
[10:16:28][W][wifi:535]: Error while connecting to network.
[10:16:28][W][wifi:570]: Restarting WiFi adapter...
[10:16:33][D][wifi:372]: Starting scan...
[10:16:39][D][wifi:387]: Found networks:
[10:16:39][D][wifi:436]: - [redacted] [redacted]▂▄▆█
[10:16:39][W][wifi:441]: No matching network found!
[10:16:44][D][wifi:372]: Starting scan...
[10:16:50][D][wifi:387]: Found networks:
[10:16:50][I][wifi:431]: - 'FRITZ!Box 7490' [redacted]▂▄▆█
[10:16:50][D][wifi:432]:     Channel: 1
[10:16:50][D][wifi:433]:     RSSI: -79 dB
[10:16:50][D][wifi:436]: - [redacted] [redacted]▂▄▆█
[10:16:50][D][wifi:436]: - [redacted] [redacted]▂▄▆█
[10:16:50][I][wifi:247]: WiFi Connecting to 'FRITZ!Box 7490'...
[10:16:50][W][wifi_esp8266:213]: wifi_apply_hostname_(test1a): lwIP error -16 on interface st (index 0)
[10:16:52][I][wifi:135]: Starting fallback AP!
[10:16:52][C][wifi:198]: Setting up AP...
[10:16:52][C][wifi:200]:   AP SSID: 'Test1A Fallback Hotspot'
[10:16:52][C][wifi:201]:   AP Password: 'QWekGR2hqcGx'
[10:16:53][C][wifi:210]:   IP Address: 192.168.4.1
[10:17:20][W][wifi:529]: Timeout while connecting to WiFi.
[10:17:20][I][wifi:247]: WiFi Connecting to 'FRITZ!Box 7490'...
[10:17:20][W][wifi_esp8266:213]: wifi_apply_hostname_(test1a): lwIP error -16 on interface st (index 0)
[10:17:20][W][wifi_esp8266:483]: Event: Disconnected ssid='FRITZ!Box 7490' bssid=[redacted] reason='Association Leave'
[10:17:20][W][wifi:535]: Error while connecting to network.
[10:17:25][D][wifi:372]: Starting scan...
[10:17:31][D][wifi:387]: Found networks:
[10:17:31][D][wifi:436]: - [redacted] [redacted]▂▄▆█
[10:17:31][W][wifi:441]: No matching network found!
[10:17:36][D][wifi:372]: Starting scan...
[10:17:42][D][wifi:387]: Found networks:
[10:17:42][I][wifi:431]: - 'FRITZ!Box 7490' [redacted]▂▄▆█
[10:17:42][D][wifi:432]:     Channel: 1
[10:17:42][D][wifi:433]:     RSSI: -79 dB
[10:17:42][D][wifi:436]: - [redacted] [redacted]▂▄▆█
[10:17:42][D][wifi:436]: - [redacted] [redacted]▂▄▆█
[10:17:42][I][wifi:247]: WiFi Connecting to 'FRITZ!Box 7490'...
[10:17:42][W][wifi_esp8266:213]: wifi_apply_hostname_(test1a): lwIP error -16 on interface st (index 0)
[10:17:52]rl$ܟ|\x84l\xe0|\x8cl\xe4c|\x8e\x83\xe4\033\x92{\x92\x9c\x84b\x84\xf3oN\xbedno\x9c\xe2\xe4bp\xe4\x8ec$`{lp\xf2n\xe0\x83l\x84\xdc"o\xc2\xe3o\xe4l\x8f\x8eb\x8c\xf2no\xefl\x84\x8ed`\x90oN$`or\x8e\x9b\x92n#l`{\x92\xdf\xee"l \x9c"\x8e\xb2\x8f\xe0\x92`\xfc\x82N\xdc[I][logger:214]: Log initialized
[10:17:52][C][ota:452]: There have been 2 suspected unsuccessful boot attempts.
[10:17:52][I][app:029]: Running through setup()...
[10:17:52][C][wifi:037]: Setting up WiFi...
[10:17:52][D][wifi:372]: Starting scan...
[10:17:58][D][wifi:387]: Found networks:
[10:17:58][I][wifi:431]: - 'FRITZ!Box 7490' [redacted]▂▄▆█
[10:17:58][D][wifi:432]:     Channel: 1
[10:17:58][D][wifi:433]:     RSSI: -82 dB
[10:17:58][D][wifi:436]: - [redacted] [redacted]▂▄▆█
[10:17:58][D][wifi:436]: - [redacted] [redacted]▂▄▆█
[10:17:58][I][wifi:247]: WiFi Connecting to 'FRITZ!Box 7490'...
[10:18:00][W][wifi_esp8266:483]: Event: Disconnected ssid='FRITZ!Box 7490' bssid=[redacted] reason='Association Expired'
[10:18:00][W][wifi:535]: Error while connecting to network.
[10:18:00][W][wifi:570]: Restarting WiFi adapter...
[10:18:00][I][wifi:247]: WiFi Connecting to 'FRITZ!Box 7490'...
[10:18:06][W][wifi_esp8266:479]: Event: Disconnected ssid='FRITZ!Box 7490' reason='Probe Request Unsuccessful'
[10:18:06][W][wifi:535]: Error while connecting to network.
[10:18:06][W][wifi:570]: Restarting WiFi adapter...
[10:18:11][D][wifi:372]: Starting scan...
[10:18:17][D][wifi:387]: Found networks:
[10:18:17][D][wifi:436]: - [redacted] [redacted]▂▄▆█
[10:18:17][W][wifi:441]: No matching network found!
[10:18:22][D][wifi:372]: Starting scan...
[10:18:28][D][wifi:387]: Found networks:
[10:18:28][D][wifi:436]: - [redacted] [redacted]▂▄▆█
[10:18:28][W][wifi:441]: No matching network found!
[10:18:33][D][wifi:372]: Starting scan...

Additional information

Screenshot_20211109-100120 IMG_20211109_103759

LordBoos commented 3 years ago

I have similar problem. After updating my Sonoff Basic to latest ESPHome, it no longer connects to WiFi reliably. it's behaviour is really strange thought because when powered from UART-to-serial adapter it will connect to WiFi on like 50% of boots on the rest of the boots it will just scan for networks, sometimes find my network and then fail to connect with reason='Probe Request Unsuccessful'. When powered directly from outlet it never connects to wifi (I've tried many reboots). I had no problems with versions older than 2021.10.X.

minimag450 commented 3 years ago

Maybe it's interesting for the developers, today I noticed that I have a network "TestA1 Fallback Hotspot".

and if I enter a wrong password, the error message "Auth expired" comes up.

Leaving... Hard resetting via RTS pin... INFO Successfully uploaded program. INFO Starting log output from /dev/ttyUSB0 with baud rate 115200 [10:44:50][I][logger:214]: Log initialized [10:44:50][C][ota:452]: There have been 5 suspected unsuccessful boot attempts. [10:44:50][I][app:029]: Running through setup()... [10:44:50][C][wifi:037]: Setting up WiFi... [10:44:50][D][wifi:372]: Starting scan... [10:44:55][D][wifi:387]: Found networks: [10:44:56][I][wifi:431]: - 'FRITZ!Box 7490' [redacted]▂▄▆█ [10:44:56][D][wifi:432]: Channel: 1 [10:44:56][D][wifi:433]: RSSI: -76 dB [10:44:56][D][wifi:436]: - [redacted] [redacted]▂▄▆█ [10:44:56][D][wifi:436]: - [redacted] [redacted]▂▄▆█ [10:44:56][I][wifi:247]: WiFi Connecting to 'FRITZ!Box 7490'... [10:45:01][W][wifi_esp8266:483]: Event: Disconnected ssid='FRITZ!Box 7490' bssid=[redacted] reason='Auth Expired' [10:45:01][W][wifi:535]: Error while connecting to network. [10:45:01][W][wifi:570]: Restarting WiFi adapter... [10:45:01][W][wifi_esp8266:483]: Event: Disconnected ssid='FRITZ!Box 7490' bssid=[redacted] reason='Authentication Failed' [10:45:01][I][wifi:247]: WiFi Connecting to 'FRITZ!Box 7490'...

Regards, Andreas

LordBoos commented 3 years ago

I also have an update. I flashed the same code to another device (Sonoff MINI R2) and it works fine. Looks like the only problem is, at least for me, with Sonoff Basic R1.

itanczos commented 3 years ago

For me, removing the status_led component solved the problem.

This wifi problem has already occurred in versions 2021.9.x, but only if the web_server component was also enabled. Then the web_server and status_led components did not work at the same time. Then the web_server component was caught with a large memory requirement. I just don't understand why it only occurs at sonoff basic r1? Also not for esp8266 based wemos d1?

LordBoos commented 3 years ago

I do use web_server or status_led components.

esphome:
  name: kitchen
  platform: ESP8266
  board: esp8285

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

api:

i2c:
  scan: false
  sda: GPIO1
  scl: GPIO3

sensor:
  - platform: bme280
    temperature:
      name: "Teplota v kuchyni"
      oversampling: 2x
    pressure:
      name: "Tlak v kuchyni"
      oversampling: 2x
    humidity:
      name: "Vhkost v kuchyni"
      oversampling: 2x
    address: 0x76
    update_interval: 30s

output:
  - platform: gpio
    pin: 12
    id: light_main

binary_sensor:
  - platform: gpio
    id: button_sensor
    pin:
      number: GPIO0
      mode: INPUT_PULLUP
      inverted: True
    on_press:
      then:
        - light.toggle:
            id: light_light
  - platform: gpio
    id: switch_sensor
    pin:
      number: GPIO14
      mode: INPUT_PULLUP
    on_press:
      then:
        - light.toggle:
            id: light_light
    on_release:
      then:
        - light.toggle:
            id: light_light
  - platform: status
    name: "Kuchyně vypínač status"

light:
  - platform: binary
    id: light_light
    name: Kuchyně
    output: light_main

switch:
  - platform: restart
    name: "Kuchyně vypínač Restart"

logger:

ota:
minimag450 commented 3 years ago

I don't understand exactly what your posts have to do with my Problem. They seem to work.

minimag450 commented 3 years ago

Maybe the log from ESPHome will help.

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-banner.sh: executing... 
-----------------------------------------------------------
 Add-on: ESPHome
 ESPHome add-on for intelligently managing all your ESP8266/ESP32 devices
-----------------------------------------------------------
 Add-on version: 2021.10.3
 You are running the latest version of this add-on.
 System: Home Assistant OS 6.6  (aarch64 / raspberrypi4-64)
 Home Assistant Core: 2021.11.3
 Home Assistant Supervisor: 2021.10.8
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing... 
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] 10-requirements.sh: executing... 
[cont-init.d] 10-requirements.sh: exited 0.
[cont-init.d] 20-nginx.sh: executing... 
[cont-init.d] 20-nginx.sh: exited 0.
[cont-init.d] 30-dirs.sh: executing... 
[cont-init.d] 30-dirs.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[21:15:58] INFO: Waiting for dashboard to come up...
[21:15:58] INFO: Starting ESPHome dashboard...
2021-11-14 21:16:00,040 INFO Starting dashboard web server on unix socket /var/run/esphome.sock and configuration dir /config/esphome...
[21:16:00] INFO: Starting NGINX...
2021-11-14 21:16:15,863 INFO 304 GET / (0.0.0.0) 669.97ms
2021-11-14 21:16:16,351 INFO 200 GET /static/fonts/material-icons/material-icons.css?hash=ead4c276 (0.0.0.0) 349.57ms
2021-11-14 21:16:16,390 INFO 200 GET /static/css/vendor/materialize/materialize.min.css?hash=ec1df3ba (0.0.0.0) 33.08ms
2021-11-14 21:16:16,398 INFO 200 GET /static/css/esphome-2.css?hash=95c08d5a (0.0.0.0) 35.96ms
2021-11-14 21:16:16,404 INFO 200 GET /static/js/vendor/jquery/jquery.min.js?hash=12108007 (0.0.0.0) 40.18ms
2021-11-14 21:16:16,417 INFO 200 GET /static/js/vendor/jquery-ui/jquery-ui.min.js?hash=cab3392d (0.0.0.0) 50.68ms
2021-11-14 21:16:16,428 INFO 200 GET /static/js/vendor/jquery-validate/jquery.validate.min.js?hash=aad785d4 (0.0.0.0) 7.21ms
2021-11-14 21:16:16,477 INFO 200 GET /static/js/vendor/materialize/materialize.min.js?hash=4be20daf (0.0.0.0) 5.44ms
2021-11-14 21:16:16,563 INFO 200 GET /static/js/vendor/ace/ace.js?hash=65322f49 (0.0.0.0) 22.18ms
2021-11-14 21:16:16,612 INFO 200 GET /static/js/esphome/index-e0440f6f.js (0.0.0.0) 42.85ms
2021-11-14 21:16:16,937 INFO 200 GET /static/fonts/material-icons/MaterialIcons-Regular.woff2 (0.0.0.0) 184.45ms
2021-11-14 21:16:16,995 INFO 200 GET /static/js/vendor/ace/theme-dreamweaver.js (0.0.0.0) 54.43ms
2021-11-14 21:16:17,223 INFO 200 GET /static/js/vendor/ace/mode-yaml.js (0.0.0.0) 280.52ms
2021-11-14 21:16:17,568 INFO 304 GET /devices (0.0.0.0) 340.20ms
2021-11-14 21:16:17,573 INFO 101 GET /ace (0.0.0.0) 340.89ms
2021-11-14 21:16:17,582 INFO Running command 'esphome --dashboard -q vscode --ace /config/esphome'
2021-11-14 21:16:22,279 INFO 304 GET /devices (0.0.0.0) 11.93ms
2021-11-14 21:16:25,390 INFO 200 GET /static/js/esphome/c.86557d2d.js (0.0.0.0) 19.05ms
2021-11-14 21:16:25,432 INFO 200 GET /static/js/esphome/c.42357ee2.js (0.0.0.0) 3.34ms
2021-11-14 21:16:25,529 INFO 200 GET /static/js/esphome/c.9fbc2162.js (0.0.0.0) 76.59ms
2021-11-14 21:16:25,611 INFO 200 GET /static/js/esphome/c.849528ae.js (0.0.0.0) 78.18ms
2021-11-14 21:16:25,662 INFO 200 GET /static/js/esphome/c.82ae9110.js (0.0.0.0) 126.16ms
2021-11-14 21:16:25,722 INFO 200 GET /static/js/esphome/c.989b6db0.js (0.0.0.0) 184.00ms
2021-11-14 21:16:27,008 INFO 304 GET /devices (0.0.0.0) 9.61ms
2021-11-14 21:16:28,790 INFO 200 GET /static/js/esphome/c.177725c5.js (0.0.0.0) 3.96ms
2021-11-14 21:16:28,839 INFO 200 GET /static/js/esphome/c.2cdbdbed.js (0.0.0.0) 3.67ms
2021-11-14 21:16:28,977 INFO 101 GET /upload (0.0.0.0) 1.79ms
2021-11-14 21:16:28,995 INFO Running command 'esphome --dashboard run /config/esphome/heizung-kinderzimmer.yaml --device /dev/ttyUSB0'
2021-11-14 21:16:32,020 INFO 304 GET /devices (0.0.0.0) 6.86ms
2021-11-14 21:16:37,017 INFO 304 GET /devices (0.0.0.0) 13.83ms
2021-11-14 21:16:42,047 INFO 304 GET /devices (0.0.0.0) 16.28ms
2021-11-14 21:16:47,012 INFO 304 GET /devices (0.0.0.0) 6.88ms
2021-11-14 21:16:52,017 INFO 304 GET /devices (0.0.0.0) 10.62ms
2021-11-14 21:16:57,019 INFO 304 GET /devices (0.0.0.0) 5.92ms
2021-11-14 21:17:02,020 INFO 304 GET /devices (0.0.0.0) 9.25ms
2021-11-14 21:17:07,028 INFO 304 GET /devices (0.0.0.0) 8.07ms
2021-11-14 21:17:12,027 INFO 304 GET /devices (0.0.0.0) 6.39ms
2021-11-14 21:17:17,036 INFO 304 GET /devices (0.0.0.0) 7.47ms
2021-11-14 21:17:22,033 INFO 304 GET /devices (0.0.0.0) 7.80ms
2021-11-14 21:17:27,027 INFO 304 GET /devices (0.0.0.0) 6.06ms
2021-11-14 21:17:32,031 INFO 304 GET /devices (0.0.0.0) 5.37ms
2021-11-14 21:17:37,026 INFO 304 GET /devices (0.0.0.0) 6.47ms
2021-11-14 21:17:42,042 INFO 304 GET /devices (0.0.0.0) 6.41ms
2021-11-14 21:17:47,035 INFO 304 GET /devices (0.0.0.0) 6.31ms
2021-11-14 21:17:52,045 INFO 304 GET /devices (0.0.0.0) 6.98ms
github-actions[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.