Install Device Tracker for Home Assistant (nmap_tracker)

      Kommentare deaktiviert für Install Device Tracker for Home Assistant (nmap_tracker)

Install nmap on raspberry pi:

sudo apt-get install net-tools nmap

Add following configuration in configuration.yaml file. Home_interval are minutes that Nmap will not scan this device, assuming it is home

device_tracker:
  - platform: nmap_tracker
    hosts: 192.168.0.1-255
    home_interval: 15

After a restart of Home Assistant the tracker will scan the network and list all devices in the file known_devices.yaml. Now some options can be configured in this file. The option name, hide if away and track should be set.

aabbccddeeff:
  hide_if_away: false
  icon:
  mac: AA:BB:CC:DD:EE:FF
  name: Smart Home Server
  picture:
  track: true

https://www.home-assistant.io/integrations/nmap_tracker/