Custom component for device tracking platform in Home assistant. Works on Archer C9 v5
-
Put the
tplink_archer_c9.py
into theconfig/custom_components/device_tracker/
folder -
configuration.yaml
:device_tracker: - platform: tplink_archer_c9 host: HOST IP # 192.168.0.1 password: "md5 encrypted password"
-
Restart !
Information extracted from https://www.home-assistant.io/components/device_tracker.tplink/
For Archer C9 models running firmware version 150811 or later please use the encrypted password you can retrieve like this:
- 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.
- Click somewhere else on the page so that the password field is not selected anymore.
- Open the JavaScript console of your browser (usually by pressing F12 and then clicking on “Console”).
- Type document.getElementById("login-password").value; or document.getElementById("pcPassword").value;, depending on your firmware version.
- Copy the returned value to your Home Assistant configuration as password.
Hardware: Raspberry Pi 3 B+
Python: 3.6.6
Hassio: 0.79.2
Archer C9 v5 : 1.2.2 Build 20180423 rel.85787(4555)
(Hassio connected through RJ45 to the router)
This code has been written by me and tested on my own router. I can not assure you it will work. I can not be blamed for any problem with this code. I guess you should not have any major issues with it.