ESPHome devices, mDNS and DHCP registration issues

Hi all,

Have this weird issue when registering devices in my ESPHome.

Example:

name: "onju-voice" 

…then it register itself (dhcp) as onju-voice-24b0d4 and I can ping onju-voice-24b0d4 and get the response back with the .local domain.

But when trying to do an OTA, ESPHome try to resolve onju-voice and not onju-voice-24b0d4 and of course, fails.

So, if I change the name to

name: onju-voice-24b0d4"

…then it register itself (dhcp) as onju-voice-24b0d4-24b0d4

What the h***?

Anybody out there that can explain what is going on - with a solution ?

…and found the solution (thanx Harry!):

name_add_mac_suffix: false (it was set to true) - or simply remove the entire line.

Still, it doesn’t make sense why the resolving didn’t work accordingly.

name_add_mac_suffix: is more for bulk produced devices that have a source repository and are configured to use dashboard_import:.

Have a read of Sharing ESPHome devices — ESPHome if you’re interested.