hass-aarlo icon indicating copy to clipboard operation
hass-aarlo copied to clipboard

aarlo won't initate or setup

Open msymms opened this issue 3 years ago • 10 comments

Hi, Just probably need a little help setting this up. Here is my log: `This error originated from a custom integration.

Logger: homeassistant.setup Source: custom_components/aarlo/init.py:254 Integration: aarlo (documentation, issues) First occurred: 7:59:42 AM (1 occurrences) Last logged: 7:59:42 AM

Error during setup of component aarlo Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/setup.py", line 229, in _async_setup_component result = await task File "/config/custom_components/aarlo/init.py", line 254, in async_setup conf = config[COMPONENT_DOMAIN] KeyError: 'aarlo' Here is my config:username: !secret arlo_username password: !secret arlo_password refresh_devices_every: 2

camera:

  • platform: aarlo

  • platform: aarlo monitored_conditions:

    • total_cameras `

msymms avatar Jan 24 '22 14:01 msymms

Can you reformat the configuration I can't really see anything. You can add three back ticks around the yaml pieces.

But I don't think you added the base aarlo: configuration.

aarlo:
  username:....

twrecked avatar Jan 24 '22 14:01 twrecked

Steve, yes sorry.

Here is my configuration. In an /config/integrations/aarlo.yaml file I have: username: !secret arlo_username password: !secret arlo_password refresh_devices_every: 2

camera:

  • platform: aarlo

In an /config/include/sensors.yaml file I have:

  • platform: aarlo monitored_conditions:
    • total_cameras

I just wanted to start with minimal sensors to get things working. I currently only have a doorbell and one camera. But I have set up the user and granted access.

On Mon, Jan 24, 2022 at 8:51 AM Steve Herrell @.***> wrote:

Can you reformat the configuration I can't really see anything. You can add three back ticks around the yaml pieces.

But I don't think you added the base aarlo: configuration.

aarlo: username:....

— Reply to this email directly, view it on GitHub https://github.com/twrecked/hass-aarlo/issues/561#issuecomment-1020181039, or unsubscribe https://github.com/notifications/unsubscribe-auth/AETKSMUQHAGK6PBTKQK5AD3UXVRPPANCNFSM5MVOZWMQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

-- Mark Symms, Esq.

msymms avatar Jan 24 '22 15:01 msymms

I don't layout my configuration that way so I don't know how it works. Can try putting aarlo in configuration.yaml, ie:

aarlo:
  username: !secret arlo_username
  password: !secret arlo_password
  refresh_devices_every: 2

twrecked avatar Jan 24 '22 19:01 twrecked

Steve, well yes that was part of my problem. Now I get this: This error originated from a custom integration.

Logger: pyaarlo Source: custom_components/aarlo/pyaarlo/init.py:668 Integration: aarlo (documentation, issues) First occurred: 1:26:18 PM (8 occurrences) Last logged: 1:30:11 PM

authentication failed imap connection failed[Errno -2] Name does not resolve 2fa startup failed

my credentials are correct.

On Mon, Jan 24, 2022 at 1:19 PM Steve Herrell @.***> wrote:

I don't layout my configuration that way so I don't know how it works. Can try putting aarlo in configuration.yaml, ie:

aarlo: username: !secret arlo_username password: !secret arlo_password refresh_devices_every: 2

— Reply to this email directly, view it on GitHub https://github.com/twrecked/hass-aarlo/issues/561#issuecomment-1020455476, or unsubscribe https://github.com/notifications/unsubscribe-auth/AETKSMRIM5F4FFGWCXKUMILUXWQ2VANCNFSM5MVOZWMQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

-- Mark Symms, Esq.

msymms avatar Jan 24 '22 19:01 msymms

If you have 2fa enabled at Arlo you'll need to provide an IMAP login to retrieve the email. See here.

aarlo:
  ... you old config
  tfa_source: imap
  tfa_type: email
  tfa_host: imap.host.com
  tfa_username: your-user-name
  tfa_password: your-imap-password

twrecked avatar Jan 24 '22 19:01 twrecked

That's what I figured. And Arlo is making 2FA mandatory. Why can anything be simple? I will have to try this later. I need to work at the moment. I do have this set up through a Gmail account. I will try this and get back to you. Thanks for your help.

On Mon, Jan 24, 2022 at 1:51 PM Steve Herrell @.***> wrote:

If you have 2fa enabled at Arlo you'll need to provide an IMAP login to retrieve the email. See here https://github.com/twrecked/hass-aarlo#imap .

aarlo: ... you old config tfa_source: imap tfa_type: email tfa_host: imap.host.com tfa_username: your-user-name tfa_password: your-imap-password

— Reply to this email directly, view it on GitHub https://github.com/twrecked/hass-aarlo/issues/561#issuecomment-1020483259, or unsubscribe https://github.com/notifications/unsubscribe-auth/AETKSMS73YWBK7B5DMEIQ4DUXWUVVANCNFSM5MVOZWMQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

-- Mark Symms, Esq.

msymms avatar Jan 24 '22 20:01 msymms

Agreed, it's a pain. If you're using Gmail you will need to set up and application password. It only takes 5 minutes to do - https://support.google.com/mail/answer/185833?hl=en

twrecked avatar Jan 24 '22 20:01 twrecked

Steve, I added the Gmail app password and it all works. Now I just have to set it up. Thanks again for your help. -mark

On Mon, Jan 24, 2022 at 2:14 PM Steve Herrell @.***> wrote:

Agreed, it's a pain. If you're using Gmail you will need to set up and application password. It only takes 5 minutes to do - https://support.google.com/mail/answer/185833?hl=en

— Reply to this email directly, view it on GitHub https://github.com/twrecked/hass-aarlo/issues/561#issuecomment-1020504608, or unsubscribe https://github.com/notifications/unsubscribe-auth/AETKSMVTXVDCOZZMA2MTFQ3UXWXMBANCNFSM5MVOZWMQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

-- Mark Symms, Esq.

msymms avatar Jan 25 '22 02:01 msymms