You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/_components/device_tracker.markdown
+28-18Lines changed: 28 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -9,9 +9,11 @@ sharing: true
9
9
footer: true
10
10
---
11
11
12
-
Home Assistant can get information from your wireless router to track which devices are connected. Please check the sidebar for a list of brands of supported wireless routers.
12
+
Home Assistant can get information from your wireless router or third party services like iCloud or OwnTracks to track which devices are connected and considered "in home". Please check the sidebar for a list of brands of supported wireless routers and services.
13
13
14
-
There are also trackers available which uses different technologies like [MQTT](/components/mqtt/) or [Nmap](/components/device_tracker.nmap_scanner/) to scan the network for devices.
14
+
There are also trackers available which use different technologies like [MQTT](/components/mqtt/) or [Nmap](/components/device_tracker.nmap_scanner/) to scan the network for devices.
15
+
16
+
# {% linkable_title Configuring a `device_tracker` platform %}
15
17
16
18
To get started add the following lines to your `configuration.yaml` (example for Netgear):
17
19
@@ -22,31 +24,39 @@ device_tracker:
22
24
host: 192.168.1.1
23
25
username: admin
24
26
password: YOUR_PASSWORD
27
+
```
25
28
26
-
# Optional configuration
29
+
The following optional parameters can be used with any platform. However device tracker will only look for global settings under the configuration of the first configured platform:
27
30
28
-
# If new discovered devices are tracked by default (default: yes)
29
-
track_new_devices: yes
30
-
# Seconds between each scan for new devices (default: 12)
31
-
interval_seconds: 12
32
-
# Seconds to wait till marking someone as not home after not being seen
| `track_new_devices` | True | If new discovered devices are tracked by default |
34
+
| `interval_seconds` | 12 | Seconds between each scan for new devices |
35
+
| `consider_home` | 180 | Seconds to wait till marking someone as not home after not being seen. This parameter is most useful for households with Apple iOS devices that go into sleep mode while still at home to conserve battery life. iPhones will occasionally drop off the network and then re-appear. `consider_home` helps prevent false alarms in presence detection when using IP scanners such as Nmap. |
36
36
37
-
Once tracked, a file will be created in your config dir called `known_devices.yaml`. Edit this file to adjust which devices to be tracked. Here you can also setup a URL for each device to be used as the entity picture and set whether the device will be show in the UI when in the away state.
37
+
Multiple device trackers can be used in parallel, such as [Owntracks](/components/device_tracker.owntracks/) and [Nmap](/components/device_tracker.nmap_scanner/). The state of the device will be determined by the source that reported last.
38
38
39
-
Multiple device trackers can be used in parallel, such as [Owntracks](/components/device_tracker.owntracks/) and [Nmap](/components/device_tracker.nmap_scanner/). The state of the device will be determined by the source that reported last. Device tracker will look for global settings (`track_new_devices`, `consider_home`, and `home_interval`) under the configuration of the first platform.
39
+
# {% linkable_title `known_devices.yaml` %}
40
40
41
-
The optional `consider_home` entry is useful for households with Apple iOS devices that go into sleep mode while still at home to conserve battery life. iPhones will occasionally drop off the network and then re-appear. `consider_home` helps prevent false alarms in presence detection when using IP scanners such as nmap.
41
+
Once `device_tracker` is enabled, a file will be created in your config dir named `known_devices.yaml`. Edit this file to adjust which devices to be tracked.
42
42
43
-
To add Nmap tracking just add the MAC address to the OwnTracks or iCloud device `mac:` configuration. To use both OwnTracks and Nmap you could use the following example:
43
+
Here's an example configuration for a single device:
0 commit comments