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.
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.