As I am describing in another post (How to get presence detection to work (ping)?) I am trying to get device tracker to work. I was planning to use ping, but am stuck as per my other post (at least the suggestion offered did not work).
So I figured that maybe ping just do not work on all systems, and as I do not really care which presence detection I use I thought I would then try nmap instead. But that also seems not straightforward, for me.
I understand for nmap to work you need to install some software. On https://www.home-assistant.io/integrations/nmap_tracker/ it is described how to do that in a Python virtual environment, Debian based hosts, or Fedora hosts. But I am running on HASSOS on a NUC. Does anybody know how to install nmap on that?
It would be wonderful if the instructions could be really detailed, not just telling me to run some command as I most likely would not know from where to run that command or from where I would get the necessary files.
And in this I'm NOT home it is stated that "You have to restart HA. A device will be created (when discovered for the first time on the LAN) starting with : “device_tracker.”, you can see it in the development tools (tab: states)… You can use that name in your automation.”
But I do not get any messages about new devices, and I am not able to see device_tracker.erikstlf:_nmap in states. I only see device_tracker.mi_mix_2, which has been there all along, and which is not updating, hence the reason I wanted to try something else.
I too am new to HA and struggling with presence detection. I have copied every example including the on Tinkerer provided and an unsuccessful. Coping Tinkerer’s example I get the error "Invalid config for [device_tracker.nmap_tracker]: [name] is an invalid option for [device_tracker.nmap_tracker]. Check: device_tracker.nmap_tracker->name. " in checking the configuration.
TeWhites, what are you it running on?
I have now applied tinkerers latest suggestion, adding the /32. Not that I know what/why, but let us see. I have also tried ping, and also to something that is not my phone in case that was the problem, but no luck. So I start to think it must be something with hass.io or hassos (on a NUC). So for that reason it would be interesting to know what your are running on.
I am running on a PI4. I can’t get anything to show a valid configuration with either device_tracker or binary_sensor. So I don’t know if the presence detection will or will not work. Do you get valid configurations
To TEWhites, I have one device_tracker, my phone, through integrations with/because using mobile app. But not updating. Looking forward to hear what you find out.
Tinkerer, no luck with your suggestion of adding /32. Anything else?
Aha, reboot again again, and now got it. Following tinkerers suggestions with the /32 (I believe that is what did the trick, have tried so many things). What a relief. Thank you so much.