mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 15:26:59 +00:00
Add new configuration variable (#5117)
This commit is contained in:
parent
1c1025546e
commit
a6ade458c7
@ -19,6 +19,8 @@ The `asuswrt` platform offers presence detection by looking at connected devices
|
|||||||
This platform is **NOT** available for [Microsoft Windows installations](http://pexpect.readthedocs.io/en/stable/overview.html#pexpect-on-windows).
|
This platform is **NOT** available for [Microsoft Windows installations](http://pexpect.readthedocs.io/en/stable/overview.html#pexpect-on-windows).
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
### {% linkable_title Configuration %}
|
||||||
|
|
||||||
To use an ASUSWRT router in your installation, add the following to your `configuration.yaml` file:
|
To use an ASUSWRT router in your installation, add the following to your `configuration.yaml` file:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
@ -29,15 +31,44 @@ device_tracker:
|
|||||||
username: YOUR_ADMIN_USERNAME
|
username: YOUR_ADMIN_USERNAME
|
||||||
```
|
```
|
||||||
|
|
||||||
Configuration variables:
|
{% configuration %}
|
||||||
|
host:
|
||||||
- **host** (*Required*): The IP address of your router, eg. `192.168.1.1`.
|
description: "The IP address of your router, eg. `192.168.1.1`."
|
||||||
- **username** (*Required*: The username of an user with administrative privileges, usually `admin`.
|
required: true
|
||||||
- **password** (*Optional*): The password for your given admin account (use this if no SSH key is given).
|
type: string
|
||||||
- **protocol** (*Optional*): The protocol (`ssh` or `telnet`) to use. Defaults to `ssh`.
|
username:
|
||||||
- **port** (*Optional*): SSH port to use. Defaults to `22`.
|
description: "The username of an user with administrative privileges, usually `admin`."
|
||||||
- **mode** (*Optional*): The operating mode of the router (`router` or `ap`). Defaults to `router`.
|
required: true
|
||||||
- **ssh_key** (*Optional*): The path to your SSH private key file associated with your given admin account (instead of password).
|
type: string
|
||||||
|
password:
|
||||||
|
description: "The password for your given admin account (use this if no SSH key is given)."
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
protocol:
|
||||||
|
description: "The protocol (`ssh` or `telnet`) to use."
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
default: ssh
|
||||||
|
port:
|
||||||
|
description: SSH port to use.
|
||||||
|
required: false
|
||||||
|
type: int
|
||||||
|
default: 22
|
||||||
|
mode:
|
||||||
|
description: "The operating mode of the router (`router` or `ap`)."
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
default: router
|
||||||
|
ssh_key:
|
||||||
|
description: The path to your SSH private key file associated with your given admin account (instead of password).
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
require_ip:
|
||||||
|
description: If the router is in access point mode.
|
||||||
|
required: false
|
||||||
|
type: boolean
|
||||||
|
default: true
|
||||||
|
{% endconfiguration %}
|
||||||
|
|
||||||
<p class='note warning'>
|
<p class='note warning'>
|
||||||
You need to [enable telnet](https://www.asus.com/support/faq/1005449/) on your router if you choose to use `protocol: telnet`.
|
You need to [enable telnet](https://www.asus.com/support/faq/1005449/) on your router if you choose to use `protocol: telnet`.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user