As i’m receiveing a lot of sock errors in the logs decided to finally simplify my setup
So let’s say we have the following setup in configuration yaml for a single android phone
device_tracker:
- platform: nmap_tracker
home_interval: 3
hosts:
- 192.168.1.1
interval_seconds: 120
track_new_devices: yes
- platform: ping
interval_seconds: 120
consider_home: 300
hosts:
ping_myself: 192.168.1.1
- platform: gpslogger
This will give us 3 entries in known_hosts
#nmap entry
mymobiledevice:
hide_if_away: false
mac: xx:xx:xx:xx:xx:xx
name: NMAP DEVICE
picture:
track: true
#ping entry
ping_myself:
hide_if_away: false
mac:
name: ping device
picture:
track: true
vendor:
#gpslogger entry
serial_number:
hide_if_away: false
mac:
name: gpslogger_device
picture:
track: true
vendor:
So now two question.
- Is it possible to combine all of these into one?
- Let’s say in nmap we first commented out the hosts: so it scanned the whole of network entering a lot of entries into known_hosts. Than we comment out the whole of nmap section… What will be the behaviour of HA considering that in known_hosts we set the directive “track: true” but as nmap is commented out there will be no means to track?