MaximeBe
(Berry)
October 2, 2023, 9:12pm
1
Hi guys,
I bought a ESP32-WROOM-32 board and I try to connect the board to the wifi using ESPhome.
Below my yaml configuration :
‘’’
esphome:
name: test
friendly_name: test
esp32:
board: esp32dev
framework:
type: arduino
Enable logging
logger:
level: INFO
Enable Home Assistant API
api:
encryption:
key: "vZje3zTste33qWEC5D+0rUXWEG0iQ7snRbEK6JGcxRI="
ota:
password: “954c867dc108b2278ce055e683ee81dc”
wifi:
ssid: “my_SSID”
password: “my_password”
manual_ip:
static_ip: 192.168.1.150
gateway: 192.168.1.1
subnet: 255.255.255.0
fast_connect: true
Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Test Fallback Hotspot"
password: "8dfubLnWoNqK"
#captive_portal:
‘’’
You can find attached the log
1 Like
MaximeBe
(Berry)
October 2, 2023, 9:13pm
2
ets Jul 29 2019 12:21:46
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:1184
load:0x40078000,len:13132
load:0x40080400,len:3036
entry 0x400805e4
[I][logger:268]: Log initialized
[I][app:029]: Running through setup()…
[I][wifi:277]: WiFi Connecting to ‘Baboon’…
[W][wifi:601]: WiFi network can not be found anymore.
[W][wifi_esp32:455]: Event: Disconnected ssid=‘Baboon’ reason=‘Probe Request Unsuccessful’
[W][wifi:591]: Error while connecting to network.
[W][wifi:627]: Restarting WiFi adapter…
[I][wifi:277]: WiFi Connecting to ‘Baboon’…
[W][wifi_esp32:455]: Event: Disconnected ssid=‘Baboon’ reason=‘Probe Request Unsuccessful’
[W][wifi:601]: WiFi network can not be found anymore.
[W][wifi:627]: Restarting WiFi adapter…
[I][wifi:277]: WiFi Connecting to ‘Baboon’…
[W][wifi_esp32:455]: Event: Disconnected ssid=‘Baboon’ reason=‘Probe Request Unsuccessful’
[W][wifi:601]: WiFi network can not be found anymore.
[W][wifi:627]: Restarting WiFi adapter…
[I][wifi:277]: WiFi Connecting to ‘Baboon’…
[W][wifi_esp32:455]: Event: Disconnected ssid=‘Baboon’ reason=‘Probe Request Unsuccessful’
[W][wifi:601]: WiFi network can not be found anymore.
[W][wifi:627]: Restarting WiFi adapter…
[I][wifi:277]: WiFi Connecting to ‘Baboon’…
[W][wifi_esp32:455]: Event: Disconnected ssid=‘Baboon’ reason=‘Probe Request Unsuccessful’
[W][wifi:601]: WiFi network can not be found anymore.
[W][wifi:627]: Restarting WiFi adapter…
[I][wifi:277]: WiFi Connecting to ‘Baboon’…
[W][wifi_esp32:455]: Event: Disconnected ssid=‘Baboon’ reason=‘Probe Request Unsuccessful’
[W][wifi:601]: WiFi network can not be found anymore.
[W][wifi:627]: Restarting WiFi adapter…
[I][wifi:277]: WiFi Connecting to ‘Baboon’…
[W][wifi_esp32:455]: Event: Disconnected ssid=‘Baboon’ reason=‘Probe Request Unsuccessful’
[W][wifi:601]: WiFi network can not be found anymore.
[W][wifi:627]: Restarting WiFi adapter…
MaximeBe
(Berry)
October 2, 2023, 9:15pm
3
Any Idea about this WIFI connection problem ?
Thanks in advance for your support
NathanCu
(Nathan Curtis)
October 2, 2023, 10:10pm
4
Is your Wifi SSID 6Ghz, 5Ghz, 2. 4Ghz or mixed?
NathanCu
(Nathan Curtis)
October 3, 2023, 2:04pm
6
Well ok that’s not it.
In this github ticket the op has the same issue you list (error is slightly different) but they ended up having to change thier config to specify the correct board type. In thier case a D1 mini. So when they edited the configuration for the correct board. It fired up.
opened 01:49PM - 07 Oct 22 UTC
closed 12:03PM - 21 Nov 22 UTC
### The problem
Hey there,
I just bought some 8266EX from [Amazon](https://ww… w.amazon.de/dp/B08BTH77F3) and flashed them with ESPhome. I got some weird connection issue going on:
The ESP Boots up and tries to connect to my WiFi and after a lot of failed 'Probe Request Unsuccessful' Messages it sometimes connects to my WiFi and after a short while it fails of with a 'Beacon Timeout'.
What I already tried:
- Removed Sensors from Pins
- Restarted Router
- Erase Flash with esptool
- Enabled 802.11b+g+n in Router
- Disabled AP and Captive Portal
- Set power_save_mode: NONE
- Switched from DHCP to Static
- Switched board from esp01_1m to nodemcuv2
My Config:
```
esphome:
name: door
esp8266:
board: nodemcuv2
framework:
version: recommended
# Enable logging
logger:
level: VERY_VERBOSE
# Enable Home Assistant API
api:
encryption:
key: "<apipassword>"
ota:
password: "<ota password>"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
power_save_mode: NONE
manual_ip:
static_ip: 192.168.178.201
gateway: 192.168.178.1
subnet: 255.255.255.0
# Enable fallback hotspot (captive portal) in case wifi connection fails
# ap:
# ssid: "Door Fallback Hotspot"
#captive_portal:
switch:
- platform: gpio
pin: 2
inverted: true
name: "Door Opener"
id: door_relay
icon: "mdi:door"
on_turn_on:
- delay: 3000ms
- switch.turn_off: door_relay
```
'Probe Request Unsuccessful' Log:
```
[W][wifi:583]: Restarting WiFi adapter...
[V][wifi_esp8266:060]: Disabling STA.
del if0
usl
mode : null
[V][wifi_esp8266:534]: Event: Changed Mode old=STA new=OFF
wifi evt: 8
[D][wifi:384]: Starting scan...
[V][wifi_esp8266:058]: Enabling STA.
mode : sta(4c:75:25:34:a5:7c)
ip:192.168.178.201,mask:255.255.255.0,gw:192.168.178.1
add if0
[V][wifi_esp8266:534]: Event: Changed Mode old=OFF new=STA
wifi evt: 8
scandone
[D][wifi:399]: Found networks:
[I][wifi:442]: - 'FRITZ!Box 7490' [redacted]▂▄▆█
[D][wifi:444]: Channel: 1
[D][wifi:445]: RSSI: -62 dB
[D][wifi:447]: - [redacted] [redacted]▂▄▆█
[D][wifi:447]: - [redacted] [redacted]▂▄▆█
[D][wifi:447]: - [redacted] [redacted]▂▄▆█
[D][wifi:447]: - [redacted] [redacted]▂▄▆█
[I][wifi:255]: WiFi Connecting to 'FRITZ!Box 7490'...
[V][wifi:257]: Connection Params:
[V][wifi:258]: SSID: 'FRITZ!Box 7490'
[V][wifi:261]: BSSID: E0:28:6D:25:CC:F7
[V][wifi:281]: Password: [redacted]
[V][wifi:286]: Channel: 1
[V][wifi:292]: Manual IP: Static IP=192.168.178.201 Gateway=192.168.178.1 Subnet=255.255.255.0 DNS1=0.0.0.0 DNS2=0.0.0.0
[V][wifi:297]: Hidden: NO
scandone
[W][wifi_esp8266:479]: Event: Disconnected ssid='FRITZ!Box 7490' reason='Probe Request Unsuccessful'
wifi evt: 1
STA disconnect: 201
[W][wifi:547]: Error while connecting to network.
[W][wifi:583]: Restarting WiFi adapter...
```
When the connection suddenly works:
```
[W][wifi:583]: Restarting WiFi adapter...
[V][wifi_esp8266:060]: Disabling STA.
del if0
usl
mode : null
[V][wifi_esp8266:534]: Event: Changed Mode old=STA new=OFF
wifi evt: 8
[D][wifi:384]: Starting scan...
[V][wifi_esp8266:058]: Enabling STA.
mode : sta(4c:75:25:34:a5:7c)
ip:192.168.178.201,mask:255.255.255.0,gw:192.168.178.1
add if0
[V][wifi_esp8266:534]: Event: Changed Mode old=OFF new=STA
wifi evt: 8
scandone
[D][wifi:399]: Found networks:
[I][wifi:442]: - 'FRITZ!Box 7490' [redacted]▂▄▆█
[D][wifi:444]: Channel: 1
[D][wifi:445]: RSSI: -55 dB
[D][wifi:447]: - [redacted] [redacted]▂▄▆█
[D][wifi:447]: - [redacted] [redacted]▂▄▆█
[D][wifi:447]: - [redacted] [redacted]▂▄▆█
[D][wifi:447]: - [redacted] [redacted]▂▄▆█
[D][wifi:447]: - [redacted] [redacted]▂▄▆█
[D][wifi:447]: - [redacted] [redacted]▂▄▆█
[I][wifi:255]: WiFi Connecting to 'FRITZ!Box 7490'...
[V][wifi:257]: Connection Params:
[V][wifi:258]: SSID: 'FRITZ!Box 7490'
[V][wifi:261]: BSSID: E0:28:6D:25:CC:F7
[V][wifi:281]: Password: [redacted]
[V][wifi:286]: Channel: 1
[V][wifi:292]: Manual IP: Static IP=192.168.178.201 Gateway=192.168.178.1 Subnet=255.255.255.0 DNS1=0.0.0.0 DNS2=0.0.0.0
[V][wifi:297]: Hidden: NO
scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 5
cnt
connected with FRITZ!Box 7490, channel 1
ip:192.168.178.201,mask:255.255.255.0,gw:192.168.178.1
[V][wifi_esp8266:468]: Event: Connected ssid='FRITZ!Box 7490' bssid=E0:28:6D:25:CC:F7 channel=1
wifi evt: 0
[V][wifi_esp8266:507]: Event: Got IP static_ip=192.168.178.201 gateway=192.168.178.1 netmask=255.255.255.0
wifi evt: 3
[I][wifi:516]: WiFi Connected!
[C][wifi:360]: Local MAC: 4C:75:25:34:A5:7C
[C][wifi:361]: SSID: [redacted]
[C][wifi:362]: IP Address: 192.168.178.201
[C][wifi:363]: BSSID: [redacted]
[C][wifi:365]: Hostname: 'door'
[C][wifi:367]: Signal strength: -62 dB ▂▄▆█
[V][wifi:369]: Priority: -39.0
[C][wifi:371]: Channel: 1
[C][wifi:372]: Subnet: 255.255.255.0
[C][wifi:373]: Gateway: 192.168.178.1
[C][wifi:374]: DNS1: 0.0.0.0
[C][wifi:375]: DNS2: 0.0.0.0
[C][ota:089]: Over-The-Air Updates:
[C][ota:090]: Address: 192.168.178.201:8266
[C][ota:093]: Using Password.
[C][api:025]: Setting up Home Assistant API server...
[I][app:062]: setup() finished successfully!
[I][ota:109]: Boot seems successful, resetting boot loop counter.
[I][app:102]: ESPHome version 2022.9.4 compiled on Oct 7 2022, 13:48:19
[C][wifi:502]: WiFi:
[C][wifi:360]: Local MAC: 4C:75:25:34:A5:7C
[C][wifi:361]: SSID: [redacted]
[C][wifi:362]: IP Address: 192.168.178.201
[C][wifi:363]: BSSID: [redacted]
[C][wifi:365]: Hostname: 'door'
[C][wifi:367]: Signal strength: -62 dB ▂▄▆█
[V][wifi:369]: Priority: -39.0
[C][wifi:371]: Channel: 1
[C][wifi:372]: Subnet: 255.255.255.0
[C][wifi:373]: Gateway: 192.168.178.1
[C][wifi:374]: DNS1: 0.0.0.0
[C][wifi:375]: DNS2: 0.0.0.0
[C][logger:275]: Logger:
[C][logger:276]: Level: VERY_VERBOSE
[C][logger:277]: Log Baud Rate: 115200
[C][logger:278]: Hardware UART: UART0
[C][switch.gpio:050]: GPIO Switch 'Door Opener'
[C][switch.gpio:050]: Icon: 'mdi:door'
[C][switch.gpio:050]: Inverted: YES
[C][switch.gpio:051]: Pin: GPIO2
[C][switch.gpio:073]: Restore Mode: Restore (Defaults to OFF)
[C][mdns:100]: mDNS:
[C][mdns:101]: Hostname: door
[V][mdns:102]: Services:
[V][mdns:104]: - _esphomelib, _tcp, 6053
[V][mdns:106]: TXT: version = 2022.9.4
[V][mdns:106]: TXT: mac = 4c752534a57c
[V][mdns:106]: TXT: platform = ESP8266
[V][mdns:106]: TXT: board = nodemcuv2
[V][mdns:106]: TXT: network = wifi
[C][ota:089]: Over-The-Air Updates:
[C][ota:090]: Address: 192.168.178.201:8266
[C][ota:093]: Using Password.
[C][api:138]: API Server:
[C][api:139]: Address: 192.168.178.201:6053
[C][api:141]: Using noise encryption: YES
fpm close 3
pm open,type:0 0
bcn_timout,ap_probe_send_start
[D][api:102]: Accepted 192.168.178.59
[VV][api.socket:693]: 192.168.178.59: Handshake complete!
[V][component:199]: Component api took a long time for an operation (0.35 s).
[V][component:200]: Components should block for at most 20-30ms.
[VV][api.service:410]: on_hello_request: HelloRequest {
client_info: 'Home Assistant 2022.10.1'
api_version_major: 1
api_version_minor: 7
}
[V][api.connection:898]: Hello from client: 'Home Assistant 2022.10.1 (192.168.178.59)' | API Version 1.7
[VV][api.service:013]: send_hello_response: HelloResponse {
api_version_major: 1
api_version_minor: 7
server_info: 'door (esphome v2022.9.4)'
name: 'door'
}
[VV][api.service:419]: on_connect_request: ConnectRequest {
password: ''
}
[D][api.connection:917]: Home Assistant 2022.10.1 (192.168.178.59): Connected successfully
```
And then after a while the 'Beacon Timeout' (Probably not an issue, but throws me back to the beginning) :
```
[VV][api.service:446]: on_ping_request: PingRequest {}
[VV][api.service:043]: send_ping_response: PingResponse {}
[VV][api.service:446]: on_ping_request: PingRequest {}
[VV][api.service:043]: send_ping_response: PingResponse {}
[VV][api.service:446]: on_ping_request: PingRequest {}
[VV][api.service:043]: send_ping_response: PingResponse {}
[VV][scheduler:195]: Running interval '' with interval=60000 last_execution=1176012 (now=1236017)
[VV][api.service:446]: on_ping_request: PingRequest {}
[VV][api.service:043]: send_ping_response: PingResponse {}
bcn_timout,ap_probe_send_start
ap_probe_send over, rest wifi status to disassoc
state: 5 -> 0 (1)
rm 0
pm close 7
[W][wifi_esp8266:482]: Event: Disconnected ssid='FRITZ!Box 7490' bssid=[redacted] reason='Beacon Timeout'
wifi evt: 1
STA disconnect: 200
[W][wifi:123]: WiFi Connection lost... Reconnecting...
[W][wifi:583]: Restarting WiFi adapter...
```
Do you have any further ideas, how to fix the connection process?
### Which version of ESPHome has the issue?
2022.9.4
### What type of installation are you using?
Home Assistant Add-on
### Which version of Home Assistant has the issue?
2022.10.1
### What platform are you using?
ESP8266
### Board
ESP8266EX
### Component causing the issue
_No response_
### Example YAML snippet
_No response_
### Anything in the logs that might be useful for us?
_No response_
### Additional information
_No response_
Shot in the dark but it’s the only one I can find that’s remotely close.
MaximeBe
(Berry)
October 3, 2023, 4:40pm
7
I try it yesterday when I saw this page, but that was not better.
I try with hotspot on my phone and that works great. So I understand that comes from my internet box configuration.
Is there a specific configuration on it to do ?
Thanks for your support
1 Like
MaximeBe
(Berry)
October 3, 2023, 9:40pm
8
I try with another smartphone and I have the same issue than with my internet box.
With internet box I try all the combination of settings but nothing works
But with my Galaxy samsung, the first try is the good one. I don’t understand what is the rootcause, that’s very strange !
1 Like
MaximeBe
(Berry)
October 4, 2023, 3:09pm
9
I suspect a problem on my wifi channels.
More informations on this link :
1 Like
MaximeBe
(Berry)
October 4, 2023, 4:47pm
10
No way, I try:
All channel.
To split my wifi 5GHz and 2.4GHz. And connect it on 2.4GHz
To connect without WPA2 password
Change WPA2 Personnal to WPA2/WPA Personnal Mixed Mode
Connect the board on battery
The only things works, It’s with a hotspot phone (OK with samsung but not with Iphone). I don’t understand what is different ?!
I don’t know what can I try more ?! Have you some ideas ?
MaximeBe
(Berry)
October 5, 2023, 9:34am
11
I fix my problem, I reset my internet box with the factory configuration.
I configure it with ethernet cable,split two wifi network. One for 2.4GHz and another for 5GHz.
The two one are visible from any device now. I don’t know why but my 2.4GHz wifi was ghost, visible but not operationnal. I make a diagnostic and all were good, so I don’t understand but I am not a fan of HMI configuration boxes, that make what it wants to do.
2 Likes
Good to hear that splitting your wi-fi to separate 2.4GHz and 5GHz networks fixed your problem
How many devices are connecting on 5GHz and how many on 2.4GHz ?
Wi-fi Access Points usually support only a fairly low number of devices - with popular home grade WAPs that number could be only 15 wireless devices. By moving your smartphones and other devices to 5GHz you have freed up some slots for devices using the older slower 2.4GHz bandwidth … but you will hit the limit again one day.
Steve_B
(Steve )
March 18, 2024, 8:08am
13
I am glad that you’ve fixed your issue… but unfortunately I don’t see what’s different between you solution and everything I have tested.
I am with a Ubiquiti Dream Router, a SSID for 2.4Ghz only and on only one AP (on channel 6) on an IOT vlan.
These are the settings that are on… (should be close to default): Proxy ARP, BSS Transition, UAPSD, Multicast Enhancement.
I even created a brand new 2.4 ssid only for esp32 but nothing changed.
One interesting thing: with the latest versions of ESPHome, it’s looping on the same errors… but with 2023.6.3 , after a while it connects … and stays on it
I solved with Wemos C3 mini with this config into Esphome
wifi:
ssid: SAxxxxxxxxxxxxxxxxxxx
password: xxxxxxxxxxxxxxxxxxxxxxx
output_power: 8.5
Steve_B
(Steve )
April 8, 2024, 11:33am
15
Thank you @Sdomotica_Automation but it’s already part of my config…
I also tried:
substitutions:
esphome_name: bt-gateway2
esphome:
name: ${esphome_name}
platform: ESP32
board: esp32dev
on_boot:
priority: 200
then:
- wait_until:
condition:
wifi.connected:
timeout: 5s
Had the same symptoms. (AVM Fritzbox, WROOM DevKit)
It seems to be the signal power. changing the “output_power:” parameter did not cut it.
I have plugged in the ESP directly into a Router USB port and have put it right onto the plastic router case.
immediate success.