-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 9ffd5bd
Showing
6 changed files
with
600 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# TPLink Router device tracker for Home Assistant | ||
|
||
The `tplink_router` platform for `device_tracker` integration allows you to detect presence by looking at connection devices to a [TP-Link](https://www.tp-link.com) wireless router. | ||
|
||
It was part of the official `tplink` integration in the past but was [removed](https://github.com/home-assistant/core/pull/27936) from Home Assistant. | ||
|
||
Devices originally supported include the following: | ||
|
||
- Archer C7 firmware version 150427 | ||
- Archer C9 firmware version 150811 | ||
- EAP-225 AP with latest firmware version | ||
- Archer D9 firmware version 0.9.1 0.1 v0041.0 Build 160224 Rel.59129n | ||
|
||
Additional devices added since the removal from Home Assistant: | ||
|
||
- TPLink N600 | ||
|
||
## Installation | ||
Recommended: use [HACS](https://hacs.xyz/). | ||
|
||
Manual: copy `custom_components/tplink_router` folder into your `custom_components`. | ||
|
||
<div class='note'> | ||
TP-Link devices typically only allow one login at a time to the admin console. This integration will count towards your one allowed login. Depending on how aggressively you configure device_tracker you may not be able to access the admin console of your TP-Link device without first stopping Home Assistant. Home Assistant takes a few seconds to login, collect data, and log out. If you log into the admin console manually, remember to log out so that Home Assistant can log in again. | ||
</div> | ||
|
||
### Configuration | ||
|
||
To enable this device tracker, add the following lines to your `configuration.yaml`: | ||
|
||
```yaml | ||
# Example configuration.yaml entry | ||
device_tracker: | ||
- platform: tplink_router | ||
host: YOUR_ROUTER_IP | ||
username: YOUR_ADMIN_USERNAME | ||
password: !secret tplink_router_password | ||
``` | ||
|
||
{% configuration %} | ||
host: | ||
description: The IP address of your router, e.g., 192.168.1.1. | ||
required: true | ||
type: string | ||
username: | ||
description: The username of an user with administrative privileges, usually *admin*. The Archer D9 last firmware does not require a username. | ||
required: true | ||
type: string | ||
password: | ||
description: The password for your given admin account. | ||
required: true | ||
type: string | ||
{% endconfiguration %} | ||
|
||
For Archer C9 models running firmware version 150811 or later please use the encrypted password you can retrieve like this: | ||
|
||
1. Go to the login page of your router. (default: 192.168.0.1) | ||
2. Type in the password you use to login into the password field. | ||
3. Click somewhere else on the page so that the password field is not selected anymore. | ||
4. Open the JavaScript console of your browser (usually by pressing F12 and then clicking on "Console"). | ||
5. Type `document.getElementById("login-password").value;` or `document.getElementById("pcPassword").value;`, depending on your firmware version. | ||
6. Copy the returned value to your Home Assistant configuration as password. | ||
|
||
See the [device tracker integration page](/integrations/device_tracker/) for instructions how to configure the people to be tracked. | ||
|
||
For Archer D9 model the default IP is 192.168.1.1, the username is not necessary and you can leave that field blank. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
"""TPLink Router integration.""" |
Oops, something went wrong.
9ffd5bd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, I'm a newbie to and I can't install the tplink integration. my router is tp-link archer c59. can you help me? how do i contact you?