Device tracker history not recorded (always home) - NMAP

I am using nmap in order to track device presence at home. There is an issue with nmap failing to detect iPhones, but it can be tackled with the option consider_home: 900 basically saying wait 15 min before considering the device as gone away. This is my configuration. So I get my icons saying home when I am home and correctly saying away when I am away.

device_tracker:
  - platform: nmap_tracker
    hosts: 192.168.0.100-150
    consider_home: 900
    interval_seconds: 15
    track_new_devices: true

The problem is that history is simply not recorded at all. My device is in status not_home. but my history graph just shows home all the time.

Any ideas why this happens?

Ben

I am experiencing exactly the same issue with the current version 0.40.1 Have you made any progress regarding this?

Thank you!

I solved the issue but can’t remember how. Try like this:

device_tracker:
  - platform: nmap_tracker
    hosts: 192.168.0.100-150
    consider_home: 900
    track_new_devices: true

and check that the known_devices.yaml is working fine

I discover that only work well if “hide_if_away” is false. If “hide_if_away” is true in the history don’t show well the state.

I hope this helps to fix it.