D1 mini not connecting to AP esphome

Hidden SSID??

[quote=“HBK1, post:2, topic:303836, full:true”]
Hidden SSID??
[/quote]

Do both routers have the same or different ssid’s?

You don’t have dns set.

What does your log say?

Router 1 is main router. Raspberry is connected here on wired lan. DNS 192.168.1.1
DHCP starting from 192.168.1.10
WI-FI network is called Disappinted 2.0

Router 2 is secondary router. Connected via cable to main router. DNS 192.168.1.2 . DHCP disabled. Wi-Fi network of secondary router is Dungeon.

INFO Reading configuration /config/esphome/saletta_temp_sensor.yaml...
INFO Starting log output from temp_humidity_saletta.local using esphome API
WARNING Error resolving IP address of temp_humidity_saletta.local. Is it connected to WiFi?
WARNING (If this error persists, please set a static IP address: https://esphome.io/components/wifi.html#manual-ips)
WARNING Initial connection failed. The ESP might not be connected to WiFi yet (Error resolving IP address: Error resolving address with mDNS: Did not respond. Maybe the device is offline., [Errno -5] No address associated with

I mean the log from the esp device. Available by the wired serial.

Thanks for your time. Here you have a piece of my log at the serial port of my raspberry Pi

INFO Reading configuration /config/esphome/saletta_temp_sensor.yaml...
INFO Starting log output from /dev/ttyUSB0 with baud rate 115200
[23:09:38][D][wifi:339]: Found networks:
[23:09:38][D][wifi:341]:   No network found!
[23:09:39][D][dht:048]: Got Temperature=21.7°C Humidity=55.1%
[23:09:39][D][sensor:092]: 'Saletta Temperature': Sending state 21.70000 °C with 1 decimals of accuracy
[23:09:39][D][sensor:092]: 'Saletta Humidity': Sending state 55.10000 % with 0 decimals of accuracy
[23:09:43][D][wifi:324]: Starting scan...
[23:09:49][D][wifi:339]: Found networks:
[23:09:49][D][wifi:389]: - 'Disappinted 2.0'[redacted] (78:94:B4:8A:24:83) [redacted]▂▄▆█
[23:09:49][W][wifi:394]: No matching network found!
[23:09:54][D][wifi:324]: Starting scan...
[23:10:00][D][wifi:339]: Found networks:
[23:10:00][D][wifi:389]: - 'Disappinted 2.0'[redacted] (78:94:B4:8A:24:83) [redacted]▂▄▆█
[23:10:00][W][wifi:394]: No matching network found!
[23:10:05][D][wifi:324]: Starting scan...
[23:10:09][D][dht:048]: Got Temperature=21.7°C Humidity=55.1%
[23:10:09][D][sensor:092]: 'Saletta Temperature': Sending state 21.70000 °C with 1 decimals of accuracy
[23:10:09][D][sensor:092]: 'Saletta Humidity': Sending state 55.10000 % with 0 decimals of accuracy
[23:10:11][D][wifi:339]: Found networks:
[23:10:11][D][wifi:389]: - 'Disappinted 2.0'[redacted] (78:94:B4:8A:24:83) [redacted]▂▄▆█
[23:10:11][D][wifi:389]: - 'Home&Life SuperWiFi-039175'[redacted] (14:2E:5E:64:B6:61) [redacted]▂▄▆█
[23:10:11][W][wifi:394]: No matching network found!

Hmmmmi assume that Dugeon is in range at that point?

Try turning off 5Ghz on the Dungeon router and make 100% sure you have the ssid spelled correctly.

The d1 mini is now 1 meter far away from the router. I also tried with bssid of the Dungeon network but the d1 mini simply doesn’ see it.
I tried with another d1 mini: same result. Connection possible to main router but no chances with the secondary router

did turning off 5GHz make any difference?

The tplink router is 2,4 ghz only. I could connect 2 tekin plugs and 1 Wi-Fi strip led through smart life tuya integration to the Dungeon network and then to Home Assistant without problems.

I am out of ideas sorry.

Thanks for your time!

Try reflashing.

Set security to WPA/WPA2
Version and encryption to: Auto
Make sure that your channel width is set to 20MHz.
Try using a fixed channel
don’t use spaces on your SSID or password.

1 Like

Hi laca75tn I followed your instructions but still do not see the router😢

Reflashed but still not seeing the Wi-Fi network

If your secondary router is set up as an access point, and not actually doing any routing, you should set the gateway to 192.168.1.1.

That doesn’t explain why it can’t see the network though.

Please post the D1 boot log you get when connected via USB and in range of the Dungeon network, unless that is what you have already posted above.

1 Like

Isn’t that what we have here> D1 mini not connecting to AP esphome - #7 by markus3 (although I never got a clear answer as to whether it was in range at that time)

Yes, that confirmation is what I was trying to get too…

the two routers are at 1 meter distance and wire connected (LAN to LAN port) since I’m doing these testings.


INFO Reading configuration /config/esphome/saletta_temp_sensor.yaml...
INFO Starting log output from /dev/ttyUSB0 with baud rate 115200
[13:25:30][D][wifi:324]: Starting scan...
[13:25:36][D][wifi:339]: Found networks:
[13:25:36][D][wifi:389]: - [redacted] [redacted]▂▄▆█
[13:25:36][W][wifi:394]: No matching network found!
[13:25:41][D][wifi:324]: Starting scan...
[13:25:47][D][wifi:339]: Found networks:
[13:25:47][D][wifi:389]: - [redacted] [redacted]▂▄▆█
[13:25:47][D][wifi:389]: - [redacted] [redacted]▂▄▆█
[13:25:47][W][wifi:394]: No matching network found!
[13:25:52][D][wifi:324]: Starting scan...
[13:25:58][D][wifi:339]: Found networks:
[13:25:58][D][wifi:341]:   No network found!
[13:26:03][D][wifi:324]: Starting scan...
[13:26:09][I][wifi:116]: Starting fallback AP!
[13:26:09][C][wifi:161]: Setting up AP...
[13:26:09][C][wifi:163]:   AP SSID: 'Sensor Saletta Temp'
[13:26:09][C][wifi:164]:   AP Password: '7ta8GtVGagir'
[13:26:09][C][wifi:173]:   IP Address: 192.168.4.1
[13:26:10][D][wifi:339]: Found networks:
[13:26:10][D][wifi:341]:   No network found!
[13:26:15][D][wifi:324]: Starting scan...
[13:26:21][D][wifi:339]: Found networks:
[13:26:21][D][wifi:341]:   No network found!
[13:26:26][D][wifi:324]: Starting scan...
[13:26:32][D][wifi:339]: Found networks:
[13:26:32][D][wifi:389]: - [redacted] [redacted]▂▄▆█
[13:26:32][W][wifi:394]: No matching network found!
[13:26:37][D][wifi:324]: Starting scan...
[13:26:43][D][wifi:339]: Found networks:
[13:26:43][D][wifi:389]: - [redacted] [redacted]▂▄▆█
[13:26:43][W][wifi:394]: No matching network found!
[13:26:48][D][wifi:324]: Starting scan...
[13:26:54][D][wifi:339]: Found networks:
[13:26:54][D][wifi:389]: - [redacted] [redacted]▂▄▆█
[13:26:54][W][wifi:394]: No matching network found!
[13:26:59][D][wifi:324]: Starting scan...
[13:27:05][D][wifi:339]: Found networks:
[13:27:05][D][wifi:341]:   No network found!
[13:27:10][D][wifi:324]: Starting scan...
[13:27:16][D][wifi:339]: Found networks:
[13:27:16][D][wifi:389]: - [redacted] [redacted]▂▄▆█
[13:27:16][W][wifi:394]: No matching network found!
[13:27:21][D][wifi:324]: Starting scan...
[13:27:26][D][wifi:339]: Found networks:
[13:27:26][D][wifi:389]: - [redacted] [redacted]▂▄▆█
[13:27:27][W][wifi:394]: No matching network found!
[13:27:32][D][wifi:324]: Starting scan...
[13:27:37][D][wifi:339]: Found networks:
[13:27:37][D][wifi:341]:   No network found!
[13:27:42][D][wifi:324]: Starting scan...
[13:27:48][D][wifi:339]: Found networks:
[13:27:48][D][wifi:341]:   No network found!
[13:27:53][D][wifi:324]: Starting scan...
[13:27:59][D][wifi:339]: Found networks:
[13:27:59][D][wifi:341]:   No network found!
[13:28:04][D][wifi:324]: Starting scan...