Skip to content

Commit 4299954

Browse files
slackr31337frenck
authored andcommitted
Add Mikrotik hub category and update example config (home-assistant#10044)
* Updating for Mikrotik Hub * Add hub category and example config
1 parent a904b18 commit 4299954

File tree

1 file changed

+26
-9
lines changed

1 file changed

+26
-9
lines changed

source/_components/mikrotik.markdown

Lines changed: 26 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ title: "MikroTik"
33
description: "Instructions on how to integrate MikroTik/RouterOS based devices into Home Assistant."
44
logo: mikrotik.png
55
ha_category:
6+
- Hub
67
- Presence Detection
78
ha_release: 0.44
89
redirect_from:
@@ -11,7 +12,11 @@ redirect_from:
1112

1213
The `mikrotik` platform offers presence detection by looking at connected devices to a [MikroTik RouterOS](http://mikrotik.com) based router.
1314

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
1520

1621
You have to enable accessing the RouterOS API on your router to use this platform.
1722

@@ -33,9 +38,8 @@ To use a MikroTik router in your installation, add the following to your `config
3338

3439
```yaml
3540
# Example configuration.yaml entry
36-
device_tracker:
37-
- platform: mikrotik
38-
host: IP_ADDRESS
41+
mikrotik:
42+
- host: IP_ADDRESS
3943
username: ROUTEROS_USERNAME
4044
password: ROUTEROS_PASSWORD
4145
```
@@ -70,9 +74,14 @@ ssl:
7074
default: false
7175
type: boolean
7276
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.
7478
required: false
7579
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
7685
{% endconfiguration %}
7786

7887
<div class='note info'>
@@ -113,17 +122,25 @@ To use this device tracker you need restricted privileges only. To enhance the s
113122
/user set password="YOUR_PASSWORD" homeassistant
114123
```
115124

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:
117126

118127
```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
122138
username: homeassistant
123139
password: YOUR_PASSWORD
124140
ssl: true
125141
port: 8729
126142
method: capsman
143+
track_devices: true
127144
```
128145

129146
See the [device tracker integration page](/components/device_tracker/) for instructions on how to configure the people to be tracked.

0 commit comments

Comments
 (0)