Using Multiple Device Trackers

418 views
Skip to first unread message

Chirag

unread,
Dec 5, 2015, 8:23:03 AM12/5/15
to Home Assistant Dev
I have home-assistant running on a RPi. It works great :)

I'm going to start work on integration on LightwaveRF integration (if I can figure it out). If anyone has any interest in this please let me know.

I currently have presence detection configured with NMAP and Owntracks.

However, I can't use both together. If both are in my configuration file only the last entry will work. Is this a purposeful limitation?

I'd quite like to have the flexibility to know GPS and battery level of a device in or out of the house as well as its status (wifi on or off) when in the house. In addition there are a lot more wifi devices in my house and I'd just like to know if they are "up" or not e.g. wifi printers / laptops etc.

My Questions:

1. Is it possible to use BOTH nmap tracking and mqtt/owntracks?
2. I use a draytek router. When using telnet (I was going to write a module) I noticed that the dhcp or arp lookup always returns the IPs because all my devices have static IPs configured on the rotuer. I'm guessing when this is true it is impossible to check if a device is connected or not as the router will always report the IP in the lookup. Is that right?

Many thanks in advance for your help,

C

Chirag

unread,
Dec 5, 2015, 8:35:18 AM12/5/15
to Home Assistant Dev
OK silly on my part. I answered my own first question.

To use TWO device trackers this is what you need in your config:

device_tracker:
#  platform: owntracks
  platform: nmap_tracker
  hosts: 192.168.0.1-100/24 #check IP addresses from 1 to 100.
  home_interval: 2 #checks every two minutes

device_tracker 2:
  platform: owntracks

mqtt:
  broker: [your_broker]
  port: [your_broker_port]
  username: [your_username]
  password: [your_password]


If you want zones you can set them up as:

zone:
  name: Home
  latitude:
  longitude:
  radius:
  icon: mdi:home

zone 2:
  name: Work
  latitude:
  longitude:
  radius:
  icon: mdi:school

etc.

Still looking for an answer for my second question though :)
Reply all
Reply to author
Forward
0 new messages