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

ConEd first authentication can fail, succeeds on reload #52

Open
rct opened this issue Oct 27, 2023 · 1 comment
Open

ConEd first authentication can fail, succeeds on reload #52

rct opened this issue Oct 27, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@rct
Copy link

rct commented Oct 27, 2023

For some users, the initial ConEd authentication through Home Assistant can fail. However, valid credentials have been entered and the authentication succeeds when the integration is reloaded or Home Assistant is restarted.

The error is Config entry 'Consolidated Edison (ConEd) (user@host)' for opower integration could not authenticate: 2FA code was invalid. Is the secret wrong?

@Sebmaster didn't run into the problem with his own account during development, but I think his theory was (from my logs in discussion #30) that a second authentication attempt was occurring which reused the TOTP code before it rolled over, possibly due to multiple accounts under the same user.

The problem does not occur with demo.py. The logging that seems to be available with debug doesn't yield much.

I've seen other reports of this problem on the hass forum IIRC.

@tronikos tronikos added the bug Something isn't working label Oct 29, 2023
@holocronology
Copy link

I had the same issue when finally setting this up yesterday. Resolved itself after a restart.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants