Unable to connect to NodeMCU esp2866 with mDNS errors

I’ve been trying to add a esp home web device. I’ve plugged in the chip using a USB and installed the firmware using the esp home compiler. It all seems to go fine. I connected the wifi and while the esp8266 is plugged into the laptop I can connect to it wirelessly (not using the USB connection) and I can see the logs, it connects to the wifi all good.

But then I unplug from the laptop and plug into mains. I can see the esp8266 connected on the unifi dashboard it has an IP address. I can even see it on my home assistant ESP Home dashboard as connected. But when I try and connect to it using wifi to see the logs I see this …

Then looking in the DNS logs for HASS I see this

It seems HASS is having trouble locating the esp8266 over wifi using mDNS… I checked my unifi to make sure mDNS is enabled and it seems to be. This looks promising

So what am I missing? I believe there is a way to set the IP address in the config here:

But I worry that’s a hack. So strange it can connect to HASS and I see this in the webUI though

But I can’t connect from HASS > esp8266

sorry if I’m asking questions that have already been answered elsewhere…

First please format your code so it can be read. Don’t use screen grabs.

But it looks like the wifi is not configured correctly.

Hey - for sure appreciate this is a not a helpdesk. I’ll take a look at the link, looks promising!

How IP assigned to You device(s) - DHCP or static ?

In “log” I see attempt to resolve esphome-web-elab17.local.local.hass.io..
If devices get from DHCP domian other than local. - specify it in YAML files.

1 Like

You also need to make sure that you didn’t name your HASS system with .local in the FQDN. .local is now reserved for mDNS, plus it’s a protocol which works by broadcasting the “lookup” request to the local network, it’s not managed like DNS at the main router.
Get the WiFi part configured and working and it should all just magically work.

1 Like