Hostname not populated for static IP

Why do hostnames not get populated for Static IPs?

I connected an ESPHome device to the AP initially by DHCP and the hostname was populated. Once I switched it to a static IP (set in the ESPHome YAML), it does not show the Hostname.


Hostnames get populated when the device does a DHCP request, and announces its own name; a device with a static address does not do a DHCP request, and does not announce its name. I would go back to DHPC, and assign a static IP and name on the router.