twrecked / hass-aarlo

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

Having trouble setting up with TFA #549

Open kierankavanagh opened 2 years ago

kierankavanagh commented 2 years ago

What ever method of 2fA I use whether its email or push the authentication fails

pinkfloydFR commented 2 years ago

You need to create an application password for aarlo : https://support.google.com/accounts/answer/185833

then use this password in place of you google account password

keystonenature commented 2 years ago

I have struggled with this over the last few days and this is what I've found. I'm still new, so I'm still learning. I setup Arlo to use a gmail account for my arlo account for HomeAssistant. So my config is: aarlo: username: {this is my Arlo gmail account for HA} password: {this is the password for the Arlo gmail account for HA} tfa_source: imap tfa_type: email tfa_host: 'imap.gmail.com:993' tfa_username: {this is my Arlo gmail account for HA} tfa_password: {this is the app password for that gmail account}

The instructions talk about setting up an app password for a gmail account (https://support.google.com/mail/answer/185833?hl=en). But it doesn't say to use it for the 2FA pw, not for the regular pw. Setting up the app pw as only the 2fa pw worked for me. Note tho - I am still consistently experiencing issue #554 - Cloudflair issue. The logs show that auth fails 3 times then works the 4th. Hopefully, we'll figure out why.

Again, I'm a newby, but hopefully that helps.

cloudbr34k84 commented 2 years ago

@keystonenature i have been trying everything possible to get my cameras workings.

Just want to confirm the passwords username: {this is my Arlo gmail account for HA} password: this password is for the arlo user created to access tfa_source: imap tfa_type: email tfa_host: 'imap.gmail.com:993' tfa_username: {this is my Arlo gmail account for HA} tfa_password: this passsword thats generated when you create an app password??

pinkfloydFR commented 2 years ago

@cloudbr34k84

You need to create an application password for aarlo : https://support.google.com/accounts/answer/185833

then use this password in place of you google account password for tfa_password

my config, for information :

username: !secret arlo_username password: !secret arlo_password tfa_host: 'imap.gmail.com' tfa_username: !secret arlo_tfa_username tfa_password: !secret arlo_tfa_password refresh_devices_every: 1 stream_timeout: 120 reconnect_every: 90 stream_snapshot_stop: 0 save_media_to: "/config/www/arlo/${Y}/${m}/${d}/${T}"

cloudbr34k84 commented 2 years ago

@pinkfloydFR not long after i posted this i got it all working using this. All the guides need to be updated to explain this alot better

pinkfloydFR commented 2 years ago

Agreed :D

github-actions[bot] commented 3 days ago

This issue is stale because it has been open for 365 days with no activity. This issue will be automatically closed within 28 days if there is no further activity.