Nmap no longer show device name?

I just noticed that my nmap scan now only shows the mac address (e.g: 5082d5a2ef05) in the frontend. It used to show the name. Has anyone noticed this too?

thanks.

There are a few places you can specify the device name. It is likely you changed one of these files or somehow a link was broken. Nmap itself doesn’t return device names, only the mac address.

1: Known_devices.yaml file

This file contains a name: configuration item for each discovered device. This will be overridden by the next two options IIRC.

  1. Under customize: you can specify a name other than the MAC address.
  1. If you are using the lovelace UI many of the card options contain a name: option that will override the two previous options and if it was once defined in this file with a custom name and no longer is, the default would be the MAC address.

I’ve had it happen that my known_devices.yaml had magically recorded all (or at least most) of my devices a second time after I’d made an (obiously stupid) change to the way I tracked devices.

So, I had my original entries nicely formatted, with proper names and icons/images in the first half of the file and the second half of the file contained the MAC Addresses again without my customized info.
Now that there were two entries for the same MAC Address, HA decided to use the last entry for each one, i.e.the non-customized one.

Might not be the case for you, but I’d say it worth a second look.

thanks silvrr, I am aware of those and have been doing it when needed.
So I have got the issue resolved. Here are some details:

  • I am running hassio in docker
  • nmap -sP does return hostnames (only as good as the reverse-dns population)
  • my issue was that I wasn’t using my local DNS, I was using google dns in docker env. change it to my local DNS fixed it.

: )