ESPhome device Wifi connection issues within a mesh environment

Hi all,

I am having issues with multiple ESPhome devices being unsuccessful to connect to my mesh wifi network (using TP-Link Deco, S4 and P9 units).

Having looked at the UART logs (bottom of the page) I see that the signal for my network (BuburuzaWifi) from the different access points is successfully picked up and the ESP tries to connect to one (by the way not the one with the strongest signal first) and fails with for various reasons every time.

I have short listed some of them (they are not all in order, see log at the bottom of the page):

[W][wifi_esp32:458]:	Event: Disconnected ssid='BuburuzaWifi' bssid=00:31:92:FA:EA:96[redacted] reason='Not Authenticated'
[W][wifi_esp32:458]:	Event: Disconnected ssid='BuburuzaWifi' bssid=00:31:92:FA:EA:96[redacted] reason='Authentication Failed'
[W][wifi_esp32:455]:	Event: Disconnected ssid='BuburuzaWifi' reason='Probe Request Unsuccessful'
[W][wifi_esp32:458]:	Event: Disconnected ssid='BuburuzaWifi' bssid=1C:3B:F3:16:F5:E6[redacted] reason='Authentication Failed'
[W][wifi_esp32:458]:	Event: Disconnected ssid='BuburuzaWifi' bssid=1C:3B:F3:16:F5:E6[redacted] reason='Auth Expired'
[W][wifi_esp32:458]:	Event: Disconnected ssid='BuburuzaWifi' bssid=00:31:92:FA:EB:5E[redacted] reason='4-Way Handshake Timeout'
[W][wifi_esp32:458]:	Event: Disconnected ssid='BuburuzaWifi' bssid=00:31:92:FA:EA:96[redacted] reason='Auth Expired'
[W][wifi_esp32:458]:	Event: Disconnected ssid='BuburuzaWifi' bssid=00:31:92:FA:EA:96[redacted] reason='Association Expired'
[W][wifi_esp32:458]:	Event: Disconnected ssid='BuburuzaWifi' bssid=1C:3B:F3:16:F9:B8[redacted] reason='Auth Expired'
[W][wifi_esp32:458]:	Event: Disconnected ssid='BuburuzaWifi' bssid=1C:3B:F3:16:F9:B8[redacted] reason='Auth Expired'

I don’t understand what is the problem. Is it something with the ESPhome way of handling wifi?
All my other devices (phone, tv) connect to the strongest signal very quickly and remain connected for ever.

I do have one SSID for both 2.4GHz and 5GHz but any other ESP powered devices such as Sonoff switches have no problem connecting and the connection persists for ever.

End point is that whenever the device finally manages to connect it is most often to one of the further access points as you can see below:

image

not to mention that even after connecting to an access point with strong signal, the connection will be dropped and then connect to a worse one off

image

Full log

[D][wifi:470]:	Found networks:
[I][wifi:514]:	- 'BuburuzaWifi' (00:31:92:FA:EA:96) [redacted]▂▄▆█
[D][wifi:515]:	    Channel: 3
[D][wifi:516]:	    RSSI: -75 dB
[I][wifi:514]:	- 'BuburuzaWifi' (1C:3B:F3:16:F9:B8) [redacted]▂▄▆█
[D][wifi:515]:	    Channel: 3
[D][wifi:516]:	    RSSI: -79 dB
[I][wifi:514]:	- 'BuburuzaWifi' (1C:3B:F3:16:F5:E6) [redacted]▂▄▆█
[D][wifi:515]:	    Channel: 3
[D][wifi:516]:	    RSSI: -34 dB
[I][wifi:514]:	- 'BuburuzaWifi' (00:31:92:FA:EB:5E) [redacted]▂▄▆█
[D][wifi:515]:	    Channel: 3
[D][wifi:516]:	    RSSI: -66 dB
[I][wifi:514]:	- 'BuburuzaWifi' (00:31:92:FA:EB:66) [redacted]▂▄▆█
[D][wifi:515]:	    Channel: 3
[D][wifi:516]:	    RSSI: -74 dB
[D][wifi:519]:	- ''[redacted] (26:3B:F3:16:F5:E6) [redacted]▂▄▆█
[D][wifi:519]:	- 'BuburuzaWifi_Guest'[redacted] (22:3B:F3:16:F5:E6) [redacted]▂▄▆█
[D][wifi:519]:	- ''[redacted] (0A:31:92:FA:EB:5E) [redacted]▂▄▆█
[D][wifi:519]:	- 'BuburuzaWifi_Guest'[redacted] (06:31:92:FA:EB:5E) [redacted]▂▄▆█
[D][wifi:519]:	- ''[redacted] (0A:31:92:FA:EB:66) [redacted]▂▄▆█
[D][wifi:519]:	- 'BuburuzaWifi_Guest'[redacted] (06:31:92:FA:EB:66) [redacted]▂▄▆█
[D][wifi:519]:	- 'NVR083a2f08252c'[redacted] (08:3A:2F:08:25:2C) [redacted]▂▄▆█
[D][wifi:519]:	- 'BuburuzaWifi_Guest'[redacted] (06:31:92:FA:EA:96) [redacted]▂▄▆█
[D][wifi:519]:	- 'EE-QJF2R5'[redacted] (A8:A2:37:AF:5F:E1) [redacted]▂▄▆█
[D][wifi:519]:	- 'EE WiFi'[redacted] (6A:A2:37:AF:5F:E2) [redacted]▂▄▆█
[D][wifi:519]:	- ''[redacted] (6A:A2:37:AF:5F:E5) [redacted]▂▄▆█
[D][wifi:519]:	- ''[redacted] (0A:31:92:FA:EA:96) [redacted]▂▄▆█
[D][wifi:519]:	- ''[redacted] (26:3B:F3:16:F9:B8) [redacted]▂▄▆█
[D][wifi:519]:	- 'BuburuzaWifi_Guest'[redacted] (22:3B:F3:16:F9:B8) [redacted]▂▄▆█
[D][wifi:519]:	- 'NCC-1701'[redacted] (34:5D:9E:DA:C7:D9) [redacted]▂▄▆█
[I][wifi:300]:	WiFi Connecting to 'BuburuzaWifi'...
[W][wifi_esp32:458]:	Event: Disconnected ssid='BuburuzaWifi' bssid=00:31:92:FA:EA:96[redacted] reason='Not Authenticated'
[W][wifi:639]:	WiFi Unknown connection status 0
[I][wifi:300]:	WiFi Connecting to 'BuburuzaWifi'...
[W][wifi:634]:	Connecting to WiFi network failed. Are the credentials wrong?
[W][wifi_esp32:458]:	Event: Disconnected ssid='BuburuzaWifi' bssid=00:31:92:FA:EA:96[redacted] reason='Authentication Failed'
[D][wifi:455]:	Starting scan...
[D][wifi:470]:	Found networks:
[I][wifi:514]:	- 'BuburuzaWifi' (1C:3B:F3:16:F9:B8) [redacted]▂▄▆█
[D][wifi:515]:	    Channel: 3
[D][wifi:516]:	    RSSI: -80 dB
[I][wifi:514]:	- 'BuburuzaWifi' (1C:3B:F3:16:F5:E6) [redacted]▂▄▆█
[D][wifi:515]:	    Channel: 3
[D][wifi:516]:	    RSSI: -36 dB
[I][wifi:514]:	- 'BuburuzaWifi' (00:31:92:FA:EB:66) [redacted]▂▄▆█
[D][wifi:515]:	    Channel: 3
[D][wifi:516]:	    RSSI: -70 dB
[I][wifi:514]:	- 'BuburuzaWifi' (00:31:92:FA:EB:5E) [redacted]▂▄▆█
[D][wifi:515]:	    Channel: 3
[D][wifi:516]:	    RSSI: -73 dB
[I][wifi:514]:	- 'BuburuzaWifi' (00:31:92:FA:EA:96) [redacted]▂▄▆█
[D][wifi:515]:	    Channel: 3
[D][wifi:516]:	    RSSI: -76 dB
[D][wifi:519]:	- 'BuburuzaWifi_Guest'[redacted] (22:3B:F3:16:F5:E6) [redacted]▂▄▆█
[D][wifi:519]:	- ''[redacted] (26:3B:F3:16:F5:E6) [redacted]▂▄▆█
[D][wifi:519]:	- 'NVR083a2f08252c'[redacted] (08:3A:2F:08:25:2C) [redacted]▂▄▆█
[D][wifi:519]:	- 'BuburuzaWifi_Guest'[redacted] (06:31:92:FA:EB:66) [redacted]▂▄▆█
[D][wifi:519]:	- ''[redacted] (0A:31:92:FA:EB:66) [redacted]▂▄▆█
[D][wifi:519]:	- 'BuburuzaWifi_Guest'[redacted] (06:31:92:FA:EB:5E) [redacted]▂▄▆█
[D][wifi:519]:	- ''[redacted] (0A:31:92:FA:EA:96) [redacted]▂▄▆█
[D][wifi:519]:	- 'BuburuzaWifi_Guest'[redacted] (06:31:92:FA:EA:96) [redacted]▂▄▆█
[D][wifi:519]:	- 'EE-QJF2R5'[redacted] (A8:A2:37:AF:5F:E1) [redacted]▂▄▆█
[D][wifi:519]:	- 'EE WiFi'[redacted] (6A:A2:37:AF:5F:E2) [redacted]▂▄▆█
[D][wifi:519]:	- ''[redacted] (6A:A2:37:AF:5F:E5) [redacted]▂▄▆█
[D][wifi:519]:	- 'BuburuzaWifi_Guest'[redacted] (22:3B:F3:16:F9:B8) [redacted]▂▄▆█
[D][wifi:519]:	- ''[redacted] (26:3B:F3:16:F9:B8) [redacted]▂▄▆█
[D][wifi:519]:	- 'IPC_9CA3A91C2DCC'[redacted] (9C:A3:A9:1C:2D:CC) [redacted]▂▄▆█
[I][wifi:300]:	WiFi Connecting to 'BuburuzaWifi'...
[W][wifi:634]:	Connecting to WiFi network failed. Are the credentials wrong?
[I][wifi:300]:	WiFi Connecting to 'BuburuzaWifi'...
[W][wifi:634]:	Connecting to WiFi network failed. Are the credentials wrong?
[I][wifi:168]:	Starting fallback AP!
[C][wifi:250]:	Setting up AP...
[C][wifi:252]:	  AP SSID: 'Loft-Sensor Fallback Hotspot'
[C][wifi:253]:	  AP Password: 'WO1TK4iNKC5B'
[W][wifi_esp32:455]:	Event: Disconnected ssid='BuburuzaWifi' reason='Probe Request Unsuccessful'
[C][wifi:262]:	  IP Address: 192.168.4.1
[D][wifi:455]:	Starting scan...
[D][wifi:470]:	Found networks:
[I][wifi:514]:	- 'BuburuzaWifi' (1C:3B:F3:16:F5:E6) [redacted]▂▄▆█
[D][wifi:515]:	    Channel: 3
[D][wifi:516]:	    RSSI: -38 dB
[I][wifi:514]:	- 'BuburuzaWifi' (00:31:92:FA:EB:66) [redacted]▂▄▆█
[D][wifi:515]:	    Channel: 3
[D][wifi:516]:	    RSSI: -70 dB
[I][wifi:514]:	- 'BuburuzaWifi' (00:31:92:FA:EB:5E) [redacted]▂▄▆█
[D][wifi:515]:	    Channel: 3
[D][wifi:516]:	    RSSI: -72 dB
[I][wifi:514]:	- 'BuburuzaWifi' (00:31:92:FA:EA:96) [redacted]▂▄▆█
[D][wifi:515]:	    Channel: 3
[D][wifi:516]:	    RSSI: -76 dB
[I][wifi:514]:	- 'BuburuzaWifi' (1C:3B:F3:16:F9:B8) [redacted]▂▄▆█
[D][wifi:515]:	    Channel: 3
[D][wifi:516]:	    RSSI: -80 dB
[D][wifi:519]:	- ''[redacted] (26:3B:F3:16:F5:E6) [redacted]▂▄▆█
[D][wifi:519]:	- 'BuburuzaWifi_Guest'[redacted] (22:3B:F3:16:F5:E6) [redacted]▂▄▆█
[D][wifi:519]:	- 'NVR083a2f08252c'[redacted] (08:3A:2F:08:25:2C) [redacted]▂▄▆█
[D][wifi:519]:	- ''[redacted] (0A:31:92:FA:EB:66) [redacted]▂▄▆█
[D][wifi:519]:	- 'BuburuzaWifi_Guest'[redacted] (06:31:92:FA:EB:5E) [redacted]▂▄▆█
[D][wifi:519]:	- ''[redacted] (0A:31:92:FA:EB:5E) [redacted]▂▄▆█
[D][wifi:519]:	- 'EE-QJF2R5'[redacted] (A8:A2:37:AF:5F:E1) [redacted]▂▄▆█
[D][wifi:519]:	- ''[redacted] (6A:A2:37:AF:5F:E5) [redacted]▂▄▆█
[D][wifi:519]:	- 'EE WiFi'[redacted] (6A:A2:37:AF:5F:E2) [redacted]▂▄▆█
[D][wifi:519]:	- ''[redacted] (0A:31:92:FA:EA:96) [redacted]▂▄▆█
[D][wifi:519]:	- 'BuburuzaWifi_Guest'[redacted] (06:31:92:FA:EA:96) [redacted]▂▄▆█
[D][wifi:519]:	- 'BuburuzaWifi_Guest'[redacted] (22:3B:F3:16:F9:B8) [redacted]▂▄▆█
[D][wifi:519]:	- 'NCC-1701'[redacted] (34:5D:9E:DA:C7:D9) [redacted]▂▄▆█
[I][wifi:300]:	WiFi Connecting to 'BuburuzaWifi'...
[W][wifi:618]:	Error while connecting to network.
[I][wifi:300]:	WiFi Connecting to 'BuburuzaWifi'...
[W][wifi_esp32:458]:	Event: Disconnected ssid='BuburuzaWifi' bssid=1C:3B:F3:16:F5:E6[redacted] reason='Authentication Failed'
[W][wifi_esp32:458]:	Event: Disconnected ssid='BuburuzaWifi' bssid=1C:3B:F3:16:F5:E6[redacted] reason='Auth Expired'
[D][wifi:455]:	Starting scan...
[D][wifi:470]:	Found networks:
[I][wifi:514]:	- 'BuburuzaWifi' (00:31:92:FA:EB:5E) [redacted]▂▄▆█
[D][wifi:515]:	    Channel: 3
[D][wifi:516]:	    RSSI: -73 dB
[I][wifi:514]:	- 'BuburuzaWifi' (00:31:92:FA:EA:96) [redacted]▂▄▆█
[D][wifi:515]:	    Channel: 3
[D][wifi:516]:	    RSSI: -75 dB
[I][wifi:514]:	- 'BuburuzaWifi' (1C:3B:F3:16:F9:B8) [redacted]▂▄▆█
[D][wifi:515]:	    Channel: 3
[D][wifi:516]:	    RSSI: -79 dB
[I][wifi:514]:	- 'BuburuzaWifi' (00:31:92:FA:EB:66) [redacted]▂▄▆█
[D][wifi:515]:	    Channel: 3
[D][wifi:516]:	    RSSI: -80 dB
[I][wifi:514]:	- 'BuburuzaWifi' (1C:3B:F3:16:F5:E6) [redacted]▂▄▆█
[D][wifi:515]:	    Channel: 3
[D][wifi:516]:	    RSSI: -37 dB
[D][wifi:519]:	- 'BuburuzaWifi_Guest'[redacted] (22:3B:F3:16:F5:E6) [redacted]▂▄▆█
[D][wifi:519]:	- ''[redacted] (26:3B:F3:16:F5:E6) [redacted]▂▄▆█
[D][wifi:519]:	- ''[redacted] (0A:31:92:FA:EB:5E) [redacted]▂▄▆█
[D][wifi:519]:	- 'NVR083a2f08252c'[redacted] (08:3A:2F:08:25:2C) [redacted]▂▄▆█
[D][wifi:519]:	- 'EE-QJF2R5'[redacted] (A8:A2:37:AF:5F:E1) [redacted]▂▄▆█
[D][wifi:519]:	- ''[redacted] (6A:A2:37:AF:5F:E5) [redacted]▂▄▆█
[D][wifi:519]:	- ''[redacted] (0A:31:92:FA:EA:96) [redacted]▂▄▆█
[D][wifi:519]:	- 'EE WiFi'[redacted] (6A:A2:37:AF:5F:E2) [redacted]▂▄▆█
[D][wifi:519]:	- 'BuburuzaWifi_Guest'[redacted] (22:3B:F3:16:F9:B8) [redacted]▂▄▆█
[D][wifi:519]:	- ''[redacted] (26:3B:F3:16:F9:B8) [redacted]▂▄▆█
[D][wifi:519]:	- 'BuburuzaWifi_Guest'[redacted] (06:31:92:FA:EB:66) [redacted]▂▄▆█
[D][wifi:519]:	- ''[redacted] (0A:31:92:FA:EB:66) [redacted]▂▄▆█
[D][wifi:519]:	- 'IPC_9CA3A91C2DCC'[redacted] (9C:A3:A9:1C:2D:CC) [redacted]▂▄▆█
[D][wifi:519]:	- 'NCC-1701'[redacted] (34:5D:9E:DA:C7:D9) [redacted]▂▄▆█
[I][wifi:300]:	WiFi Connecting to 'BuburuzaWifi'...
[W][wifi:618]:	Error while connecting to network.
[I][wifi:300]:	WiFi Connecting to 'BuburuzaWifi'...
[W][wifi:634]:	Connecting to WiFi network failed. Are the credentials wrong?
[W][wifi_esp32:458]:	Event: Disconnected ssid='BuburuzaWifi' bssid=00:31:92:FA:EB:5E[redacted] reason='4-Way Handshake Timeout'
[D][wifi:455]:	Starting scan...
[D][wifi:470]:	Found networks:
[I][wifi:514]:	- 'BuburuzaWifi' (00:31:92:FA:EA:96) [redacted]▂▄▆█
[D][wifi:515]:	    Channel: 3
[D][wifi:516]:	    RSSI: -77 dB
[I][wifi:514]:	- 'BuburuzaWifi' (1C:3B:F3:16:F9:B8) [redacted]▂▄▆█
[D][wifi:515]:	    Channel: 3
[D][wifi:516]:	    RSSI: -81 dB
[I][wifi:514]:	- 'BuburuzaWifi' (1C:3B:F3:16:F5:E6) [redacted]▂▄▆█
[D][wifi:515]:	    Channel: 3
[D][wifi:516]:	    RSSI: -36 dB
[I][wifi:514]:	- 'BuburuzaWifi' (00:31:92:FA:EB:5E) [redacted]▂▄▆█
[D][wifi:515]:	    Channel: 3
[D][wifi:516]:	    RSSI: -75 dB
[D][wifi:519]:	- ''[redacted] (26:3B:F3:16:F5:E6) [redacted]▂▄▆█
[D][wifi:519]:	- 'BuburuzaWifi_Guest'[redacted] (22:3B:F3:16:F5:E6) [redacted]▂▄▆█
[D][wifi:519]:	- ''[redacted] (0A:31:92:FA:EB:5E) [redacted]▂▄▆█
[D][wifi:519]:	- 'NVR083a2f08252c'[redacted] (08:3A:2F:08:25:2C) [redacted]▂▄▆█
[D][wifi:519]:	- 'BuburuzaWifi_Guest'[redacted] (06:31:92:FA:EA:96) [redacted]▂▄▆█
[D][wifi:519]:	- ''[redacted] (0A:31:92:FA:EA:96) [redacted]▂▄▆█
[D][wifi:519]:	- 'EE-QJF2R5'[redacted] (A8:A2:37:AF:5F:E1) [redacted]▂▄▆█
[D][wifi:519]:	- 'EE WiFi'[redacted] (6A:A2:37:AF:5F:E2) [redacted]▂▄▆█
[D][wifi:519]:	- ''[redacted] (6A:A2:37:AF:5F:E5) [redacted]▂▄▆█
[D][wifi:519]:	- ''[redacted] (26:3B:F3:16:F9:B8) [redacted]▂▄▆█
[D][wifi:519]:	- ''[redacted] (0A:31:92:FA:EB:66) [redacted]▂▄▆█
[D][wifi:519]:	- 'BuburuzaWifi_Guest'[redacted] (06:31:92:FA:EB:66) [redacted]▂▄▆█
[D][wifi:519]:	- 'IPC_9CA3A91C2DCC'[redacted] (9C:A3:A9:1C:2D:CC) [redacted]▂▄▆█
[I][wifi:300]:	WiFi Connecting to 'BuburuzaWifi'...
[W][wifi_esp32:458]:	Event: Disconnected ssid='BuburuzaWifi' bssid=00:31:92:FA:EA:96[redacted] reason='Auth Expired'
[W][wifi:618]:	Error while connecting to network.
[I][wifi:300]:	WiFi Connecting to 'BuburuzaWifi'...
[W][wifi_esp32:458]:	Event: Disconnected ssid='BuburuzaWifi' bssid=00:31:92:FA:EA:96[redacted] reason='Association Expired'
[W][wifi:639]:	WiFi Unknown connection status 0
[D][wifi:455]:	Starting scan...
[D][wifi:470]:	Found networks:
[I][wifi:514]:	- 'BuburuzaWifi' (1C:3B:F3:16:F9:B8) [redacted]▂▄▆█
[D][wifi:515]:	    Channel: 3
[D][wifi:516]:	    RSSI: -80 dB
[I][wifi:514]:	- 'BuburuzaWifi' (00:31:92:FA:EB:66) [redacted]▂▄▆█
[D][wifi:515]:	    Channel: 3
[D][wifi:516]:	    RSSI: -82 dB
[I][wifi:514]:	- 'BuburuzaWifi' (1C:3B:F3:16:F5:E6) [redacted]▂▄▆█
[D][wifi:515]:	    Channel: 3
[D][wifi:516]:	    RSSI: -34 dB
[I][wifi:514]:	- 'BuburuzaWifi' (00:31:92:FA:EB:5E) [redacted]▂▄▆█
[D][wifi:515]:	    Channel: 3
[D][wifi:516]:	    RSSI: -73 dB
[I][wifi:514]:	- 'BuburuzaWifi' (00:31:92:FA:EA:96) [redacted]▂▄▆█
[D][wifi:515]:	    Channel: 3
[D][wifi:516]:	    RSSI: -76 dB
[D][wifi:519]:	- ''[redacted] (26:3B:F3:16:F5:E6) [redacted]▂▄▆█
[D][wifi:519]:	- 'BuburuzaWifi_Guest'[redacted] (22:3B:F3:16:F5:E6) [redacted]▂▄▆█
[D][wifi:519]:	- 'NVR083a2f08252c'[redacted] (08:3A:2F:08:25:2C) [redacted]▂▄▆█
[D][wifi:519]:	- 'BuburuzaWifi_Guest'[redacted] (06:31:92:FA:EB:5E) [redacted]▂▄▆█
[D][wifi:519]:	- ''[redacted] (0A:31:92:FA:EB:5E) [redacted]▂▄▆█
[D][wifi:519]:	- ''[redacted] (0A:31:92:FA:EA:96) [redacted]▂▄▆█
[D][wifi:519]:	- 'BuburuzaWifi_Guest'[redacted] (06:31:92:FA:EA:96) [redacted]▂▄▆█
[D][wifi:519]:	- 'EE WiFi'[redacted] (6A:A2:37:AF:5F:E2) [redacted]▂▄▆█
[D][wifi:519]:	- 'EE-QJF2R5'[redacted] (A8:A2:37:AF:5F:E1) [redacted]▂▄▆█
[D][wifi:519]:	- ''[redacted] (6A:A2:37:AF:5F:E5) [redacted]▂▄▆█
[D][wifi:519]:	- 'BuburuzaWifi_Guest'[redacted] (22:3B:F3:16:F9:B8) [redacted]▂▄▆█
[D][wifi:519]:	- ''[redacted] (26:3B:F3:16:F9:B8) [redacted]▂▄▆█
[D][wifi:519]:	- ''[redacted] (0A:31:92:FA:EB:66) [redacted]▂▄▆█
[D][wifi:519]:	- 'IPC_9CA3A91C2DCC'[redacted] (9C:A3:A9:1C:2D:CC) [redacted]▂▄▆█
[D][wifi:519]:	- 'NCC-1701'[redacted] (34:5D:9E:DA:C7:D9) [redacted]▂▄▆█
[I][wifi:300]:	WiFi Connecting to 'BuburuzaWifi'...
[W][wifi_esp32:458]:	Event: Disconnected ssid='BuburuzaWifi' bssid=1C:3B:F3:16:F9:B8[redacted] reason='Auth Expired'
[W][wifi:618]:	Error while connecting to network.
[I][wifi:300]:	WiFi Connecting to 'BuburuzaWifi'...
[W][wifi_esp32:458]:	Event: Disconnected ssid='BuburuzaWifi' bssid=1C:3B:F3:16:F9:B8[redacted] reason='Auth Expired'
[W][wifi:618]:	Error while connecting to network.
[D][wifi:455]:	Starting scan...
[D][wifi:470]:	Found networks:
[I][wifi:514]:	- 'BuburuzaWifi' (1C:3B:F3:16:F5:E6) [redacted]▂▄▆█
[D][wifi:515]:	    Channel: 3
[D][wifi:516]:	    RSSI: -36 dB
[I][wifi:514]:	- 'BuburuzaWifi' (00:31:92:FA:EB:5E) [redacted]▂▄▆█
[D][wifi:515]:	    Channel: 3
[D][wifi:516]:	    RSSI: -73 dB
[I][wifi:514]:	- 'BuburuzaWifi' (00:31:92:FA:EA:96) [redacted]▂▄▆█
[D][wifi:515]:	    Channel: 3
[D][wifi:516]:	    RSSI: -75 dB
[I][wifi:514]:	- 'BuburuzaWifi' (1C:3B:F3:16:F9:B8) [redacted]▂▄▆█
[D][wifi:515]:	    Channel: 3
[D][wifi:516]:	    RSSI: -78 dB
[D][wifi:519]:	- ''[redacted] (26:3B:F3:16:F5:E6) [redacted]▂▄▆█
[D][wifi:519]:	- 'BuburuzaWifi_Guest'[redacted] (22:3B:F3:16:F5:E6) [redacted]▂▄▆█
[D][wifi:519]:	- 'NVR083a2f08252c'[redacted] (08:3A:2F:08:25:2C) [redacted]▂▄▆█
[D][wifi:519]:	- 'BuburuzaWifi_Guest'[redacted] (06:31:92:FA:EB:5E) [redacted]▂▄▆█
[D][wifi:519]:	- ''[redacted] (0A:31:92:FA:EB:5E) [redacted]▂▄▆█
[D][wifi:519]:	- ''[redacted] (6A:A2:37:AF:5F:E5) [redacted]▂▄▆█
[D][wifi:519]:	- 'BuburuzaWifi_Guest'[redacted] (06:31:92:FA:EA:96) [redacted]▂▄▆█
[D][wifi:519]:	- 'EE-QJF2R5'[redacted] (A8:A2:37:AF:5F:E1) [redacted]▂▄▆█
[D][wifi:519]:	- 'EE WiFi'[redacted] (6A:A2:37:AF:5F:E2) [redacted]▂▄▆█
[D][wifi:519]:	- ''[redacted] (0A:31:92:FA:EA:96) [redacted]▂▄▆█
[D][wifi:519]:	- 'BuburuzaWifi_Guest'[redacted] (22:3B:F3:16:F9:B8) [redacted]▂▄▆█
[D][wifi:519]:	- ''[redacted] (26:3B:F3:16:F9:B8) [redacted]▂▄▆█
[D][wifi:519]:	- 'BuburuzaWifi_Guest'[redacted] (06:31:92:FA:EB:66) [redacted]▂▄▆█
[D][wifi:519]:	- ''[redacted] (0A:31:92:FA:EB:66) [redacted]▂▄▆█
[D][wifi:519]:	- 'IPC_9CA3A91C2DCC'[redacted] (9C:A3:A9:1C:2D:CC) [redacted]▂▄▆█
[D][wifi:519]:	- 'NCC-1701'[redacted] (34:5D:9E:DA:C7:D9) [redacted]▂▄▆█
[I][wifi:300]:	WiFi Connecting to 'BuburuzaWifi'...
[I][wifi:587]:	WiFi Connected!
[C][wifi:405]:	  Local MAC: C8:C9:A3:CB:8D:34
[C][wifi:410]:	  SSID: 'BuburuzaWifi'[redacted]
[C][wifi:411]:	  IP Address: 192.168.68.131
[C][wifi:413]:	  BSSID: 1C:3B:F3:16:F5:E6[redacted]
[C][wifi:414]:	  Hostname: 'loft-sensor'
[C][wifi:416]:	  Signal strength: -36 dB ▂▄▆█
[C][wifi:420]:	  Channel: 3
[C][wifi:421]:	  Subnet: 255.255.255.0
[C][wifi:422]:	  Gateway: 192.168.68.1
[C][wifi:423]:	  DNS1: 192.168.1.254
[C][wifi:424]:	  DNS2: 192.168.68.1
[D][wifi:596]:	Disabling AP...
BuburuzaWifi:	-73dB
BuburuzaWifi:	-75dB
BuburuzaWifi:	-78dB
BuburuzaWifi_Guest:	-38dB
BuburuzaWifi_Guest:	-74dB
BuburuzaWifi_Guest:	-76dB
BuburuzaWifi_Guest:	-80dB
BuburuzaWifi_Gue'	
[C][wifi:573]:	WiFi:
[C][wifi:405]:	  Local MAC: C8:C9:A3:CB:8D:34
[C][wifi:410]:	  SSID: 'BuburuzaWifi'[redacted]
[C][wifi:411]:	  IP Address: 192.168.68.131
[C][wifi:413]:	  BSSID: 1C:3B:F3:16:F5:E6[redacted]
[C][wifi:414]:	  Hostname: 'loft-sensor'
[C][wifi:416]:	  Signal strength: -37 dB ▂▄▆█
[C][wifi:420]:	  Channel: 3
[C][wifi:421]:	  Subnet: 255.255.255.0
[C][wifi:422]:	  Gateway: 192.168.68.1
[C][wifi:423]:	  DNS1: 192.168.1.254
[C][wifi:424]:	  DNS2: 192.168.68.1
[C][wifi_signal.sensor:009]:	WiFi Signal 'WiFi'
[C][wifi_signal.sensor:009]:	  Device Class: 'signal_strength'
[C][wifi_signal.sensor:009]:	  State Class: 'measurement'
[C][wifi_signal.sensor:009]:	  Unit of Measurement: 'dBm'
[C][wifi_signal.sensor:009]:	  Accuracy Decimals: 0
[C][wifi_info:009]:	WifiInfo IPAddress 'IP'
[C][wifi_info:009]:	  Icon: 'mdi:ip-network'
[C][wifi_info:011]:	WifiInfo SSID 'AP SSID'
[C][wifi_info:012]:	WifiInfo BSSID 'AP BSSID'
[C][wifi_info:010]:	WifiInfo Scan Results 'Networks'
[C][wifi_info:010]:	  Icon: 'mdi:access-point-network'
[C][wifi:573]:	WiFi:
[C][wifi:405]:	  Local MAC: C8:C9:A3:CB:8D:34
[C][wifi:410]:	  SSID: 'BuburuzaWifi'[redacted]
[C][wifi:411]:	  IP Address: 192.168.68.131
[C][wifi:413]:	  BSSID: 1C:3B:F3:16:F5:E6[redacted]
[C][wifi:414]:	  Hostname: 'loft-sensor'
[C][wifi:416]:	  Signal strength: -34 dB ▂▄▆█
[C][wifi:420]:	  Channel: 3
[C][wifi:421]:	  Subnet: 255.255.255.0
[C][wifi:422]:	  Gateway: 192.168.68.1
[C][wifi:423]:	  DNS1: 192.168.1.254
[C][wifi:424]:	  DNS2: 192.168.68.1

Try turning off fast roaming in your Deco advanced settings.

Having mesh network built on Keenetic devices - so far 2 Access Points.
Sometimes ESPHome device establish connection with AP with lower signal.

So far see one possible issue, but not sure.
Your log show same channel (3) utilized on different AP, Keenetic use different channels over network.

Your mesh is running on the same channel?

That’s crazy and confusing for simple clients like the esp which I don’t think supports 802.11r

Nope it doesn’t

Hi @zoogara, thanks for pointing this out. I gave it a go. Don’t see an immediate change but will monitor for some time maybe I see a trend change.

@_dev_null, @Masterzz, @zoogara thank for your responses guys!
All insightful and appreciated!

I was not aware of 802.11r which @zoogara kindly helped me understand how do turn off on the Deco system. I have done it yesterday but haven’t really seen any change

As far as I have read up on (and explored the Deco settings) it is not possible to manually set the channel on the Deco system, let alone change the channel on individual access points.
TP link has responded in the forum below that using different channels between APs is against the concept of mesh system :person_shrugging:

Possibility to change WiFi channels - Home Network Community


A point I forgot to make in my original post was another weird behaviour.
Recently (I could claim that is the case for 2023.12 release) most times I attempt to do OTA, the ESP device disconnects from the network mid update. I have to make multiple attempts over the course of the day to have a successful one.
With the release of 2024.02 I just tried to update a device which was connected to a strong signal (-45dbm) and still the OTA failed as the device disconnected mid update. This is not specific to one device as I did think that maybe the device freezes or something which makes it reboot thus disconnect from the network.

so thats it? its imposble to connect esp32 to tp link deco m4?

Not sure of the cause of the above issues, but I have an X20, an M9 and four M5 Decos and they work fine. 80+ wi-fi devices about 20 of which are ESPHome and Tasmota.

I honestly don’t know what is wrong. After some suggestions, since my 2.4 and 5GHz bands were under the SSID I tired to separate them and could only do that by using the guest network.
Having realised that the devices on the guest and main networks can’t see each other I reverted back and that seems to have improved things for me.
Now it is either that or the upgrade to ESPHome 2024.2 :person_shrugging:

At this point it is only one device that disconnects (but reconnects faster than before)