Check that:
-
TP-Link Deco integration is the latest published version
-
TP-Link Deco router firmware is up to date
-
Enable debug logging in
configuration.yaml
by adding these lines:logger: logs: custom_components.tplink_deco: debug
-
Navigate to Settings -> System -> Logs
-
Type
tplink_deco
intoSearch logs
text box -
Click
LOAS FULL LOGS
button -
Copy logs into bug. Redact any sensitive information you see.
If the debug logs show that a call is failing because of one of the following reasons:
- Error response from router
- Timed out
Follow the below steps to check that the router is behaving as expected.
-
Disable the TPLink Deco integration if it is enabled (If it is enabled it will keep logging you out)
-
Enable the browser developer console and go to the network tab
-
Login to the admin UI page
-
Go to the page with the failing call (Example: Go to page that lists clients if the list clients call is failing)
- For the List Clients call, make sure to select a specific deco to list clients for
-
Find the call that is failing.
-
Copy the request
- If the request does NOT have
data=
param, then just copy the whole payload to the bug - If the request has a payload with
data=
param, then copy the part right afterdata=
. Then in the developer console type the following code:
data = "<insert text after data= here>"; jQuery.encrypt.encryptManager.encryptor.AesDecrypt(decodeURIComponent(data));
Then copy the output to the bug.
- If the request does NOT have
-
If the call was successful but the parsing on the integration failed. Copy the response.
- If the response does NOT have a
"data":
key, then copy the whole response. - If the response has a
"data":
key, then copy the text after that and decode it in the same way as step 6.
- If the response does NOT have a