Flashed an esp8266 with Esphome and the configuration succeeded but I cannot access it via WiFi

Screenshot (12)

I have checked the Wifi config in the Yaml and it is correct.
What else could be wrong?
[D][wifi:402]: Found networks:
[D][wifi:450]: - ‘Ferenczi_Net’[redacted] (68:FF:7B:49:97:2C) [redacted]▂▄▆█
[W][wifi:456]: No matching network found!
[D][wifi:387]: Starting scan…
[D][wifi:402]: Found networks:
[D][wifi:450]: - ‘Ferenczi_Net’[redacted] (68:FF:7B:49:97:2C) [redacted]▂▄▆█
[W][wifi:456]: No matching network found!
[D][wifi:387]: Starting scan…
[D][wifi:402]: Found networks:
[D][wifi:450]: - ‘Ferenczi_Net’[redacted] (68:FF:7B:49:97:2C) [redacted]▂▄▆█
[W][wifi:456]: No matching network found!

esphome:
  name: relay
  friendly_name: Relay

esp8266:
  board: esp01_1m

# Enable logging
logger:
  level: debug


# Enable Home Assistant API
api:
  encryption:
    key: "KD1i/etXnNlzy84uaZxjgJCp9OuWzAJgzzqXZYnWJqY="

ota:
  password: "54364c9085cf7eb39174df48a0c27378"

wifi:
  ssid: Ferenczi_Net
  password: !secret wifi_password

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

captive_portal:

Excepted if a wizard is around, no way to help you without a copy of the yaml file and logs of flashing process :wink:

I have updated the post with the yaml and the current logs.
It must be something really basic why it cannot find the wifi

If you cannot connect through the regular wifi, which seems to be the case… I suspect it is something with the wifi name. Have you tried if it works if you change the SSID of your network?

Are you able to reach the fallback hotspot?

There is a very good chance that your setup is not getting enough power, as I see in the photo you are connecting it via USB (via the USB-TTL connection), this is perfect for programing the setup you have but I double very much that it is enough to “power” the device as USB is limited to 500mA… what I would try is use a better power supply like a phone charger connected to 5v and ground on your board.

I just enabled a fallback hotspot and it still does not work. The crazy thing is that the logs do not reflect the new fallback hotspot I just created. It seems to be trying to connect to an older version of the yaml. Maybe my Yaml via EspHome is not being saved properly? However I do get a confirmation from EspHome that it has installed correctly.

[D][wifi:387]: Starting scan…
[D][wifi:402]: Found networks:
[D][wifi:450]: - ‘Ferenczi_Net’[redacted] (68:FF:7B:49:97:2C) [redacted]▂▄▆█
[D][wifi:450]: - ‘yyy_optout_nomap’[redacted] (D6:52:2A:C5:CD:8B) [redacted]▂▄▆█
[W][wifi:456]: No matching network found!
[D][wifi:387]: Starting scan…
[D][wifi:402]: Found networks:
[D][wifi:450]: - ‘Ferenczi_Net’[redacted] (68:FF:7B:49:97:2C) [redacted]▂▄▆█
[D][wifi:450]: - ‘yyy_optout_nomap’[redacted] (D6:52:2A:C5:CD:8B) [redacted]▂▄▆█
[W][wifi:456]: No matching network found!
[D][wifi:387]: Starting scan…
[D][wifi:402]: Found networks:
[D][wifi:450]: - ‘Ferenczi_Net’[redacted] (68:FF:7B:49:97:2C) [redacted]▂▄▆█
[D][wifi:450]: - ‘yyy_optout_nomap’[redacted] (D6:52:2A:C5:CD:8B) [redacted]▂▄▆█
[W][wifi:456]: No matching network found!
[D][wifi:387]: Starting scan…
[D][wifi:402]: Found networks:
[D][wifi:450]: - ‘Ferenczi_Net’[redacted] (68:FF:7B:49:97:2C) [redacted]▂▄▆█
[D][wifi:450]: - ‘yyy_optout_nomap’[redacted] (D6:52:2A:C5:CD:8B) [redacted]▂▄▆█
[W][wifi:456]: No matching network found!
[D][wifi:387]: Starting scan…
[I][wifi:142]: Starting fallback AP!
[C][wifi:211]: Setting up AP…
[C][wifi:213]: AP SSID: ‘Relay Fallback Hotspot’
[C][wifi:214]: AP Password: ‘IzwULOwcXU07’
[C][wifi:223]: IP Address: 192.168.4.1
[D][wifi:402]: Found networks:
[D][wifi:450]: - ‘Ferenczi_Net’[redacted] (68:FF:7B:49:97:2C) [redacted]▂▄▆█
[D][wifi:450]: - ‘yyy_optout_nomap’[redacted] (D6:52:2A:C5:CD:8B) [redacted]▂▄▆█
[W][wifi:456]: No matching network found!

As indicated by @DENightOne how do you power the ESP ? if it is powered via your serial adapter it’ll never work ! Out of it sketch looks good with same SSID as the one broadcasted by your AP !
Also be careful not to get your esp aside of your ap (too near prevents it to work well most of time !)


Connected with better power supply.
Still not connecting to WiFi.
I think it has something to do with my Yaml from EspHome not being saved properly.
But I do not know how to check this.
I have enabled logging debug but I get no info.


Connected with better power supply.
Still not connecting to WiFi.
I think it has something to do with my Yaml from EspHome not being saved properly.
But I do not know how to check this.
I have enabled logging debug but I get no info.

FFS !!
Just restarted the whole of Home Assistant and it now works. I did that earlier without any luck.
Well my device is now online :slight_smile: :slight_smile: :slight_smile:
Thanks everyone.
Much appreciated

2 Likes

How and on what are you running HA ? as it’s not normal that behaviour !

Raspberry Pi 4.
Has been working fine now.
Have installed many variations of yaml on the device and the wifi is fine.
As they say. Switch it off and on if it does not work. :slight_smile:

that can’t actually be,
esphome devices connect to WiFi, even without HA running. unless… HA also is your accesspoint?

Your right. It shouldn’t effect it. But somehow it did. No HA is not the access point.

Do you mean you entered the wifi credentials in the web server (at the fallback ap/ip) and it still didn’t connect?
I have a similar problem (“No matching network found!” after uploading through ESPHome) but if I enter the same credentials into the fallback ap web page it connects OK.
Really weird
[wemos mini d1 (esp8266/clone)]

Oh dear - forget that - sorry.
It was a typo on my part - staring at it too long :face_with_head_bandage:
ESPHome upload working now…