TP-LINK C9 Archer password

Hi, I’ve just started trying out Home Assistant and wanted to implement Detection Presence but I’m having trouble getting the encrypted password.

When I type in document.getElementById(“login-password”).value;
I get Uncaught TypeError: Cannot read property ‘value’ of null at :1:42

I just upgraded my router to the latest version
Firmware Version: 3.17.0 Build 20161008 Rel.64225n
Hardware Version: ArcherC9 v1

Can someone tell me if the instructions have changed? Or if it just isn’t supported anymore?
thanks

Try using this command, it looks like the elementID of the password field changed:
document.getElementById("pcPassword").value;

However, on my C9 it just returns the unhashed password, so I don’t think this step is even necessary.

But it seems like the component stopped working in HA 0.50 (I have an issue for this open at https://github.com/home-assistant/home-assistant/issues/7927, so hopefully it gets fixed.

Anyone else having issues on

Version:
1.2.4 Build 20190403 rel.63869

I did reset my router (same password, same username) but I did upgrade the firmware during the process, now these console commands won’t work. I tried checking the HTML element ID it is called login-password (not pcpassword), it does run but retrieves an empty string. This happens across IE, Firefox and Chrome.

I have tried resetting the browsers, typing the password before opening the console, changing the HTML properties of that element, etc but no luck… I’d really appreciate it if anyone could help me with it… Otherwise I think I’m due a router upgrade, possibly Ubiquiti USG for the device presence.

Solved… this utility helped me get the new hashed password:
https://www.nirsoft.net/utils/router_password_recovery.html#DownloadLinks