Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid password but it's not #44

Open
agreen opened this issue Aug 2, 2023 · 2 comments
Open

Invalid password but it's not #44

agreen opened this issue Aug 2, 2023 · 2 comments

Comments

@agreen
Copy link

agreen commented Aug 2, 2023

Version of the custom_component

0.0.1

Describe the bug

I keep getting an "invalid password" error, but it's the same username/password I use for both the mobile app and the website. I'm in the main territory.

Debug log

2023-08-02 16:52:19.223 DEBUG (MainThread) [custom_components.fpl] Getting territory
2023-08-02 16:52:19.511 INFO (MainThread) [custom_components.fpl] Logging in

No errors logged. Just "invalid password" displayed when attempting to set up the integration.

@agreen
Copy link
Author

agreen commented Aug 2, 2023

I did add a _Logger.debug(response) right after the aiohttp.BasicAuth in the login function of FplMainRegionApiClient.py, and I got the following:

2023-08-02 17:04:14.209 INFO (MainThread) [custom_components.fpl] <ClientResponse(https://www.fpl.com/api/resources/login) [401 Unauthorized]>

I'm able to view my bill/usage information just fine with the same username/password. Happy to help in any way I can figure out what's going on here.

@zoopster
Copy link

zoopster commented Sep 8, 2023

have you tried to login through a browser to fpl.com and then hijack the session with the api/resources/account url? FPL has been changing their site and my most recent login led me to a 404 page interestingly enough. When I run into problems or question the data in HA I do this and dig into the api a bit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants