Recently the tplink device tracker code was removed from Home Assistant.
This repository allows users to create a custom component and continue to use the tplink device tracker.
Installation:
- In the Home Assistant config folder, create a custom_components/tplink_router folder.
- Copy __init__.py, device_tracker.py and manifest.json from this repository into the new folder.
- Restart Home Assistant
- Add the device_tracker / tplink_router configuration into the configuration.yaml file.
- Restart Home Assistant
Example Config:
device_tracker:
- platform: tplink_router
host: ROUTER_IP_ADDRESS
username: ROUTER_USERNAME
password: !secret tplink_router_password
To verify Home Assistant is seeing the devices that are connected to the router, navigate to Developer Tools -> States and search for entities that start with device_tracker. The devices should show up with a source_type attribute of router.
A known_devices.yaml file should be created that can be edited to further customize the appearance of the tracked devices. For more information see https://www.home-assistant.io/integrations/device_tracker/.
For XDR Series, the password encryption algorithm is still unknown, so a encrypted password has to be used:
- Go to the login page of your router. (default: 192.168.0.1)
- Type in the password you use to login into the password field.
- Open the Network monitor of your browser (usually by pressing F12 and then clicking on "Network").
- Clear the screen before pressing "Confirm"
- Upon successful login, right click on the first one and select "Copy as cURL"
- Paste the content somewhere else and copy the value of the password in the last line without the quotation marks (example: --data-binary '{"method":"do","login":{"password":"SoMeEnCrYpTeDtExT"}}')