Wifi link to router seems to be broken

I am trying to load my programme to an esp32 using esphome. I know the programme is okia it compiles without error. It seems my PC is linking ESPhome to a wifi I use yesterday to access email when I was away from home. All my other apps on my PC and on my phone are fine. I have tried to link using the option when I load my programme but it seems not to accept my current wifi (which is the same as my Secret file)

I have a pane on esphome

ESPHome Web 5a6af0
esphome-web-5a6af0
esphome.web

What am I doing wrong and what should I do?

You should probably ask this in the ESPHome category instead.
But before that make sure you have restarted your PC and disabled any VPN connections.

I thought I had. Where do you mean?

It is in the ESPHome category now, but I found it in the configuration category before.

And post your YAML code, so we can see what is being done.

esphome:
  name: esp32-1
  friendly_name: esp32_1

esp32:
  board: esp32dev
  framework:
    type: arduino

# Enable logging
logger:

# Enable Home Assistant API
api:
  encryption:
    key: "Ho145Dz2x1fF4jny647OOY9hhZVBxa9EHP3kYyDE5QI="

ota:
  - platform: esphome
    password: "f110dd81863d15c82fa39c3f50643096"

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Esp32-1 Fallback Hotspot"
    password: "luRbY7Fv3YEo"

captive_portal:
    
sensor:

  
  - platform: adc
    id: moisture_voltage
    name: "Soil Moisture Voltage"
    pin: GPIO36
    accuracy_decimals: 2    

I hope this helps

You should probably redact your api key and ota password and maybe move them to the secret file like your wifi keys.

Then could you please explain when the steps you do and when it goes wrong.
I sounds like your are compiling the code fine, but then it is a bit unclear how far you get.
Do your ESP device accept the connection?
Do the upload start?
Do the ESP device restart?
Do it connect after the restart?

And where is your ESPHome builder installed? On the HA server as an addon or container or on your workstation?

Also what output do you see on your screen when it fails?
Any errors or log lines?

wow that’s a lot.
I try to install wirelessly but although my programme compiles there is a error trying yo find the address.
I try installing using esphome web. I have a choice
1 preparing for first install
2 install

I usually go for preparing for first install
I have to press the boot button on this esp32
after installation (some times there is a delete of old installation)
I then get a message configurating installed
I then get the message

esphome-web-5a6af0
Software: esphome.web/24.11.1

I hit connect to wifi and select my wifi and enter the password
I then enter logs
and get

INFO ESPHome 2024.7.3
INFO Reading configuration /config/esphome/esp32-test1.yaml...
INFO Starting log output from esp32-1.local using esphome API
WARNING Can't connect to ESPHome API for esp32-1.local: Error resolving IP address: [Errno -5] No address associated with hostname (APIConnectionError)
INFO Trying to connect to esp32-1.local in the background

Can you see the device in your routers DHCP lease table?

Can you ping that IP address in the lease table?

Can you ping esp32-1.local and if you can is the IP address the same as above?

An even bigger WOW. You are pushing my knowledge horizon into unexplored territory. It appears my device does not appear on my router. I tried to ping esp21-1 by entering ping esp32-1 in the command line but "the ping request could not find the esp.

Now what?

You should check for the fallback WiFi in your YAML config.

See if you can find it with your mobile phone.

1 Like

I don’t know how to do that as I don’t know the wifi name.
I “edited” the pane and found

substitutions:
  name: esphome-web-813d8b
  friendly_name: ESPHome Web 813d8b

What does that mean?
the"pane"
esphome-web-9df038 esphome-web-9df038.yaml

Don’t know what substitutions are, but if you look for the word fallback in the YAML you posted, then you know the information.

Continuing the discussion from Wifi link to router seems to be broken:

I don’t know how to do that as I don’t know the wifi name.
I “edited” the pane and found

substitutions:
  name: esphome-web-813d8b
  friendly_name: ESPHome Web 813d8b

What does that mean?
the"pane"
esphome-web-9df038 esphome-web-9df038.yaml

Pull up guys. Is the esp32 plugged in via USB to the computer? You can’t load the first firmware wirelessly.

I am having problems linking to my Wifi. I was getting help when my replies were in read ony. I have since programmed my esp32 using Arduino IDE… I get exphome-web-54e333
the software is esphome web/24.11.1 and the address I seem to be linked to isTNCAP65D570.

I don’t understand what is going on. How do I fix it?

Logs

INFO ESPHome 2024.7.3
INFO Reading configuration /config/esphome/esp32-test1.yaml...
INFO Starting log output from esp32-1.local using esphome API
WARNING Can't connect to ESPHome API for esp32-1.local: Error resolving IP address: [Errno -5] No address associated with hostname (APIConnectionError)
INFO Trying to connect to esp32-1.local in the backgroundtype or paste code here

I have also found a new “pane”

ESPHome Web 54e330
esphome-web-54e330
esphome.web

When I install my sctipt I get the option to link to my wifi but that never works.

I really am not sure I understand your problem. You mention Arduino IDE and esphome at the same time. What exactly is running in the esp?

There was a (clearly announced in a pinned topic) forum maintenance going on when that happened.

Wouldn’t you rather continue this on the original thread and ask for this thread to be locked, rather than creating 2 separate threads?

PS- @nickrout post has a 4-day old solution which has been ignored due to the multiple threads on the subject

I’m still not getting anywhere. I seem to have broken some rules unintentionally. Sorry.

I found my address was missing when i searched HA settings. I have also updated HA and esphome.
I thought the problem might be with new to me esp32s but on trying esp8266s which I know work I got the same problem- unable to link to my wifi.

Any suggestions please