[Custom Component] TP-Link Router Integration

Tnaks for your answer. I dont understand, what exactly should I do with clent.py

Hi all,

Letā€™s say at first that Iā€™m not a developer, Iā€™m a user / system administrator.

I bought a TP-Link MR600 v3,
added this integration to my home assistant and it works like a charm.

is there any way to get the LTE details on the dashboard?

ISP:
Network type: <3G / 4G / 4G LTE>
Band:
Data: xx.xxMB (Total Used)
Upload speed: x.x KB/s
Download speed: x.x KB/s
SIM Card Status: < status >
Signal Strength: xx%
RSRP: xx dBm
RSRQ: xx dB
SNR: xx dB

I got this info from the router status page, so logically the information should be available.

Thanks in advance

I have the Archer GX90 v1.0 and everything appears to be working.

Parental Controls would be amazing. Enabling/disabling my kids internet based on the Grocy Chore list has been something that Iā€™ve been trying to implement. What do you need to possibly get this added?

EDIT: I submitted a new issue with the HAR file. If you need anything else, Iā€™m happy to help.

1 Like

Hi there, this looks really good!

Do you know if it would be possible to add a switch to trigger the Network Optimization feature?

Thanks

Hello,
Is there way to access my Archer C7 router if not the default login name is set (admin), but a different one?
I could not find this in the description.

Thank you in advance.

@bigyo Could you make a screenshot with a router login page?

v1.15.2 Released

Changelog

  • Added support Archer GX90 v1.0
  • Fixed wifi switches for Archer C1200

Can i wait for archer c64 support, or it is bad idea, and it will not be supported?

As I dont have this router - It would be great if you create PR with a new class for your router witch extends AbstractRouter

Where is easy manual, i see some code, in your link, how i can do it?
I must run some python commands, and send you results?


TP-Link AC1750 Archer C7

You router has different API, so it would be great if you could add support for your router by creating PR with a new class for your router witch extends AbstractRouter

Archer BE800 v1.0 and Archer VR2100v v1 supports are confirmed

EDIT: WARNING! The following is INCORRECT. My apologies! Please see the following replies for more.

I tested this with my Archer C5400X V1, Firmware version 1.1.7 Build 20240510 rel.17306(5553), and unfortunately get no useful functionality from it. All I see is the integrationā€™s own update:

@Assisted
The screenshot shows integration package info from HACS only. It is not the page with your router info. To find the page you have to

  1. Go to the Settings ā†’ Devices & services.
  2. Find the TP-Link Router and there should be TP-Link Router device

Have you set up the integration following this doc GitHub - AlexandrErohin/home-assistant-tplink-router: Home Assistant component for TP-Link router administration with sensors, button reboot, switches and device tracking.?

My apologies, Alexandr, I missed a step (but, to be fair, it wasnā€™t documented this way in the instructions).
My understanding of your instructions suggest that, after I add the repository to HACS (step 2) and then download the integration (step 6) and reboot (step 7), I can proceed to the next steps.

In my case, however, I had to THEN go to Settings>Devices & Services, click ā€œAdd Integrationā€, then search for and add ā€œTP-Link Routerā€. (Step 8+)

Okay, so Iā€™m at the ā€œConfigurationā€ stage.
In your configuration screen, thereā€™s a spot only for the password, not username/email:

This screen-bite shows mine, which requires both:
Screenshot 2024-09-19 194450
(sorry itā€™s so big - thatā€™s how the dialogue uploaded it!)

The next issue I encounter is after entering the password (only) into your configuration screen. I have tried both http:// and https://, and checking and unchecking ā€œVerify ssl for https connectionā€, and when itā€™s unchecked I do get the ā€œā€¦encrypted passwordā€¦ā€ error, so I follow your instructions here.

What I get, depending on the browser (I have tried several - Firefox, Edge, Chrome), is either get my UNencrypted password in double quotes, or JUST a pair of single quotes, with nothing inside. The latter is pictured below (I munged my username/email):

Iā€™m stuck hereā€¦
Suggestions?

Thanks for any help you can give!

P.S.: What encryption does your integration expect? MD5, Base64, etc.? I could potentially encrypt my password offline with a utility and try that (I know there are online utilities, but Iā€™d never enter such sensitive data there)

You have to use Local Password which is for Log In with Local Password
Not Log In with TP-LINK ID

Is there any relevant logs from Settings->System->Logs?

ā€œLocal Passwordā€ā€¦ Of my router? Of my PC?

The username/password I use to log into my router (in the screen-bite) is the only one I know of. Also, this router will only accept an email address for a ā€˜usernameā€™.

Logging into my PC involves biometrics and 2FA. And anyway, I would never enter that password into an app.

Perhaps you mean the password for my Home Assistant?.. Again, this is a username/password combo, and again, this is too sensitive to enter anywhere but the main app.

Sorry for not understandingā€¦

Small update:
Reviewing my routerā€™s documentation, there are two ways to configure it for the first time, either ā€œVia TP-Link Tether Appā€, which is what I think I did, as this is the one requiring an email address; also, I do have the Tether App installed on my phone (it was years ago, so my memory is foggy on this), or ā€œVia a Web Browserā€ (these terms per their Quick Setup doc), in which it appears that only a password is required. Iā€™m not sure what happens after you continue with the setup from there.

There does not appear to be a way to go back to the password-only setup, at least not without doing a full reset and start over again (and I really donā€™t want to do that). Iā€™m still looking through the docs, and will search the web for related articles.

That said, Iā€™m not sure Iā€™d want a password-only setup; the username is another level of security, and it would be a shame to lose that.

More to comeā€¦ I hope!

P.S.: All docs for the Archer C5400X V1 are here:
https://www.tp-link.com/ca/support/download/archer-c5400x/

You can just log in locally via the web browser, you have to use http://tplinkwifi.net/, that is password only. You can also log in via the tether app, but that is for when you are outside your network. You can switch at any time and you do not have to reset anything for that, all settings remain the same with both login methods.

By the way, you can also log in with this http://tplinkwifi.net/ method via your TP Link ID in the web browser, but then the integration does not work well