esphome / issues

Issue Tracker for ESPHome
https://esphome.io/
290 stars 36 forks source link

Wifi doesn't connect after update to 2021.10.2 #2656

Open kaysimon opened 3 years ago

kaysimon commented 3 years ago

The problem

The code below works for months without any prolems until the update to 2021.10.2. The esp doesn't connect to wifi with the reason "Auth expired". I post the log written by the tool esphome-flasher while I flashed the board manually. Strange to say when I remove the display part the module connects instantly with the wifi. Additionally tested with ESPEasy to exclude any hardware damage. Update to 2021.10.3 didn't solve the issue.

Which version of ESPHome has the issue?

2021.10.2

What type of installation are you using?

Home Assistant Add-on

Which version of Home Assistant has the issue?

core-2021.10.6

What platform are you using?

ESP8266

Board

Wemos D1 mini

Component causing the issue

wifi

Example YAML snippet

esphome:
  name: wemos-e-ink
  platform: ESP8266
  board: d1_mini

wifi:
  ssid: "cca"
  password: !secret cca_password
  manual_ip:
    static_ip: 192.168.2.13
    gateway: 192.168.2.1
    subnet: 255.255.255.0

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Wemos E-Ink Fallback Hotspot"
    password: "secretpassword"

captive_portal:

# Enable logging
logger:

# Enable Home Assistant API
api:

web_server:
  port: 80
  auth:
    username: admin
    password: !secret web_server_password

ota:
  password: !secret ota_password

time:
  - platform: homeassistant
    id: esptime

sensor:
  - platform: homeassistant
    name: "Außentemperatur"
    entity_id: sensor.aussentemperatur
    id: temp_aussen
  - platform: wifi_signal
    name: "WiFi Signal Sensor"
    id: wifi_level
    update_interval: 60s

font:
  - file: "LiberationSans-Bold.ttf"
    id: headline
    size: 18
  - file: "LiberationSans-Bold.ttf"
    id: timeclock
    size: 45
  - file: "LiberationSans-Bold.ttf"
    id: date
    size: 35
  - file: "LiberationSans-Bold.ttf"
    id: temp
    size: 60

spi:
  clk_pin: D0
  mosi_pin: D1

display:
  - platform: waveshare_epaper
    cs_pin: D7
    dc_pin: D4
    busy_pin: D2
    reset_pin: D3
    model: 1.54in
    full_update_every: 300
    rotation: 90°
    lambda: |-
      it.printf(0, 4, id(headline), TextAlign::TOP_LEFT, "CCA");
      it.printf(196, 4, id(headline), TextAlign::TOP_RIGHT, "%.0f dB", id(wifi_level).state);

      it.line(0, 26, 200, 26);

      // Print outside temperature (from homeassistant sensor)
      if (id(temp_aussen).has_state()) {
        it.printf(100, 35, id(temp), TextAlign::TOP_CENTER , "%.1f°C", id(temp_aussen).state);
      }
      //it.printf(100, 35, id(temp), TextAlign::TOP_CENTER , "-88.8°C");

      it.line(0, 110, 200, 110);

      // Print time in HH:MM format
      it.strftime(100, 115, id(timeclock), TextAlign::TOP_CENTER, "%H:%M", id(esptime).now());
      it.strftime(100, 160, id(date), TextAlign::TOP_CENTER, "%d.%m.%Y", id(esptime).now());

Anything in the logs that might be useful for us?

INFO Reading configuration /config/esphome/wemos_e-ink.yaml...
INFO Detected timezone 'Europe/Berlin'
INFO Generating C++ source...
INFO Core config or version changed, cleaning build files...
INFO Deleting /data/wemos-e-ink/.pioenvs
INFO Compiling app...
Processing wemos-e-ink (board: d1_mini; 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
|   |-- <ArduinoJson-esphomelib> 5.13.3
|-- <ESP8266WiFi> 1.0
|-- <ArduinoJson-esphomelib> 5.13.3
|-- <ESP8266mDNS> 1.2
|   |-- <ESP8266WiFi> 1.0
|-- <noise-c> 0.1.4
|   |-- <libsodium> 1.10018.1
|-- <DNSServer> 1.1.1
|   |-- <ESP8266WiFi> 1.0
|-- <SPI> 1.0
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/src/esphome/components/api/api_connection.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/src/esphome/components/api/api_frame_helper.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/src/esphome/components/api/api_pb2.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/src/esphome/components/api/api_pb2_service.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/src/esphome/components/api/api_server.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/src/esphome/components/api/list_entities.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/src/esphome/components/api/proto.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/src/esphome/components/api/subscribe_state.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/src/esphome/components/api/user_services.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/src/esphome/components/api/util.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/src/esphome/components/captive_portal/captive_portal.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/src/esphome/components/display/display_buffer.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/src/esphome/components/esp8266/core.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/src/esphome/components/esp8266/gpio.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/src/esphome/components/esp8266/preferences.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/src/esphome/components/homeassistant/sensor/homeassistant_sensor.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/src/esphome/components/homeassistant/time/homeassistant_time.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/src/esphome/components/json/json_util.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/src/esphome/components/logger/logger.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/src/esphome/components/md5/md5.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/src/esphome/components/mdns/mdns_component.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/src/esphome/components/mdns/mdns_esp32_arduino.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/src/esphome/components/mdns/mdns_esp8266.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/src/esphome/components/mdns/mdns_esp_idf.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/src/esphome/components/network/util.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/src/esphome/components/ota/ota_backend_arduino_esp32.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/src/esphome/components/ota/ota_backend_arduino_esp8266.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/src/esphome/components/ota/ota_backend_esp_idf.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/src/esphome/components/ota/ota_component.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/src/esphome/components/sensor/automation.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/src/esphome/components/sensor/filter.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/src/esphome/components/sensor/sensor.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/src/esphome/components/socket/bsd_sockets_impl.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/src/esphome/components/socket/lwip_raw_tcp_impl.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/src/esphome/components/spi/spi.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/src/esphome/components/time/automation.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/src/esphome/components/time/real_time_clock.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/src/esphome/components/waveshare_epaper/waveshare_epaper.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/src/esphome/components/web_server/web_server.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/src/esphome/components/web_server_base/web_server_base.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/src/esphome/components/wifi/wifi_component.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/src/esphome/components/wifi/wifi_component_esp32_arduino.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/src/esphome/components/wifi/wifi_component_esp8266.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/src/esphome/components/wifi/wifi_component_esp_idf.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/src/esphome/components/wifi_signal/wifi_signal_sensor.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/src/esphome/core/application.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/src/esphome/core/color.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/src/esphome/core/component.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/src/esphome/core/controller.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/src/esphome/core/entity_base.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/src/esphome/core/helpers.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/src/esphome/core/log.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/src/esphome/core/scheduler.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/src/esphome/core/util.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/src/main.cpp.o
Generating LD script /data/wemos-e-ink/.pioenvs/wemos-e-ink/ld/local.eagle.app.v6.common.ld
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/lib67b/ESP8266WiFi/BearSSLHelpers.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/lib67b/ESP8266WiFi/CertStoreBearSSL.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/lib67b/ESP8266WiFi/ESP8266WiFi.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/lib67b/ESP8266WiFi/ESP8266WiFiAP.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/lib67b/ESP8266WiFi/ESP8266WiFiGeneric.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/lib67b/ESP8266WiFi/ESP8266WiFiGratuitous.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/lib67b/ESP8266WiFi/ESP8266WiFiMulti.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/lib67b/ESP8266WiFi/ESP8266WiFiSTA-WPS.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/lib67b/ESP8266WiFi/ESP8266WiFiSTA.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/lib67b/ESP8266WiFi/ESP8266WiFiScan.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/lib67b/ESP8266WiFi/WiFiClient.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/lib67b/ESP8266WiFi/WiFiClientSecureAxTLS.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/lib67b/ESP8266WiFi/WiFiClientSecureBearSSL.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/lib67b/ESP8266WiFi/WiFiServer.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/lib67b/ESP8266WiFi/WiFiServerSecureAxTLS.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/lib67b/ESP8266WiFi/WiFiServerSecureBearSSL.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/lib67b/ESP8266WiFi/WiFiUdp.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/lib975/ESPAsyncTCP-esphome/AsyncPrinter.cpp.o
Archiving /data/wemos-e-ink/.pioenvs/wemos-e-ink/lib67b/libESP8266WiFi.a
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/lib975/ESPAsyncTCP-esphome/ESPAsyncTCP.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/lib975/ESPAsyncTCP-esphome/ESPAsyncTCPbuffer.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/lib975/ESPAsyncTCP-esphome/SyncClient.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/lib975/ESPAsyncTCP-esphome/tcp_axtls.c.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/libaf0/Hash/Hash.cpp.o
Archiving /data/wemos-e-ink/.pioenvs/wemos-e-ink/lib975/libESPAsyncTCP-esphome.a
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/libc74/ESPAsyncWebServer-esphome/AsyncEventSource.cpp.o
Archiving /data/wemos-e-ink/.pioenvs/wemos-e-ink/libaf0/libHash.a
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/libc74/ESPAsyncWebServer-esphome/AsyncWebSocket.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/libc74/ESPAsyncWebServer-esphome/WebAuthentication.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/libc74/ESPAsyncWebServer-esphome/WebHandlers.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/libc74/ESPAsyncWebServer-esphome/WebRequest.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/libc74/ESPAsyncWebServer-esphome/WebResponses.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/libc74/ESPAsyncWebServer-esphome/WebServer.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/lib3ff/ESP8266mDNS/ESP8266mDNS.cpp.o
Archiving /data/wemos-e-ink/.pioenvs/wemos-e-ink/libc74/libESPAsyncWebServer-esphome.a
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/lib3ff/ESP8266mDNS/ESP8266mDNS_Legacy.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/lib3ff/ESP8266mDNS/LEAmDNS.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/lib3ff/ESP8266mDNS/LEAmDNS_Control.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/lib3ff/ESP8266mDNS/LEAmDNS_Helpers.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/lib3ff/ESP8266mDNS/LEAmDNS_Structs.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/lib3ff/ESP8266mDNS/LEAmDNS_Transfer.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/libfb8/libsodium/crypto_aead/chacha20poly1305/sodium/aead_chacha20poly1305.c.o
Archiving /data/wemos-e-ink/.pioenvs/wemos-e-ink/lib3ff/libESP8266mDNS.a
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/libfb8/libsodium/crypto_core/ed25519/core_ed25519.c.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/libfb8/libsodium/crypto_core/ed25519/core_ristretto255.c.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/libfb8/libsodium/crypto_core/ed25519/ref10/ed25519_ref10.c.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/libfb8/libsodium/crypto_hash/crypto_hash.c.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/libfb8/libsodium/crypto_hash/sha256/cp/hash_sha256_cp.c.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/libfb8/libsodium/crypto_hash/sha256/hash_sha256.c.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/libfb8/libsodium/crypto_onetimeauth/crypto_onetimeauth.c.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/libfb8/libsodium/crypto_onetimeauth/poly1305/donna/poly1305_donna.c.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/libfb8/libsodium/crypto_onetimeauth/poly1305/onetimeauth_poly1305.c.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/libfb8/libsodium/crypto_scalarmult/crypto_scalarmult.c.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/libfb8/libsodium/crypto_scalarmult/curve25519/ref10/x25519_ref10.c.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/libfb8/libsodium/crypto_scalarmult/curve25519/scalarmult_curve25519.c.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/libfb8/libsodium/crypto_stream/chacha20/ref/chacha20_ref.c.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/libfb8/libsodium/crypto_stream/chacha20/stream_chacha20.c.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/libfb8/libsodium/crypto_stream/crypto_stream.c.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/libfb8/libsodium/crypto_verify/sodium/verify.c.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/libfb8/libsodium/sodium/codecs.c.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/libfb8/libsodium/sodium/core.c.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/libfb8/libsodium/sodium/runtime.c.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/libfb8/libsodium/sodium/utils.c.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/lib85b/noise-c/backend/openssl/cipher-aesgcm.c.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/lib85b/noise-c/backend/ref/cipher-aesgcm.c.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/lib85b/noise-c/backend/ref/cipher-chachapoly.c.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/lib85b/noise-c/backend/ref/dh-curve25519.c.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/lib85b/noise-c/backend/ref/hash-blake2b.c.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/lib85b/noise-c/backend/ref/hash-blake2s.c.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/lib85b/noise-c/backend/ref/hash-sha256.c.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/lib85b/noise-c/backend/sodium/cipher-aesgcm.c.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/lib85b/noise-c/backend/sodium/cipher-chachapoly.c.o
Archiving /data/wemos-e-ink/.pioenvs/wemos-e-ink/libfb8/libsodium.a
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/lib85b/noise-c/backend/sodium/dh-curve25519.c.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/lib85b/noise-c/backend/sodium/hash-blake2b.c.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/lib85b/noise-c/backend/sodium/hash-sha256.c.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/lib85b/noise-c/crypto/aes/rijndael-alg-fst.c.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/lib85b/noise-c/crypto/blake2/blake2b.c.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/lib85b/noise-c/crypto/blake2/blake2s.c.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/lib85b/noise-c/crypto/chacha/chacha.c.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/lib85b/noise-c/crypto/donna/curve25519-donna-c64.c.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/lib85b/noise-c/crypto/donna/curve25519-donna.c.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/lib85b/noise-c/crypto/donna/poly1305-donna.c.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/lib85b/noise-c/crypto/sha2/sha256.c.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/lib85b/noise-c/crypto/sha2/sha512.c.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/lib85b/noise-c/crypto/x25519/x25519.c.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/lib85b/noise-c/protocol/cipherstate.c.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/lib85b/noise-c/protocol/dhstate.c.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/lib85b/noise-c/protocol/errors.c.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/lib85b/noise-c/protocol/handshakestate.c.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/lib85b/noise-c/protocol/hashstate.c.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/lib85b/noise-c/protocol/internal.c.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/lib85b/noise-c/protocol/names.c.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/lib85b/noise-c/protocol/patterns.c.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/lib85b/noise-c/protocol/rand_os.c.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/lib85b/noise-c/protocol/rand_sodium.c.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/lib85b/noise-c/protocol/randstate.c.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/lib85b/noise-c/protocol/signstate.c.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/lib85b/noise-c/protocol/symmetricstate.c.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/lib85b/noise-c/protocol/util.c.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/libecb/DNSServer/DNSServer.cpp.o
Archiving /data/wemos-e-ink/.pioenvs/wemos-e-ink/lib85b/libnoise-c.a
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/libf5a/SPI/SPI.cpp.o
Archiving /data/wemos-e-ink/.pioenvs/wemos-e-ink/libecb/libDNSServer.a
Archiving /data/wemos-e-ink/.pioenvs/wemos-e-ink/libFrameworkArduinoVariant.a
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/FrameworkArduino/Crypto.cpp.o
Archiving /data/wemos-e-ink/.pioenvs/wemos-e-ink/libf5a/libSPI.a
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/FrameworkArduino/Esp-frag.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/FrameworkArduino/Esp-version.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/FrameworkArduino/Esp.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/FrameworkArduino/FS.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/FrameworkArduino/FSnoop.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/FrameworkArduino/FunctionalInterrupt.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/FrameworkArduino/HardwareSerial.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/FrameworkArduino/IPAddress.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/FrameworkArduino/MD5Builder.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/FrameworkArduino/Print.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/FrameworkArduino/Schedule.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/FrameworkArduino/StackThunk.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/FrameworkArduino/Stream.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/FrameworkArduino/StreamString.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/FrameworkArduino/Tone.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/FrameworkArduino/TypeConversion.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/FrameworkArduino/Updater.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/FrameworkArduino/WMath.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/FrameworkArduino/WString.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/FrameworkArduino/abi.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/FrameworkArduino/base64.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/FrameworkArduino/cbuf.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/FrameworkArduino/cont.S.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/FrameworkArduino/cont_util.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/FrameworkArduino/core_esp8266_app_entry_noextra4k.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/FrameworkArduino/core_esp8266_eboot_command.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/FrameworkArduino/core_esp8266_features.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/FrameworkArduino/core_esp8266_flash_quirks.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/FrameworkArduino/core_esp8266_flash_utils.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/FrameworkArduino/core_esp8266_i2s.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/FrameworkArduino/core_esp8266_main.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/FrameworkArduino/core_esp8266_noniso.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/FrameworkArduino/core_esp8266_phy.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/FrameworkArduino/core_esp8266_postmortem.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/FrameworkArduino/core_esp8266_si2c.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/FrameworkArduino/core_esp8266_sigma_delta.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/FrameworkArduino/core_esp8266_spi_utils.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/FrameworkArduino/core_esp8266_timer.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/FrameworkArduino/core_esp8266_waveform.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/FrameworkArduino/core_esp8266_wiring.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/FrameworkArduino/core_esp8266_wiring_analog.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/FrameworkArduino/core_esp8266_wiring_digital.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/FrameworkArduino/core_esp8266_wiring_pulse.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/FrameworkArduino/core_esp8266_wiring_pwm.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/FrameworkArduino/core_esp8266_wiring_shift.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/FrameworkArduino/crc32.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/FrameworkArduino/debug.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/FrameworkArduino/flash_hal.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/FrameworkArduino/gdb_hooks.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/FrameworkArduino/heap.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/FrameworkArduino/libb64/cdecode.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/FrameworkArduino/libb64/cencode.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/FrameworkArduino/libc_replacements.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/FrameworkArduino/sntp-lwip2.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/FrameworkArduino/spiffs/spiffs_cache.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/FrameworkArduino/spiffs/spiffs_check.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/FrameworkArduino/spiffs/spiffs_gc.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/FrameworkArduino/spiffs/spiffs_hydrogen.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/FrameworkArduino/spiffs/spiffs_nucleus.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/FrameworkArduino/spiffs_api.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/FrameworkArduino/sqrt32.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/FrameworkArduino/time.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/FrameworkArduino/uart.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/FrameworkArduino/umm_malloc/umm_info.c.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/FrameworkArduino/umm_malloc/umm_integrity.c.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/FrameworkArduino/umm_malloc/umm_local.c.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/FrameworkArduino/umm_malloc/umm_malloc.cpp.o
Compiling /data/wemos-e-ink/.pioenvs/wemos-e-ink/FrameworkArduino/umm_malloc/umm_poison.c.o
Archiving /data/wemos-e-ink/.pioenvs/wemos-e-ink/libFrameworkArduino.a
Linking /data/wemos-e-ink/.pioenvs/wemos-e-ink/firmware.elf
Building /data/wemos-e-ink/.pioenvs/wemos-e-ink/firmware.bin
RAM:   [=====     ]  50.4% (used 41264 bytes from 81920 bytes)
Flash: [=====     ]  46.0% (used 480132 bytes from 1044464 bytes)
======================== [SUCCESS] Took 128.18 seconds ========================
INFO Successfully compiled program.

-------------------------------------------------------------------------------------------

Using '/dev/ttyUSB0' as serial port.
Connecting....
Detecting chip type... ESP8266
Connecting....

Chip Info:
 - Chip Family: ESP8266
 - Chip Model: ESP8266EX
 - Chip ID: 00ABAC1C
 - MAC Address: 84:0D:8E:AB:AC:1C
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
 - Flash Size: 4MB
 - Flash Mode: dout
 - Flash Frequency: 40MHz
Erasing flash (this may take a while)...
Chip erase completed successfully in 5.8s
Compressed 484288 bytes to 321499...
Writing at 0x0004c000... (100 %)Wrote 484288 bytes (321499 compressed) at 0x00000000 in 7.3 seconds (effective 528.1 kbit/s)...
Hash of data verified.

Leaving...
Hard Resetting...
Done! Flashing is complete!

Showing logs:
[23:02:48]o'l`';'#$ ;ۛg#d`#${`o[I][logger:214]: Log initialized
[23:02:48][C][ota:452]: There have been 0 suspected unsuccessful boot attempts.
[23:02:48][I][app:029]: Running through setup()...
[23:02:48][C][spi:023]: Setting up SPI bus...
[23:02:49][C][wifi:037]: Setting up WiFi...
[23:02:49][D][wifi:372]: Starting scan...
[23:02:56][D][wifi:387]: Found networks:
[23:02:56][I][wifi:431]: - 'cca' (7C:FF:4D:3F:70:6B) ▂▄▆█
[23:02:56][D][wifi:432]:     Channel: 11
[23:02:56][D][wifi:433]:     RSSI: -41 dB
[23:02:56][I][wifi:431]: - 'cca' (08:96:D7:96:A2:CC) ▂▄▆█
[23:02:56][D][wifi:432]:     Channel: 6
[23:02:56][D][wifi:433]:     RSSI: -79 dB
[23:02:56][D][wifi:436]: - 'cca_guest' (7E:FF:4D:3F:70:6B) ▂▄▆█
[23:02:56][D][wifi:436]: - 'MyNet' (CC:CE:1E:87:B8:F4) ▂▄▆█
[23:02:56][D][wifi:436]: - 'ALPHA' (98:9B:CB:F2:C3:D3) ▂▄▆█
[23:02:56][D][wifi:436]: - 'ALPHA' (AC:22:05:DE:6C:6B) ▂▄▆█
[23:02:56][D][wifi:436]: - 'Vodafone Hotspot' (AE:22:15:DE:6C:6B) ▂▄▆█
[23:02:56][D][wifi:436]: - 'WLAN-86D277' (2C:3A:FD:12:E5:48) ▂▄▆█
[23:02:56][D][wifi:436]: - 'cca_guest' (0A:96:D7:96:A2:CC) ▂▄▆█
[23:02:56][D][wifi:436]: - 'Vodafone-E7BA' (70:54:25:64:F6:5D) ▂▄▆█
[23:02:56][D][wifi:436]: - 'UPC25B7433' (AC:22:05:C4:02:46) ▂▄▆█
[23:02:56][D][wifi:436]: - 'Vodafone Hotspot' (AE:22:15:C4:02:46) ▂▄▆█
[23:02:56][I][wifi:247]: WiFi Connecting to 'cca'...
[23:02:58][W][wifi_esp8266:483]: Event: Disconnected ssid='cca' bssid=7C:FF:4D:3F:70:6B reason='Auth Expired'
[23:02:58][W][wifi:535]: Error while connecting to network.
[23:02:58][W][wifi:570]: Restarting WiFi adapter...
[23:02:58][I][wifi:247]: WiFi Connecting to 'cca'...
[23:03:01][W][wifi_esp8266:483]: Event: Disconnected ssid='cca' bssid=7C:FF:4D:3F:70:6B reason='Auth Expired'
[23:03:01][W][wifi:535]: Error while connecting to network.
[23:03:01][W][wifi:570]: Restarting WiFi adapter...
[23:03:06][D][wifi:372]: Starting scan...
[23:03:13][D][wifi:387]: Found networks:
[23:03:13][I][wifi:431]: - 'cca' (08:96:D7:96:A2:CC) ▂▄▆█
[23:03:13][D][wifi:432]:     Channel: 6
[23:03:13][D][wifi:433]:     RSSI: -84 dB
[23:03:13][I][wifi:431]: - 'cca' (7C:FF:4D:3F:70:6B) ▂▄▆█
[23:03:13][D][wifi:432]:     Channel: 11
[23:03:13][D][wifi:433]:     RSSI: -41 dB
[23:03:13][D][wifi:436]: - 'cca_guest' (7E:FF:4D:3F:70:6B) ▂▄▆█
[23:03:13][D][wifi:436]: - 'MyNet' (CC:CE:1E:87:B8:F4) ▂▄▆█
[23:03:13][D][wifi:436]: - 'ALPHA' (98:9B:CB:F2:C3:D3) ▂▄▆█
[23:03:13][D][wifi:436]: - 'Vodafone Hotspot' (AE:22:15:DE:6C:6B) ▂▄▆█
[23:03:13][D][wifi:436]: - 'ALPHA' (AC:22:05:DE:6C:6B) ▂▄▆█
[23:03:13][D][wifi:436]: - 'WLAN-86D277' (2C:3A:FD:12:E5:48) ▂▄▆█
[23:03:13][D][wifi:436]: - 'cca_guest' (0A:96:D7:96:A2:CC) ▂▄▆█
[23:03:13][D][wifi:436]: - 'Vodafone-E7BA' (70:54:25:64:F6:5D) ▂▄▆█
[23:03:13][I][wifi:247]: WiFi Connecting to 'cca'...
[23:03:15][W][wifi_esp8266:483]: Event: Disconnected ssid='cca' bssid=08:96:D7:96:A2:CC reason='Auth Expired'
[23:03:15][W][wifi:535]: Error while connecting to network.
[23:03:15][W][wifi:570]: Restarting WiFi adapter...
[23:03:15][I][wifi:247]: WiFi Connecting to 'cca'...
[23:03:18][W][wifi_esp8266:483]: Event: Disconnected ssid='cca' bssid=08:96:D7:96:A2:CC reason='Auth Expired'
[23:03:18][W][wifi:535]: Error while connecting to network.
[23:03:18][W][wifi:570]: Restarting WiFi adapter...

Additional information

No response

Nathanc87 commented 3 years ago

facing the same issue as of today...

keyb-on-ice commented 3 years ago

Hello, please add "update_interval: 2s" under display:

kaysimon commented 3 years ago

I added the line "update_interval: 2s" and the first connection try returns.... [21:11:52][I][wifi:247]: WiFi Connecting to 'cca'... [21:11:54][W][wifi_esp8266:483]: Event: Disconnected ssid='cca' bssid=7C:FF:4D:3F:70:6B reason='Auth Expired' [21:11:54][W][wifi:535]: Error while connecting to network. [21:11:54][W][wifi:570]: Restarting WiFi adapter... [21:11:54][I][wifi:247]: WiFi Connecting to 'cca'... [21:11:56][I][wifi:504]: WiFi Connected!

But then the board connected instantly.

Very nice, thank you very much ;)

Multipage commented 3 years ago

Having the same problem with a 'slimmelezer'. Tried to put the update_interval: 2s in the config file but it says it's the wrong position. I placed it under esphome: Don't see where to put it now.

The only thing that's 'working' right now is my accesspoint set to auto on all settings otherwise i have frequent disconnects and connecting problems like 'Auth expired', timeouts and that kind of stuff

keyb-on-ice commented 3 years ago

The wifi problem here exist only in connection with the Waveshare e-paper display. If you do not use a e-paper display, there is no configuration "display" where this entry "update_interval: 2s" can be added.

Multipage commented 3 years ago

I was hoping for the same fix for 'slimmelezer'. Wifi is Not working very well in the last ESPHome versions :( Currently had a node up for hours..now ..it doesn't connect anymore with all then Wifi errors you can think off

grego1981 commented 2 years ago

Same behaviour with ESP8266 nodemcu which does not connect if an amg8833 sensor is connected of a VL53L0X or any other sensor using SDA SCL pins. The same code works if the hardware is not connected. The example config for every hardware (without ESPHome that is) work just fine to the same wifi setup.

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.

arko36 commented 2 years ago

Same problem as #2912, waiting for resolution. https://github.com/esphome/issues/issues/2912