The ESP8266 device goes offline after first install

Hi,
I recently faced an issue with ESPhome using esp8266.

when I connect the device to USB and prepare it for first use and then connect it to wifi. the device is discovered in ESPhome.

but when I disconnect it via Wi-Fi, it appears offline, and I cannot use OTA!

it seems it does not connect to my wifi anymore.

I have to repeat this everytime !

My ESPHome is up to date; 2025.10.1

Has anyone have this issue. I checked it with different network setups.

thank you in advance.

Post your code

Have you coded a fixed IP address?

Seems logical, if you disconnect it from Wifi, it will be offline. Why disconnect it ?

3 Likes

I mean disconnect it from USB and connect it to the power supply.
I want to continue program it via OTA.

its very simple code after discoverd by ESPHome, I didn’t configure the Static IP address. But I do the the device in my DHCP release list.

esphome:
name: esphome-web-5fd290
friendly_name: ESPHome Web 5fd290
min_version: 2025.9.0
name_add_mac_suffix: false

esp8266:
board: esp01_1m

Enable logging

logger:

Enable Home Assistant API

api:

Allow Over-The-Air updates

ota:

  • platform: esphome

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

Power problem?
Have you verified that the device is running?

Was there not a problem mentioned before on the forum about some esps that if you powered them by the USB port the wifi cut out. try powering it by the 3.3v pin with 3.3V and see if wifi comes up.

Is that supposed to say “set it in your DHCP list”? It’s best to assign a fixed IP address otherwise it can get assigned something different at reboot and disconnect from HA. Either set a fixed IP in the device itself (ESPhome code) or as a static assignment in your router.

So you are trying to add it to Home Assistant using the IP address that you see it being assigned in your router’s DHCP list?