The tplink_router
platform for device_tracker
integration allows you to detect presence by looking at connection devices to a TP-Link wireless router.
It was part of the official tplink
integration in the past but was removed from Home Assistant.
Recommended: use HACS.
Manual: copy custom_components/tplink_router
folder into your custom_components
.
To enable this device tracker, add the following lines to your configuration.yaml
:
# Example configuration.yaml entry
device_tracker:
- platform: tplink_router
host: YOUR_ROUTER_IP
username: YOUR_ADMIN_USERNAME
password: !secret tplink_router_password
Configuration variables:
For Archer C9 models running firmware version 150811 or later please use the encrypted password you can retrieve like this:
document.getElementById("login-password").value;
or document.getElementById("pcPassword").value;
, depending on your firmware version.See the device tracker integration page 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.
Devices originally supported include the following:
Additional devices added since the removal from Home Assistant:
If your device is not in the list, you can still give it a try and let me know if it works or not, I'll update the documentation.
Disclaimer: I cannot add support for devices I don't own, unless you provide me with a list of HTTP requests leading to the page listing MAC address of connected devices, including authentication, and an example of the page.