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/mikrotik.markdown
+26-9Lines changed: 26 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,7 @@ title: "MikroTik"
3
3
description: "Instructions on how to integrate MikroTik/RouterOS based devices into Home Assistant."
4
4
logo: mikrotik.png
5
5
ha_category:
6
+
- Hub
6
7
- Presence Detection
7
8
ha_release: 0.44
8
9
redirect_from:
@@ -11,7 +12,11 @@ redirect_from:
11
12
12
13
The `mikrotik` platform offers presence detection by looking at connected devices to a [MikroTik RouterOS](http://mikrotik.com) based router.
13
14
14
-
## Configuring `mikrotik` device tracker
15
+
There is currently support for the following device types within Home Assistant:
16
+
17
+
- Presence Detection
18
+
19
+
## Configuring `mikrotik` hub
15
20
16
21
You have to enable accessing the RouterOS API on your router to use this platform.
17
22
@@ -33,9 +38,8 @@ To use a MikroTik router in your installation, add the following to your `config
33
38
34
39
```yaml
35
40
# Example configuration.yaml entry
36
-
device_tracker:
37
-
- platform: mikrotik
38
-
host: IP_ADDRESS
41
+
mikrotik:
42
+
- host: IP_ADDRESS
39
43
username: ROUTEROS_USERNAME
40
44
password: ROUTEROS_PASSWORD
41
45
```
@@ -70,9 +74,14 @@ ssl:
70
74
default: false
71
75
type: boolean
72
76
method:
73
-
description: Override autodetection of device scanning method. Can be `wireless` to use local wireless registration, `capsman` for capsman wireless registration, or `ip` for DHCP leases.
77
+
description: Override autodetection of device scanning method. Can be `wireless` to use local wireless registration, `capsman` for capsman wireless registration, or `dhcp` for DHCP leases.
74
78
required: false
75
79
type: string
80
+
arp_ping:
81
+
description: Use ARP ping with DHCP method for device scanning.
82
+
required: false
83
+
default: false
84
+
type: boolean
76
85
{% endconfiguration %}
77
86
78
87
<div class='note info'>
@@ -113,17 +122,25 @@ To use this device tracker you need restricted privileges only. To enhance the s
113
122
/user set password="YOUR_PASSWORD" homeassistant
114
123
```
115
124
116
-
## Using the additional configuration to the `mikrotik` device tracker entry in your `configuration.yaml` file:
125
+
## Using the additional configuration to the `mikrotik` entry in your `configuration.yaml` file:
117
126
118
127
```yaml
119
-
device_tracker:
120
-
- platform: mikrotik
121
-
host: 192.168.88.1
128
+
mikrotik:
129
+
- host: 192.168.88.1
130
+
username: homeassistant
131
+
password: YOUR_PASSWORD
132
+
ssl: true
133
+
arp_ping: true
134
+
method: dhcp
135
+
track_devices: true
136
+
137
+
- host: 192.168.88.2
122
138
username: homeassistant
123
139
password: YOUR_PASSWORD
124
140
ssl: true
125
141
port: 8729
126
142
method: capsman
143
+
track_devices: true
127
144
```
128
145
129
146
See the [device tracker integration page](/components/device_tracker/) for instructions on how to configure the people to be tracked.
0 commit comments