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

no terrytory issues when setting up integration #40

Open
colinfoxdc opened this issue Apr 15, 2023 · 8 comments
Open

no terrytory issues when setting up integration #40

colinfoxdc opened this issue Apr 15, 2023 · 8 comments

Comments

@colinfoxdc
Copy link

I just downloaded the custom component from this repo and when I try to log in it gives me an error and returns the following in the logs. I saw a post from the end of last year on this but I didn't see a fix or what might be causing it. Any help here would be appreciated. I am not using the NW territory.

`This error originated from a custom integration.

Logger: custom_components.fpl
Source: custom_components/fpl/fplapi.py:125
Integration: FPL (documentation, issues)
First occurred: 10:08:01 AM (3 occurrences)
Last logged: 10:28:56 AM

Error : <class 'custom_components.fpl.fplapi.NoTerrytoryAvailableException'>`

@zoopster
Copy link

There isn't a fix or workaround because it cannot be duplicated. I'm using it daily in the "FPL" region (not the "FPL Northwest FL" region).
fpl_ss

Try accessing the api from your browser then....login, then replace the URL with 'https://www.fpl.com/api/resources/account'. Post the error, if any (don't post any PII).

@colinfoxdc
Copy link
Author

colinfoxdc commented Apr 16, 2023

I'm not showing any errors when accessing the API in the browser. It does fill with my account information, do I need any info for the flpapi.yml or the config file?

@zoopster
Copy link

Not that I'm aware of...I didn't have to.

@hamboneaf
Copy link

What is the api address so that I can try logging in there? I am having this same issue and would like to troubleshoot.

@zoopster
Copy link

easiest way in your browser is to login then change the url to https://www.fpl.com/api/resources/account

@fliswa
Copy link

fliswa commented May 15, 2023

I was able to get this integration working using the following steps:

1 - change line 26 of fplapi.py to URL_TERRITORY = "https://www.fpl.com/api/resources/account"
2 - change line 42 of fplapi.py to self._territory = FPL_MAINREGION

Restart HA and it worked perfectly once I signed in with my FPL credentials

@colinfoxdc
Copy link
Author

I was able to get this integration working using the following steps:

1 - change line 26 of fplapi.py to URL_TERRITORY = "https://www.fpl.com/api/resources/account" 2 - change line 42 of fplapi.py to self._territory = FPL_MAINREGION

Restart HA and it worked perfectly once I signed in with my FPL credentials

THIS WORKED! thank you!!!

@hamboneaf
Copy link

What if my territory is Northwest FL? What should I do to replace self._territory = FPL_MAINREGION Should I leave it the same? Also, when I paste https://www.fpl.com/api/resources/account into my browser after logging in to FPL.com, all I get is "{}" on the screen.

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

4 participants