esphome / issues

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

captive_portal: throw reason='Probe Request Unsuccessful' on Sonoff basic #1120

Open mguaylam opened 4 years ago

mguaylam commented 4 years ago

Operating environment/Installation (Hass.io/Docker/pip/etc.):

Docker raspbian ESP (ESP32/ESP8266, Board/Sonoff):

8266 Sonoff basic Affected component:

https://esphome.io/components/captive_portal.html

Description of problem: When enabling captiveportal: on the sonoff basic (8266), it cannot connect to the Wi-Fi showing this error in the console : reason='Probe Request Unsuccessful' while trying to connect to my AP. If I remove the captiveportal:, it works fine. Also, adding debug: seem's to fix the issue weirdly. I can confirm that the captive portal is working with (debug:) added to the config.

Problem-relevant YAML-configuration entries:

esphome:
  name: lampe_chevet
  platform: ESP8266
  board: esp8285

wifi:
  ssid: "Amenophis"
  password: "***"

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

captive_portal:

# Enable logging
logger:

# Enable Home Assistant API
api:
  password: "***"

ota:
  password: "***"

binary_sensor:
  - platform: gpio
    pin:
      number: GPIO0
      mode: INPUT_PULLUP
      inverted: True
    name: "Lampe de chevet"
    on_press:
      - switch.toggle: relay

switch:
  - platform: gpio
    name: "Lampe de chevet"
    icon: "mdi:lamp"
    pin: GPIO12
    id: relay

status_led:
  pin:
    number: GPIO13
    inverted: yes

Logs (if applicable):

Using 'COM9' as serial port.
Showing logs:
[11:56:47][W][wifi_esp8266:334]: Event: Disconnected ssid='Amenophis' reason='Probe Request Unsuccessful'
[11:56:47][W][wifi:451]: Error while connecting to network.
[11:56:47][W][wifi:488]: Restarting WiFi adapter...
[11:56:47][I][wifi:193]: WiFi Connecting to 'Amenophis'...
[11:56:53][W][wifi_esp8266:334]: Event: Disconnected ssid='Amenophis' reason='Probe Request Unsuccessful'
[11:56:53][W][wifi:451]: Error while connecting to network.
[11:56:53][W][wifi:488]: Restarting WiFi adapter...
[11:56:58][D][wifi:304]: Starting scan...
[11:57:04][D][wifi:319]: Found networks:
[11:57:04][I][wifi:365]: - 'Amenophis' (E4:F4:C6:12:61:36) ▂▄▆█
[11:57:04][D][wifi:366]:     Channel: 7
[11:57:04][D][wifi:367]:     RSSI: -34 dB
[11:57:04][D][wifi:369]: - 'VIRGIN806' (2C:79:D7:02:31:3E) ▂▄▆█
[Section removed]
[11:57:05][D][wifi:369]: - 'VIDEOTRON2535' (04:BF:6D:59:C3:14) ▂▄▆█
[11:57:05][I][wifi:193]: WiFi Connecting to 'Amenophis'...
[11:57:10][W][wifi_esp8266:334]: Event: Disconnected ssid='Amenophis' reason='Probe Request Unsuccessful'
[11:57:10][W][wifi:451]: Error while connecting to network.
[11:57:10][W][wifi:488]: Restarting WiFi adapter...
[11:57:11][I][wifi:193]: WiFi Connecting to 'Amenophis'...
[11:57:16][W][wifi_esp8266:334]: Event: Disconnected ssid='Amenophis' reason='Probe Request Unsuccessful'
[11:57:16][W][wifi:451]: Error while connecting to network.
[11:57:16][W][wifi:488]: Restarting WiFi adapter...

Additional information and things you've tried:

Working logs :

Using 'COM9' as serial port.
Showing logs:
[12:04:04][W][wifi_esp8266:337]: Event: Disconnected ssid='Amenophis' bssid=E4:F4:C6:12:61:36 reason='4-Way Handshake Timeout'
[12:04:04][W][wifi:451]: Error while connecting to network.
[12:04:04][W][wifi:488]: Restarting WiFi adapter...
[12:04:04][W][wifi_esp8266:337]: Event: Disconnected ssid='Amenophis' bssid=E4:F4:C6:12:61:36 reason='Authentication Failed'
[12:04:04][I][wifi:193]: WiFi Connecting to 'Amenophis'...
[12:04:13][W][wifi_esp8266:337]: Event: Disconnected ssid='Amenophis' bssid=E4:F4:C6:12:61:36 reason='4-Way Handshake Timeout'
[12:04:13][W][wifi:451]: Error while connecting to network.
[12:04:13][W][wifi:488]: Restarting WiFi adapter...
[12:04:13][W][wifi_esp8266:337]: Event: Disconnected ssid='Amenophis' bssid=E4:F4:C6:12:61:36 reason='Authentication Failed'
[12:04:18][D][wifi:304]: Starting scan...
[12:04:25][D][wifi:319]: Found networks:
[12:04:25][I][wifi:365]: - 'Amenophis' (E4:F4:C6:12:61:36) ▂▄▆█
[12:04:25][D][wifi:366]:     Channel: 7
[12:04:25][D][wifi:367]:     RSSI: -38 dB
[12:04:25][D][wifi:369]: - 'VIRGIN806' (2C:79:D7:02:31:3E) ▂▄▆█
[Section removed]
[12:04:25][D][wifi:369]: - 'RGL' (5C:F4:AB:A8:E3:44) ▂▄▆█
[12:04:25][I][wifi:193]: WiFi Connecting to 'Amenophis'...
[12:04:34][W][wifi_esp8266:337]: Event: Disconnected ssid='Amenophis' bssid=E4:F4:C6:12:61:36 reason='4-Way Handshake Timeout'
[12:04:34][W][wifi:451]: Error while connecting to network.
[12:04:34][W][wifi:488]: Restarting WiFi adapter...
[12:04:34][W][wifi_esp8266:337]: Event: Disconnected ssid='Amenophis' bssid=E4:F4:C6:12:61:36 reason='Authentication Failed'
[12:04:34][I][wifi:193]: WiFi Connecting to 'Amenophis'...
[12:04:43][W][wifi_esp8266:337]: Event: Disconnected ssid='Amenophis' bssid=E4:F4:C6:12:61:36 reason='4-Way Handshake Timeout'
[12:04:43][W][wifi:451]: Error while connecting to network.
[12:04:43][W][wifi:488]: Restarting WiFi adapter...
[12:04:43][W][wifi_esp8266:337]: Event: Disconnected ssid='Amenophis' bssid=E4:F4:C6:12:61:36 reason='Authentication Failed'
[12:04:48][I][wifi:115]: Starting fallback AP!
[12:04:48][C][wifi:160]: Setting up AP...
[12:04:48][C][wifi:162]:   AP SSID: 'Lampe Chevet Fallback Hotspot'
[12:04:48][C][wifi:163]:   AP Password: 'UiY3zqAejZUQ'
[12:04:49][C][wifi:172]:   IP Address: 192.168.4.1
[12:04:49][D][wifi:304]: Starting scan...
[12:04:55][D][wifi:319]: Found networks:
[12:04:55][I][wifi:365]: - 'Amenophis' (E4:F4:C6:12:61:36) ▂▄▆█
[12:04:55][D][wifi:366]:     Channel: 7
[12:04:55][D][wifi:367]:     RSSI: -36 dB
[12:04:55][D][wifi:369]: - 'VIRGIN806' (2C:79:D7:02:31:3E) ▂▄▆█
[Section removed]
[12:04:55][D][wifi:369]: - 'RGL' (5C:F4:AB:A8:E3:44) ▂▄▆█
[12:04:55][I][wifi:193]: WiFi Connecting to 'Amenophis'...
[12:05:07][W][wifi_esp8266:337]: Event: Disconnected ssid='Amenophis' bssid=E4:F4:C6:12:61:36 reason='4-Way Handshake Timeout'
[12:05:07][W][wifi:451]: Error while connecting to network.
[12:05:07][I][wifi:193]: WiFi Connecting to 'Amenophis'...
[12:05:07][W][wifi_esp8266:337]: Event: Disconnected ssid='Amenophis' bssid=E4:F4:C6:12:61:36 reason='Authentication Failed'
[12:05:07][W][wifi:451]: Error while connecting to network.
[12:05:12][D][wifi:304]: Starting scan...
[12:05:18][D][wifi:319]: Found networks:
[12:05:18][I][wifi:365]: - 'Amenophis' (E4:F4:C6:12:61:36) ▂▄▆█
[12:05:18][D][wifi:366]:     Channel: 7
[12:05:18][D][wifi:367]:     RSSI: -37 dB
[12:05:19][D][wifi:369]: - 'VIRGIN806' (2C:79:D7:02:31:3E) ▂▄▆█
[Section removed]
[12:05:19][D][wifi:369]: - 'RGL-EXT' (80:26:89:42:02:20) ▂▄▆█
[12:05:19][I][wifi:193]: WiFi Connecting to 'Amenophis'...
[12:05:19][W][wifi_esp8266:337]: Event: Disconnected ssid='Amenophis' bssid=E4:F4:C6:12:61:36 reason='Association Leave'
[12:05:19][W][wifi:451]: Error while connecting to network.
[12:05:19][I][wifi:193]: WiFi Connecting to 'Amenophis'...
[12:05:28][W][wifi_esp8266:337]: Event: Disconnected ssid='Amenophis' bssid=E4:F4:C6:12:61:36 reason='4-Way Handshake Timeout'
[12:05:28][W][wifi:451]: Error while connecting to network.
[12:05:33][D][wifi:304]: Starting scan...
[12:05:39][D][wifi:319]: Found networks:
[12:05:39][I][wifi:365]: - 'Amenophis' (E4:F4:C6:12:61:36) ▂▄▆█
[12:05:39][D][wifi:366]:     Channel: 7
[12:05:39][D][wifi:367]:     RSSI: -40 dB
[12:05:39][D][wifi:369]: - 'VIRGIN806' (2C:79:D7:02:31:3E) ▂▄▆█
[Section removed]
[12:05:39][D][wifi:369]: - 'Grace&Frankie' (34:DB:9C:82:44:0E) ▂▄▆█
[12:05:39][I][wifi:193]: WiFi Connecting to 'Amenophis'...
[12:05:39][W][wifi_esp8266:337]: Event: Disconnected ssid='Amenophis' bssid=E4:F4:C6:12:61:36 reason='Authentication Failed'
[12:05:39][W][wifi:451]: Error while connecting to network.
[12:05:39][I][wifi:193]: WiFi Connecting to 'Amenophis'...
[12:05:48][W][wifi_esp8266:337]: Event: Disconnected ssid='Amenophis' bssid=E4:F4:C6:12:61:36 reason='4-Way Handshake Timeout'
[12:05:48][W][wifi:451]: Error while connecting to network.
[12:05:53][D][wifi:304]: Starting scan...
[12:06:00][D][wifi:319]: Found networks:
[12:06:00][I][wifi:365]: - 'Amenophis' (E4:F4:C6:12:61:36) ▂▄▆█
[12:06:00][D][wifi:366]:     Channel: 7
[12:06:00][D][wifi:367]:     RSSI: -40 dB
[12:06:00][D][wifi:369]: - 'VIRGIN806' (2C:79:D7:02:31:3E) ▂▄▆█
[Section removed]
[12:06:00][D][wifi:369]: - '' (44:1C:12:F3:27:11) ▂▄▆█
[12:06:00][I][wifi:193]: WiFi Connecting to 'Amenophis'...
[12:06:00][W][wifi_esp8266:337]: Event: Disconnected ssid='Amenophis' bssid=E4:F4:C6:12:61:36 reason='Authentication Failed'
[12:06:00][W][wifi:451]: Error while connecting to network.
[12:06:00][I][wifi:193]: WiFi Connecting to 'Amenophis'...
[12:06:09][W][wifi_esp8266:337]: Event: Disconnected ssid='Amenophis' bssid=E4:F4:C6:12:61:36 reason='4-Way Handshake Timeout'
[12:06:09][W][wifi:451]: Error while connecting to network.
[12:06:14][D][wifi:304]: Starting scan...
[12:06:20][D][wifi:319]: Found networks:
[12:06:20][I][wifi:365]: - 'Amenophis' (E4:F4:C6:12:61:36) ▂▄▆█
[12:06:20][D][wifi:366]:     Channel: 7
[12:06:20][D][wifi:367]:     RSSI: -43 dB
[12:06:20][D][wifi:369]: - 'VIRGIN806' (2C:79:D7:02:31:3E) ▂▄▆█
[Section removed]
[12:06:20][D][wifi:369]: - 'guybrushthreepwood' (00:23:6A:EE:14:42) ▂▄▆█
[12:06:20][I][wifi:193]: WiFi Connecting to 'Amenophis'...
[12:06:20][W][wifi_esp8266:337]: Event: Disconnected ssid='Amenophis' bssid=E4:F4:C6:12:61:36 reason='Authentication Failed'
[12:06:20][W][wifi:451]: Error while connecting to network.
[12:06:20][I][wifi:193]: WiFi Connecting to 'Amenophis'...
[12:06:31][W][wifi_esp8266:337]: Event: Disconnected ssid='Amenophis' bssid=E4:F4:C6:12:61:36 reason='Handshake Failed'
[12:06:31][W][wifi:451]: Error while connecting to network.
[12:06:36][D][wifi:304]: Starting scan...
[12:06:42][D][wifi:319]: Found networks:
[12:06:42][I][wifi:365]: - 'Amenophis' (E4:F4:C6:12:61:36) ▂▄▆█
[12:06:42][D][wifi:366]:     Channel: 7
[12:06:42][D][wifi:367]:     RSSI: -45 dB
[12:06:42][D][wifi:369]: - 'VIRGIN806' (2C:79:D7:02:31:3E) ▂▄▆█
Section removed]
[12:06:43][D][wifi:369]: - 'VIDEOTRON3856' (B8:EC:A3:D2:E9:90) ▂▄▆█
[12:06:43][I][wifi:193]: WiFi Connecting to 'Amenophis'...
[12:06:52][W][wifi_esp8266:337]: Event: Disconnected ssid='Amenophis' bssid=E4:F4:C6:12:61:36 reason='4-Way Handshake Timeout'
[12:06:52][W][wifi:451]: Error while connecting to network.
[12:06:52][I][wifi:193]: WiFi Connecting to 'Amenophis'...
[12:06:52][W][wifi_esp8266:337]: Event: Disconnected ssid='Amenophis' bssid=E4:F4:C6:12:61:36 reason='Authentication Failed'
[12:06:52][W][wifi:451]: Error while connecting to network.
[12:06:57][I][captive_portal:064]: Captive Portal Requested WiFi Settings Change:
[12:06:57][I][captive_portal:065]:   SSID='Amenophis'
[12:06:57][I][captive_portal:066]:   Password='10Hapshepsut'
[12:06:57][D][wifi:304]: Starting scan...
[12:07:03][D][wifi:319]: Found networks:
[12:07:03][I][wifi:365]: - 'Amenophis' (E4:F4:C6:12:61:36) ▂▄▆█
[12:07:03][D][wifi:366]:     Channel: 7
[12:07:03][D][wifi:367]:     RSSI: -41 dB
[12:07:03][D][wifi:369]: - 'VIRGIN806' (2C:79:D7:02:31:3E) ▂▄▆█
[Section removed]
[12:07:03][D][wifi:369]: - 'VIDEOTRON1179' (B8:EC:A3:D0:AE:FC) ▂▄▆█
[12:07:03][I][wifi:193]: WiFi Connecting to 'Amenophis'...
[12:07:03][W][wifi_esp8266:337]: Event: Disconnected ssid='Amenophis' bssid=E4:F4:C6:12:61:36 reason='Association Leave'
[12:07:03][W][wifi:451]: Error while connecting to network.
[12:07:03][I][wifi:193]: WiFi Connecting to 'Amenophis'...
[12:07:06][I][wifi:423]: WiFi Connected!
[12:07:06][C][wifi:283]:   SSID: 'Amenophis'
[12:07:06][C][wifi:284]:   IP Address: 10.0.128.139
[12:07:06][C][wifi:286]:   BSSID: E4:F4:C6:12:61:36
[12:07:06][C][wifi:287]:   Hostname: 'lampe_chevet'
[12:07:06][C][wifi:291]:   Signal strength: -40 dB ▂▄▆█
[12:07:06][C][wifi:295]:   Channel: 7
[12:07:06][C][wifi:296]:   Subnet: 255.255.0.0
[12:07:06][C][wifi:297]:   Gateway: 10.0.0.1
[12:07:06][C][wifi:298]:   DNS1: 10.0.0.1
[12:07:06][C][wifi:299]:   DNS2: (IP unset)
[12:07:06][D][wifi:432]: Disabling AP...
[12:07:06]
[12:07:06]Exception (9):
[12:07:06]epc1=0x40236155 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00d80123 depc=0x00000000
[12:07:06]
[12:07:06]>>>stack>>>
[12:07:06]
[12:07:06]ctx: cont
[12:07:06]sp: 3ffff9e0 end: 3fffffc0 offset: 01a0
[12:07:06]3ffffb80:  00000000 00000003 3ffffc60 402260ca  
[12:07:06]3ffffb90:  3ffffc03 40104c7b 3fff3414 3fff1a8c  
[12:07:06]3ffffba0:  3fff43f4 00000004 3ffffd50 3ffe9a3e  
[12:07:06]3ffffbb0:  00000000 40228509 3fff0f10 3fff1a8c  
[12:07:06]3ffffbc0:  3fff443a 0000002e ffffffff 0000000f  
[12:07:06]3ffffbd0:  00000000 0000000f 3ffffcb0 00000000  
[12:07:06]3ffffbe0:  3fff1338 3fff1300 3fff43f4 4022878b  
[12:07:06]3ffffbf0:  40101f09 3fff1300 3fff43f4 40228b7c  
[12:07:06]3ffffc00:  3ffffc30 3fff1c83 3ffffcb0 402262b4  
[12:07:06]3ffffc10:  3fff1ca7 00000000 00000000 3fff43f4  
[12:07:06]3ffffc20:  3fff43f4 3fff2058 3fff1300 40230519  
[12:07:06]3ffffc30:  005e0001 0000fb00 00000000 4021cb0e  
[12:07:06]3ffffc40:  3fff4448 3fff2058 3fff1300 40231004  
[12:07:06]3ffffc50:  0000005a 00000008 00000074 4021d520  
[12:07:06]3ffffc60:  00000018 3fff1304 00000001 00000000  
[12:07:06]3ffffc70:  00000002 3fff1278 00000004 3ffe8304  
[12:07:06]3ffffc80:  3fff1c7f 0000000f 00000000 3fff2054  
[12:07:06]3ffffc90:  00000000 3fff43f4 3fff4460 4023104c  
[12:07:06]3ffffca0:  3fff1300 3ffffcd0 00000004 3fff2054  
[12:07:06]3ffffcb0:  00000016 3fff1300 3fff2054 40230771  
[12:07:06]3ffffcc0:  3fff1300 3ffffcd0 00000004 40228bd0  
[12:07:06]3ffffcd0:  00000494 00000000 3fff14c4 40228c0c  
[12:07:06]3ffffce0:  3fff2058 3fff1300 000000dc 40230842  
[12:07:06]3ffffcf0:  3fff1a8c 00000001 3fff1aac 00000020  
[12:07:06]3ffffd00:  3ffffd68 3fff1300 3fff2054 40230a1b  
[12:07:06]3ffffd10:  3ffffd68 3ffeaf94 3fff1300 40230aa7  
[12:07:06]3ffffd20:  3fff1a8c 00000001 3ffffdb0 3ffeaf94  
[12:07:06]3ffffd30:  3fff0c14 00000000 3fff0c14 40212044  
[12:07:06]3ffffd40:  3fff0eb0 0000024b 0000024b 4021d2e0  
[12:07:06]3ffffd50:  3fff0b8c 00000000 3ffffda0 4021d704  
[12:07:06]3ffffd60:  3fff0eb0 00000001 fb0000e0 4021094d  
[12:07:06]3ffffd70:  3fff0b8c 00000000 3fff0c28 3fff1ffc  
[12:07:06]3ffffd80:  3fff0b8c 00000000 3fff0c14 402109a6  
[12:07:06]3ffffd90:  3fff0b8c 00000000 3fff0c14 40210705  
[12:07:06]3ffffda0:  3fff2624 0000002c 402102f8 402103d8  
[12:07:06]3ffffdb0:  00000000 00000000 00000001 40100614  
[12:07:06]3ffffdc0:  3ffe9c40 3fff1af0 3fff0c14 4021071c  
[12:07:06]3ffffdd0:  3fff34c4 00000003 00000000 4020d216  
[12:07:06]3ffffde0:  4021feb0 8b80000a 3fff2ba4 00000003  
[12:07:06]3ffffdf0:  4020a264 3ffffe20 3fff2ba4 4021d704  
[12:07:06]3ffffe00:  8b80000a 0000ffff 0100000a 3fff1ffc  
[12:07:06]3ffffe10:  3ffe9c40 3fff2ba4 3fff209c 40209ed6  
[12:07:06]3ffffe20:  4021feb0 8b80000a 3fff2b00 00000100  
[12:07:06]3ffffe30:  3fff1964 00000006 3fff0ae4 00000000  
[12:07:06]3ffffe40:  00000000 00000006 3fff0ae4 00000102  
[12:07:06]3ffffe50:  3fff209c 000304ae 3fff209c 4020a01c  
[12:07:06]3ffffe60:  3fff209c 00000006 3fff0ae4 4021e47c  
[12:07:06]3ffffe70:  3fff1594 00000006 3fff0ae4 4021e510  
[12:07:06]3ffffe80:  3fff209c 00000006 3fff0ae4 4020bea8  
[12:07:06]3ffffe90:  3fff1594 00000007 00000246 00000000  
[12:07:06]3ffffea0:  00000100 00000004 00000001 4021d520  
[12:07:06]3ffffeb0:  3fffff01 3fff0f0c 00000010 00000000  
[12:07:06]3ffffec0:  3fff2444 3fff25fc 3fff0ae4 4020da02  
[12:07:06]3ffffed0:  3fff2258 00000000 00000000 3fff2288  
[12:07:06]3ffffee0:  00000000 00000000 00000000 4021feb0  
[12:07:06]3ffffef0:  00000000 4021feb0 00000000 4021feb0  
[12:07:06]3fffff00:  00000000 4021feb0 00000000 4021feb0  
[12:07:06]3fffff10:  00000000 00000000 3fff21c8 00000000  
[12:07:06]3fffff20:  00000000 3fff21e8 00000000 00000000  
[12:07:06]3fffff30:  00000000 4021feb0 00000000 4021feb0  
[12:07:06]3fffff40:  00000000 4021feb0 00000000 4021feb0  
[12:07:06]3fffff50:  00000000 4021feb0 00000000 00000000  
[12:07:06]3fffff60:  3fff248c 706d616c 00000000 6568635f  
[12:07:06]3fffff70:  3fff2444 3fff25d4 feefeffe feefeffe  
[12:07:06]3fffff80:  3fff25e4 3fff248c 3fff0b58 feefeffe  
[12:07:06]3fffff90:  feefeffe feefeffe feefeffe 3fff0e0c  
[12:07:06]3fffffa0:  3fffdad0 00000000 3fff0ddc 4021bd0c  
[12:07:06]3fffffb0:  feefeffe feefeffe 3ffe853c 4010086d  
[12:07:06]<<<stack<<<
[12:07:06]
[12:07:06] ets Jan  8 2013,rst cause:1, boot mode:(3,6)
[12:07:06]
[12:07:06]load 0x4010f000, len 1384, room 16 
[12:07:06]tail 8
[12:07:06]chksum 0x2d
[12:07:06]csum 0x2d
[12:07:06]v8b899c12
[12:07:06]~ld
[12:07:06][I][logger:156]: Log initialized
[12:07:06][C][status_led:014]: Setting up Status LED...
[12:07:06][C][ota:364]: There have been 1 suspected unsuccessful boot attempts.
[12:07:06][I][app:028]: Running through setup()...
[12:07:06][D][binary_sensor:034]: 'Lampe de chevet': Sending initial state OFF
[12:07:06][C][switch.gpio:011]: Setting up GPIO Switch 'Lampe de chevet'...
[12:07:06][D][switch:025]: 'Lampe de chevet' Turning OFF.
[12:07:06][D][switch:045]: 'Lampe de chevet': Sending state OFF
[12:07:06][D][switch:025]: 'Lampe de chevet' Turning OFF.
[12:07:06][C][wifi:033]: Setting up WiFi...
[12:07:06][D][wifi:304]: Starting scan...
[12:07:12][D][wifi:319]: Found networks:
[12:07:12][I][wifi:365]: - 'Amenophis' (E4:F4:C6:12:61:36) ▂▄▆█
[12:07:12][D][wifi:366]:     Channel: 7
[12:07:12][D][wifi:367]:     RSSI: -35 dB
[12:07:12][D][wifi:369]: - 'VIRGIN806' (2C:79:D7:02:31:3E) ▂▄▆█
[Section removed]
[12:07:12][D][wifi:369]: - 'Simba' (E4:F0:42:D2:6B:42) ▂▄▆█
[12:07:12][I][wifi:193]: WiFi Connecting to 'Amenophis'...
[12:07:20][I][wifi:423]: WiFi Connected!
[12:07:20][C][wifi:283]:   SSID: 'Amenophis'
[12:07:20][C][wifi:284]:   IP Address: 10.0.128.139
[12:07:20][C][wifi:286]:   BSSID: E4:F4:C6:12:61:36
[12:07:20][C][wifi:287]:   Hostname: 'lampe_chevet'
[12:07:20][C][wifi:291]:   Signal strength: -40 dB ▂▄▆█
[12:07:20][C][wifi:295]:   Channel: 7
[12:07:20][C][wifi:296]:   Subnet: 255.255.0.0
[12:07:20][C][wifi:297]:   Gateway: 10.0.0.1
[12:07:20][C][wifi:298]:   DNS1: 10.0.0.1
[12:07:20][C][wifi:299]:   DNS2: (IP unset)
[12:07:20][D][wifi:432]: Disabling AP...
[12:07:20][C][ota:029]: Over-The-Air Updates:
[12:07:20][C][ota:030]:   Address: lampe_chevet.local:8266
[12:07:20][C][ota:032]:   Using Password.
[12:07:20][C][api:022]: Setting up Home Assistant API server...
[12:07:20][I][app:058]: setup() finished successfully!
[12:07:20][I][app:100]: ESPHome version 1.14.3 compiled on Mar 31 2020, 15:59:54
[12:07:20][C][status_led:019]: Status LED:
[12:07:20][C][status_led:020]:   Pin: GPIO13 (Mode: OUTPUT, INVERTED)
[12:07:20][C][wifi:415]: WiFi:
[12:07:20][C][wifi:283]:   SSID: 'Amenophis'
[12:07:20][C][wifi:284]:   IP Address: 10.0.128.139
[12:07:20][C][wifi:286]:   BSSID: E4:F4:C6:12:61:36
[12:07:20][C][wifi:287]:   Hostname: 'lampe_chevet'
[12:07:20][C][wifi:291]:   Signal strength: -40 dB ▂▄▆█
[12:07:20][C][wifi:295]:   Channel: 7
[12:07:20][C][wifi:296]:   Subnet: 255.255.0.0
[12:07:20][C][wifi:297]:   Gateway: 10.0.0.1
[12:07:20][C][wifi:298]:   DNS1: 10.0.0.1
[12:07:20][C][wifi:299]:   DNS2: (IP unset)
[12:07:20][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'Lampe de chevet'
[12:07:20][C][gpio.binary_sensor:016]:   Pin: GPIO0 (Mode: INPUT_PULLUP, INVERTED)
[12:07:20][C][switch.gpio:042]: GPIO Switch 'Lampe de chevet'
[12:07:20][C][switch.gpio:042]:   Icon: 'mdi:lamp'
[12:07:20][C][switch.gpio:043]:   Pin: GPIO12 (Mode: OUTPUT)
[12:07:20][C][switch.gpio:059]:   Restore Mode: Restore (Defaults to OFF)
[12:07:20][C][logger:175]: Logger:
[12:07:20][C][logger:176]:   Level: DEBUG
[12:07:20][C][logger:177]:   Log Baud Rate: 115200
[12:07:20][C][logger:178]:   Hardware UART: UART0
[12:07:20][C][captive_portal:169]: Captive Portal:
[12:07:20][C][ota:029]: Over-The-Air Updates:
[12:07:20][C][ota:030]:   Address: lampe_chevet.local:8266
[12:07:20][C][ota:032]:   Using Password.
[12:07:20][C][api:095]: API Server:
[12:07:20][C][api:096]:   Address: lampe_chevet.local:6053
[12:07:20][D][debug:023]: ESPHome version 1.14.3
[12:07:20][D][debug:025]: Free Heap Size: 35656 bytes
[12:07:20][D][debug:053]: Flash Chip: Size=1024kB Speed=40MHz Mode=DOUT
[12:07:20][D][debug:190]: Chip ID: 0x0006518B
[12:07:20][D][debug:191]: SDK Version: 2.2.1(cfd48f3)
[12:07:20][D][debug:192]: Core Version: 2_5_2
[12:07:20][D][debug:193]: Boot Version=31 Mode=1
[12:07:20][D][debug:194]: CPU Frequency: 80
[12:07:20][D][debug:195]: Flash Chip ID=0x0014405E
[12:07:20][D][debug:196]: Reset Reason: Exception
[12:07:20][D][debug:197]: Reset Info: Fatal exception:9 flag:2 (EXCEPTION) epc1:0x40236155 epc2:0x00000000 epc3:0x00000000 excvaddr:0x00d80123 depc:0x00000000
[12:08:04][D][api.connection:583]: Client 'Home Assistant 0.107.0 (10.0.20.20)' connected successfully!
[12:09:06][I][ota:046]: Boot seems successful, resetting boot loop counter.
[12:09:09][D][switch:021]: 'Lampe de chevet' Turning ON.
[12:09:09][D][switch:045]: 'Lampe de chevet': Sending state ON
[12:09:10][D][switch:025]: 'Lampe de chevet' Turning OFF.
[12:09:10][D][switch:045]: 'Lampe de chevet': Sending state OFF
[12:09:10][D][switch:021]: 'Lampe de chevet' Turning ON.
[12:09:10][D][switch:045]: 'Lampe de chevet': Sending state ON
[12:09:11][D][switch:025]: 'Lampe de chevet' Turning OFF.
[12:09:11][D][switch:045]: 'Lampe de chevet': Sending state OFF
Zoogara commented 4 years ago

Same issue experienced, worked fine untill adding a timer and condition so maybe a memory issue?

Removed captive_portal:, all good

andordavoti commented 4 years ago

having the same issue, this bricked a lot of my sonoff devices. any news on how to fix this?

timelyfiasco commented 4 years ago

@andordavoti I experienced this also. But I cant reproduce the error. I am thinking maybe it was due to the dhcp server. Just start with a simple code then slowly add new modules and see if it works.

andordavoti commented 4 years ago

@timelyfiasco after swapping sonoffs, the new ones connected without issues. I have no idea why, it's the same code🙃

MaxWh1t3 commented 3 years ago

https://github.com/esphome/issues/issues/952 worked for me on 3 boards!

BuildTheRobots commented 3 years ago

Had the same issue, but until I found this post I was convinced it was enabling/disabling a DHT sensor that was causing it. Now that I've disabled the captive_portal wifi and sensor are both working.

sielenk commented 3 years ago

EspHome Version 1.16.2

Changing the configuration for my device made this problem reappear for one of my devices. Adding or removing "captive_portal" has no effect, the same goes for "status_led".

It works when using "switch" with "gpio" platform for the relay and fails when replacing that with "output" and using that for the switch.

The files: atticfan.yaml (good) atticfan.yaml (bad)

andriej commented 3 years ago

Encountered this on one of my sonoffs. It was "down" since half of year (1.15), I've reflashed it and put newest 1.19.4 on - still "Probe request" and was not able to login to WiFi. I've found one of issues regarding removing "captive portal" - did that, removed one line, reflashed and it works like a charm.

DoctorOctagonapus commented 3 years ago

Welp, I'm stuck. Got a Sonoff Basic that's now totally unusable since updating to 2021.10.3.

Logs:

INFO Reading configuration /config/esphome/[name].yaml...
INFO Starting log output from /dev/ttyUSB0 with baud rate 115200
[15:21:24]scandone
[15:21:24][W][wifi_esp8266:479]: Event: Disconnected ssid='[name]' reason='Probe Request Unsuccessful'
[15:21:24]wifi evt: 1
[15:21:24]STA disconnect: 201
[15:21:24][W][wifi:535]: Error while connecting to network.
[15:21:24][W][wifi:570]: Restarting WiFi adapter...
[15:21:24][V][wifi_esp8266:060]: Disabling STA.
[15:21:24]del if0
[15:21:24]usl
[15:21:24]mode : null
[15:21:24][V][wifi_esp8266:535]: Event: Changed Mode old=STA new=OFF
[15:21:24]wifi evt: 8
[15:21:30][I][wifi:247]: WiFi Connecting to '[name]'...
[15:21:30][V][wifi:249]: Connection Params:
[15:21:30][V][wifi:250]:   SSID: '[name]'
[15:21:30][V][wifi:255]:   BSSID: Not Set
[15:21:30][V][wifi:273]:   Password: [redacted]
[15:21:30][V][wifi:280]:   Channel: Not Set
[15:21:30][V][wifi:287]:   Using DHCP IP
[15:21:30][V][wifi:289]:   Hidden: NO
[15:21:30][V][wifi_esp8266:058]: Enabling STA.
[15:21:30]mode : sta([Mac])
[15:21:30]add if0
[15:21:30][V][wifi_esp8266:535]: Event: Changed Mode old=OFF new=STA
[15:21:30]wifi evt: 8
[15:21:32]scandone
[15:21:32][W][wifi_esp8266:479]: Event: Disconnected ssid='[name]' reason='Probe Request Unsuccessful'
[15:21:32]wifi evt: 1
[15:21:32]STA disconnect: 201
[15:21:32][W][wifi:535]: Error while connecting to network.
[15:21:32][W][wifi:570]: Restarting WiFi adapter...
Eventually it starts up the fallback AP and continues on a loop of failed connection attempts.

Config:

  name: [redacted]
  platform: ESP8266
  board: esp01_1m

wifi:
  # Hidden SSID
  ssid: !secret wifi_ssid
  password: !secret wifi_pw
  fast_connect: true
  output_power: 10db

  ap:
    ssid: [name]
    password: [redacted]

#captive_portal:

# Enable logging
logger:
  level: VERBOSE

# Enable Home Assistant API
api:

ota:

...

I've already disabled captive_portal after this device broke with the same error once before. It was fine with previous versions of ESPHome, but the latest one has broken it completely now apparently. All my other ESP devices work, including another Sonoff Basic that still has captive_portal enabled. This one has apparently just decided it doesn't wanna live any more.

Any ideas?

tmarkson commented 2 years ago

Any ideas?

@DoctorOctagonapus I suggest simplifying your config to barebones, as others have before. Try removing the ap, output_power, and level items. Remove any other components below ota and try flashing -- if that works, then add those components individually, uploading firmware in between adds. I've found compatibility issues this way, especially when using ESP8266 devices that seem to choke on complex items. Some variants may be running at reduced clock or another handicap.

pironic commented 2 years ago

here is my config

substitutions:
  id: bes02
  ip: 10.1.50.121
  class: door
  version: 22.04.09.02

esphome:
  name: ${id}
  platform: esp8266
  board: nodemcu

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_pass
  fast_connect: true
  manual_ip:
    static_ip: "${ip}"
    subnet: 255.255.255.0
    gateway: 10.1.50.1

  ap:
    ssid: "${id} Fallback"
    password: !secret wifi_pass

logger:
  level: VERBOSE
  baud_rate: 76800
  hardware_uart: UART0

And i'm getting the same problems on 2022.3.2. Did anyone ever figure out a true cause for this?

image

alnavasa commented 2 years ago

Robotdyn 2x relay board, ESP8266 same issue with wireless as soon as the code was a little bit interesting. managed to solve the issue by commenting the lines of captive portal and fallback ap

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password
#  power_save_mode: none
  # Enable fallback hotspot (captive portal) in case wifi connection fails
#  ap:
#    ssid: "$device_name Fallback Hotspot"
#    password: "lghjfd5rfsU"

#captive_portal:
hcooper commented 1 year ago

+1, I found a fresh install of ESPHome on a Sonoff Basic R2 fails with

[W][wifi_esp8266:479]: Event: Disconnected ssid=... reason='Probe Request Unsuccessful'

However I can confirm adding debug: to the config makes it work!

Also of note, a fresh install of Tasmota works fine (v12.3.1)

vks007 commented 1 year ago

I am also getting the same error with many of my modules. Is there a solution to this? The other thread suggested to use framework version 1.8.0 but that's too old now, it doesnt even compile now. @hcooper are you sure adding debug helps because logger level debug is anyway the default?

johny-mnemonic commented 1 year ago

This must be some kind of conflict in the compilation. I just hit this exact issue after using two Sonoff basics with same configuration for a long time without any issue. What triggered it was adding the DHT sensor definition to one of them. After going through these threads I came to a conclusion it must be a combination of modules that results to either filling too much RAM or using too much of some other resource of this poor little bugger. And sure enough, removing some modules fixed it. So, my Sonoff basic modules were both running with captive portal, mqtt client, binary_sensor, switch and output defined. The one where I added the DHT sensor is now running just fine with captive portal and mqtt removed. Not sure which one was the culprit but after removing these and flashing it using serial link it works just fine 🤷‍♂️

myLens commented 1 year ago

I also ended up in a messed runtime. Adding and removing modules leads to unpredictable results - no matter it it is webserver, a simple sensor, the captive portal .... I suppose the wifi_esp8266 has memory issues or some combination of modules causes malfunction. Sometimes it works like a charm but even the slightest change can become a game changer - very disappointing.

aiexz commented 1 year ago

Removing captive_portal from config worked for HW-628 board (nodemcu clone)

kjake commented 1 year ago

However I can confirm adding debug: to the config makes it work!

+1 this worked for me on two of my D1 boards and got them back online with the latest build of ESPhome (2023.9.3)