The mDNS name of my ESPHome node is resolved on some OSes (Android and OSX) but not on others (Linux Mint and Windows 10). On the contrary, the hostname of my Home Assistant Yellow, and other local hostnames are resolved by every host.
What network gear are you using? And by chance got any snake oil in the mix which might break mDNS?
Not the latest and greatest but you might wanna check if later versions have any changes/improvments regarding mDNS in the change log or just go the quick road to 2023.7 to rule out any bugs in prior versions
That seems off… With this setting, you’re forcing the device to connect on this IP. This should only be there, if you’re changing your IP address while the device is online.
The next thing, please check your DHCP server for specific settings.
I’m using use_address because mDNS doesn’t work, so I must use the IP address of the ESPHome node instead of its local domain name.
I could set up static DHCP for the MAC address of this ESPHome node, but I’d much rather fix the mDNS issue.
To my knowledge, use_address doesn’t affect the firmware, and the stock firmware of my Everything Presence One sensor, which is also based on ESPHome, is also affected by this mDNS issue.
No, you misunderstood. use_address is only, if you are changing something and need to send that to another IP address.
An example: your device has the IP x.x.x.200 and you need to change that for whatever reasons. If you now setup a new IP address (.100) in the firmware, the upload would go to the new IP address (.100). So to upload the firmware to the device (.200), having the new IP address in the firmware (.100), you need to tell ESPHome on what IP address (.200) you want the OTA to connect. That’s what use_address is for.
If you want to set a static IP in the ESP device, you need to use something like this:
EDIT: To clarify, use_addressis only used for the connection while uploading a firmware from ESPHome. It in no way affects the regular IP address, so in your case the IP address the device uses, is set by DHCP, not from your device!
I think I clearly understand the purpose of use_address, and I’m using it as intended. I use it to specify the actual IP address of my ESPHome node for uploading the firmware, given that it’s inaccessible via its mDNS name from my Linux Mint computer.
No, you don’t understand it. But as you think you’re right, than I and others can assume everything is peachy, your node is working as expected and without errors?! Great, than you can mark this topic as solved.
You’re framing my comment as a way to make myself seem right and others wrong, which is not my intention.
Strictly speaking, based on your description, I may not be using use_address as intended but rather as a workaround. Nevertheless, my issue is still unresolved, and given the above, it’s probably rather unusual.
Like @koying I can confirm (not from a windows - don’t use that) but from a linux mint client that my esphome nodes IP’s are proper resolved via mDNS.
> ping solar.local
PING solar.local (192.168.0.36) 56(84) bytes of data.
64 bytes from solar.lan (192.168.0.36): icmp_seq=1 ttl=255 time=9.40 ms
So questions from my last post remain:
Some networking/firewalling gear might (partially) break mDNS functions - hence I’m asked about your network setup.
Sorry for missing your question! I use a Sagemcom CS 50001 GPON gateway that my ISP provided. I’ve looked into its settings, and I couldn’t find anything that seemed related. There isn’t any other network gear between my Linux Mint desktop and the ESPHome node.
@mondalaci did you find a solution for this issue? I am having the same issue now with one of my esphome devices, and it is really weird because I can access other esphome devices using their name.local address, but it doesn´t work for one specific devices with the same esphome code.
For instance device sonoff-bedroom works while sonoff-dressing-bedroom.local doesn´t work:
C:\>ping sonoff-bedroom.local
Pinging sonoff-bedroom.local [192.168.1.150] with 32 bytes of data:
Reply from 192.168.1.150: bytes=32 time=19ms TTL=255
Reply from 192.168.1.150: bytes=32 time=19ms TTL=255
Reply from 192.168.1.150: bytes=32 time=6ms TTL=255
Reply from 192.168.1.150: bytes=32 time=3ms TTL=255
Ping statistics for 192.168.1.150:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 3ms, Maximum = 19ms, Average = 11ms
C:\>ping sonoff-dressing-bedroom.local
Ping request could not find host sonoff-dressing-bedroom.local. Please check the name and try again.
EDIT: I just found out restarting my Access Point fixed the issue for that device, so it must be some problem related to the firmware of the Access Point (my Access Point is a router Huawei WiFi AX3 Quad Core in bridge mode)
I have exactly the same symptoms since I upgraded ESPHome to the latest image.
It used to work perfectly fine, up to before the upgrade (I think from 2024.3, but it could be 2024.2, I didn’t pay attention) to 2024.4.2, and now mDNS just wouldn’t work inside the container, while it works on the host.
And yes, I’m in host network mode.
I’m puzzled…
I saw a changelog entry regarding IPV6 in 2024.3 and “Dualstack is added and it could now have up to 5 ip addresses of any type”, but I must admit I just have no clue what “dualstack” is in this context…
Thanks for the reposnse.
Actually this is my first installation of Esphome dashboard then i have no idea for previous versions(i am at 2024.4.2).
For my case just having small modification on docker-compose.yaml and preparing a Dockerfile to simply run avahi-daemon on the container is good enough.
if you ever come across this. This is how I solved my issue.
pfsense avahi installed, ensure Enable reflection is checked.
My NOT Network is only for my Isolated no internet devices. The mdnsip is 224.0.0.251