ESP8266 show offline after install new code

Hi, I’m brand new in ESPHome world with H.A.
Since a year I had a ESP8266 with Dallas temperature sensor and it show in my H.A. page with gauge.

I changed my internet provider and since, my esp disconnect and show offline. But it in router with is fixed ip address.

I tried :

  • Fixed my esp IP
  • Fixed my esp IP in the code
  • Change the code
  • Just show the 2.4 ghz radio with the same SSID
  • Cry
  • Deleted my device
  • Adopt new device
  • used chat GPT
  • Readed some forum

This is my Code :

  name: esphome-web-d55b00
  friendly_name: Thermometre-piscine

  name: ${name}
  friendly_name: ${friendly_name}
  name_add_mac_suffix: false
    name: esphome.web
    version: '1.0'

  board: esp01_1m

# Enable logging

# Enable Home Assistant API

# Allow Over-The-Air updates

# Allow provisioning Wi-Fi via serial

  # Set up a wifi access point
  ap: {}

# In combination with the `ap` this allows the user
# to provision wifi credentials to the device via WiFi AP.

# To have a "next url" for improv serial

# Configuration for the Dallas temperature sensor
  - pin: GPIO4

# Sensor configuration
  - platform: dallas
    address: 0x5D01204FBBF75228
    name: "Piscine Temperature"
    unit_of_measurement: "°F"
    accuracy_decimals: 1
      - lambda: return x * 1.8 + 32.0; # Convert Celsius to Fahrenheit
    icon: "mdi:thermometer"

  - platform: template
    name: ${Piscine Temperature}
    id: temperature_f

  package_import_url: github://esphome/example-configs/esphome-web/esp8266.yaml@main
  import_full_config: true

Thank you!

What version of ESphome are you using? Are you getting anything on the logs in esphome?

log :

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

Thank you!

Can you revert to 2024.4.1. Some people are having the same problem.

or earlier.

Thank but I can’t restore it

Perhaps wait till next version and it might correct itself. :+1: but don’t stop looking in the mean time for an answer. This is just how things are. You will learn more when things break. I know at the start it all seems disheartening.

Thank you very much, I restored it, I will restart from scratch.
(sorry I’m not very good in english)

Your english comes across as a fluent speaker. If it wasn’t for the Quebec in your handle I would have taken you as a native speaker. The natural response is always to restart from scratch but as time goes on you will not have to take such drastic responses.

Did you get a new router when you changed providers? Sounds like you may have a mDNS issue.

I don’t understand the mDNS with forum. I will try again.