Esphome temp sensor was working fine. now unavailable

this is the last part in my yaml file for the sensor:

sensor:
  - platform: dht
    pin: D7
    model: dht11
    temperature:
      name: "Kitchen Temperature"
      filters:
      - offset: -1.6
    humidity:
      name: "Kitchen Humidity"
    update_interval: 180s

it is lit green as seen here:

when i look at the log, it seems HA or EspHome cant connect via Wifi but the device is definitely connected to my wifi


in my UI, i see this
image

but strangely, i can still see the history of dots instead of solid lines as before.:

i see many people have this issue and the solution is to move to MQTT. is there another simpler solution?

Are you using static IP addresses on esphome, or dhcp

yes, all static as seen in the top portion of the yaml:

esphome:
  name: kitchen_temp
  platform: ESP8266
  board: nodemcuv2

wifi:
  ssid: "meID"
  password: "pass"
  manual_ip:
    static_ip: 192.168.1.247
    gateway: 192.168.1.1
    subnet: 255.255.255.0
    dns1: 192.168.1.229
    dns2: 192.168.1.233
  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "kitchen Temp Hotspot"
    password: "pass2"

captive_portal:

# Enable logging
logger:

# Enable Home Assistant API
api:
  password: "pass3"

ota:
  password: "pass4"

Those are pretty inconsistent ping times for a local network. You may have either a congestion or interference problem.

And you are running your own dns servers?

yes, own DNS to get rid of ads.

Try bypassing / disabling them to see what happens.

Out of curiosity: in what way are dns entries connected with good/bad connection? I’m not skilled in this branch, that’s why i ask…i thought that they are important for “outside world” (internet) only, and not for local network, especially in case of local connected esp modules…i guess i’m wrong…

what’s interesting is that my top part, network settings, works fine for other nodemcu 8266 boards. it is just this unit that is giving me problems. i went ahead and flashed it again and still the same issue. will try to bypass the DNS tonight to see if that does anything.

Probably not worthwhile if you have other ESPHome nodes that have underscores in the name that are working.

ok. happy to say it was another static ip, with the same ip as my nodemcu. all good now!