I am using nmap and owntracks. I get all the devices which are connected to my home network via nmap but as soon as I leave the home wifi I am shown away on the HA UI.
I would expect owntracks to send my gps location to HA as its connected to my mqtt but it doesnt.
I’ve just ditched owntracks and gone for GPSlogger with nmap instead. Appears to work well. I had a wanted to the shops about 800m away and it worked without any fuss.
both IPs are static in my router and only tracking 2 devices, mine and my wifes so why scan every device…
and in my devices (I know the guys above said don’t do it this way, but it works now for me, fingers crossed!!) I merged the 4 devices that appear, 2 for me (1 gpslogger, 1 nmap), same for my wife… so my known_devices.yaml is
obviously I have replaced the device names that appear when connecting via GPS logger and for this example replaced with 1’s and 2;s
Right so I tried GPS Logger with the instructions you gave me and nmap. It does seem to work but it doesnt show the location of my android i.e. says I am home but no gps info nor any battery info.
Yeah i gave them both static lan ip addresses so nmap only scans 2 addresses.
Mine shows battery level but not long/lat which doesnt bother me as it just works… shame my crapy moto g keeps dropping signal and wifil saying i am away… time for a new phone!!!
OK I went for a walk and the phone lost my nmap network (obviously) and then my gps kicked in and lang/lat appeared etc, so if you have nmap and are at home, they won’t appear… fairly obvious really…
It turns your RPi 3 into an iBeacon (it doesn’t create the Waypoints File that the OwnTracks people suggest yet, but it can create the QRCode for the iPhone OwnTracks app to import).
I know this is ages ago but if someone is still having issues here, Im doing the below.
What I have done and has been working great using NMAP and Owntracks is to add the mac address of the phone to the owntracks device in known_devices.yaml