AlexandrErohin / home-assistant-tplink-router

Home Assistant component for TP-Link router administration with sensors, button reboot, switches and device tracking.
https://community.home-assistant.io/t/custom-component-tp-link-router-integration
MIT License
137 stars 16 forks source link

Can you please add support for Tplink MR200 router #22

Closed raviteja9494 closed 1 month ago

raviteja9494 commented 10 months ago

Can you please add support for Tplink MR200 (Archer AC 750) router , it is an LTE router. But a basic support is also good enough. https://www.tp-link.com/in/home-networking/3g-4g-router/archer-mr200/

I am getting the below error when trying to login. Unknown error for pwd - Expecting value: line 1 column 1 (char 0); Response - <html><head><title>500 Internal Server Error</title></head><body><center><h1>500 Internal Server Error</h1></center></body></html> I can provide all the details you need.

Thanks in advance

AlexandrErohin commented 10 months ago

As it is supported by HA basic integration, I dont think it is needed to make custom integration.

raviteja9494 commented 10 months ago

As it is supported by HA basic integration, I dont think it is needed to make custom integration.

You mean the LTE integration through which we can send sms notifications? Or am I missing any integration which is already available for my router?

AlexandrErohin commented 10 months ago

You said basic support is also good enough - so I decided there is integration for this. If you want to have an integration for your router like this one - It would be great if you could add support for your router to this client https://github.com/AlexandrErohin/TP-Link-Archer-C6U

raviteja9494 commented 10 months ago

Ok sure, Thanks.. I'll try that and let you know if I ran into some troubles

basettoni89 commented 9 months ago

Hi, I have the same problem (500 Internal Server Error) with my TP-Link TL-MR105.

As I'm currently on LTE connection with a fixed monthly quote I would like to integrate the modem with HA to monitor the monthly data consumption. Is it possibile?

Thank you.

AlexandrErohin commented 9 months ago

@raviteja9494 @basettoni89 Please try new version - As TP-link Archer C1200 v2.0 support with different login process was added - your router may also be supported now

oscarrdg commented 9 months ago

Trying to configure with an TP-Link Archer RM200, I'm getting the error: You need to use web encrypted password instead. Check the documentation!

But when I follow the instructions trying to get the Web Encrypted Password, I'm getting this error on the web console:

> document.getElementById("login-password").value; VM310:1 Uncaught TypeError: Cannot read properties of null (reading 'value') at <anonymous>:1:42

AlexandrErohin commented 9 months ago

@oscarrdg Could you try this steps to get WebEncryptedPassword?

  1. Open the browser and go to the webinterface of you TP-link router and open the developertools(ctrl+shift+i or F12).
  2. In the developertools navigate to the network tab.
  3. Make sure the recoder is enabeld.
  4. Login to your router
  5. There should appear activity in the networking tab.
  6. Scroll up until you find something like "login?form=login" and click it.
  7. Click payload, and copy the string of characters, it should be a long string.
  8. This is the web encrypted password.
raviteja9494 commented 9 months ago

Trying to configure with an TP-Link Archer RM200, I'm getting the error: You need to use web encrypted password instead. Check the documentation!

But when I follow the instructions trying to get the Web Encrypted Password, I'm getting this error on the web console:

> document.getElementById("login-password").value; VM310:1 Uncaught TypeError: Cannot read properties of null (reading 'value') at <anonymos>:1:42

Same for me also. I have tried with document.getElementById("pc-login-password").value. I am getting my plain password. I think for mr200 it is not web encrypted.

AlexandrErohin commented 9 months ago

@raviteja9494 Lets try to add support for your router - https://github.com/AlexandrErohin/TP-Link-Archer-C6U/blob/main/CONTRIBUTING.md

raviteja9494 commented 9 months ago

Tplink MR200 (Archer AC 750) router , it is an LTE router

Thankyou very much :)

created new issue and attached some screen shots ..

AlexandrErohin commented 9 months ago

@raviteja9494 @basettoni89 @oscarrdg Archer MR200 v5.3 support was added, It has different api, so maybe it is similar with yours. Could you try new version of the integration and let me know

raviteja9494 commented 9 months ago

@AlexandrErohin It is working for me, thankyou very much 😊

oscarrdg commented 9 months ago

It's still telling me to use a web encrypted password. But I'm not able to find it with the wiki instructions. 😞

I will try your suggestion on: https://github.com/AlexandrErohin/home-assistant-tplink-router/issues/22#issuecomment-1942218847

AlexandrErohin commented 9 months ago

@oscarrdg what is your hardware version?

oscarrdg commented 9 months ago

Hardware Version:Archer MR200 v1 00000100

oscarrdg commented 9 months ago

It's still telling me to use a web encrypted password. But I'm not able to find it with the wiki instructions. 😞

I will try your suggestion on: #22 (comment)

I have tried that suggestion, but I haven't found anything close to "login?form=login". What I have found is:

Captura de pantalla 2024-02-25 194334

And I see no payload that could be an encrypted password string, tbh. 😞

AlexandrErohin commented 9 months ago

@oscarrdg It looks like your router doesnt have encryption for api. But it has similar api with Archer MR200 v5. You may try to TPLinkMRClient without request encryption like TplinkC1200Router Would be great if you can add support for your router to TP-Link-Archer-C6U like this TplinkC1200Router

AlexandrErohin commented 9 months ago

@oscarrdg is there any request to url like login ?

basettoni89 commented 8 months ago

Hi! @AlexandrErohin, thanks a lot for the supporto. With v1.9.0 I was able to add my TP-Link TL-MR105, and import all the sensors in HA.

AlexandrErohin commented 8 months ago

@basettoni89 What is your router hardware version?