Adding NMap causes UI to not load - SOLVED

Bit of a noob and I am trying to transfer a set up from a windows machine to a Hassbian set up on a Pi3. Managed to get everything to work except NMap for presence detection.

Whenever I add the nmap platform to the device tracker section (owntracks on its own works) the system boots but the UI never comes up. The logs show it running in the background with no obvious errors and I can samba to the folder over the nework.

device_tracker:

  • platform: owntracks
    max_gps_accuracy: 1000
    new_device_defaults:
    track_new_devices: True
    hide_if_away: False
  • platform: nmap_tracker
    hosts: 192.168.1.6/9
    home_interval: 10
    exclude:
    • 192.168.1.7
    • 192.168.1.8

Anyone have any ideas?

Update: UI came back up after about 30 minutes on its own. Very strange!

Do you really have a /9 setup on your network?

I’ve tried a couple of variations on the hosts to limit it and even just trying 192.168.1.6 (know ip of phone) it is the same.

ok, but if you don’t actually have a /9 on your network (most home subnets would be a /24), you are putting a ton of load on your system scanning IP addresses that do not exist within the subnet.

I think you are right! Networking idiot here. Many thanks.

Will amend and try again later.

Yes, flamingm0e is exactly right, you are sweeping a huge range. This is what you would want to do instead:

device_tracker:
  - platform: nmap_tracker
    hosts: 192.168.1.0/24
    home_interval: 10
    exclude:
     - 192.168.1.7
     - 192.168.1.8

Exactly as diagnose above. Solved.

Thanks all

That’s 8,388,606 vs. 254 hosts. Slight difference…