twrecked / hass-aarlo

Asynchronous Arlo Component for Home Assistant
GNU Lesser General Public License v3.0
399 stars 79 forks source link

Aarlo connecting with previous login credentials? #673

Closed chicknlil closed 1 year ago

chicknlil commented 1 year ago

I am using the HACS version of this integration, and Home Assistant 2022.12.1.

When I originally installed this integration, I set it up with my main Arlo account, before I read/saw that wasn't smart, since Arlo logs you out if you're logged into the account in more than one place. I created a secondary account, but it took about a week before Arlo support corrected an error on their end that prevented the camera from properly sharing. It's only been in the last 2 days that I've re-enabled your integration, with the new login credentials in my secrets.yaml, and everything was working great until about 30 minutes ago.

One of my Aarlo automations alerted me that the camera detected motion. Cool - but my phone/watch didn't do the same? I check on the phone and I'm logged out of my primary account. Try to login, and it immediately logs me out again. Try this from both the app and the website, no joy. In frustration, I try using the account that HA has access to - and I'm able to login and stay logged in, which leads me to believe that for some reason, Aarlo is connecting with the previous credentials.

The only credentials in secrets.yaml are the new ones. I use the 2FA that requires my phone to authenticate on first login.

Are the login credentials saved/accessed from elsewhere? I'll have no choice but to disable the integration if it's going to otherwise lock me out of the phone app despite intentionally giving it access to a secondary account.

twrecked commented 1 year ago

I'm out and about so I'll reply more later but look for authentication caching on the README.

Or try deleting .aarlo/session.pickle from the same directory as your configuration

It should detect a login change and handle it correctly but there might be a bug there.

chicknlil commented 1 year ago

Deleting the session.pickle did the trick. Thank you! Marking this closed.

twrecked commented 1 year ago

Glad it's working, it really should have picked up the email change. I'll take a look when I have the time.

chicknlil commented 1 year ago

Do you have a KoFi or something similar that I can buy you a cuppa?

On Sat, Dec 10, 2022 at 7:49 PM Steve Herrell @.***> wrote:

Glad it's working, it really should have picked up the email change. I'll take a look when I have the time.

— Reply to this email directly, view it on GitHub https://github.com/twrecked/hass-aarlo/issues/673#issuecomment-1345420984, or unsubscribe https://github.com/notifications/unsubscribe-auth/AX34MG3LRR6H2ET6QRVC6QLWMUQHZANCNFSM6AAAAAAS2RQRTQ . You are receiving this because you modified the open/close state.Message ID: @.***>