twrecked / hass-aarlo

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

Mode change blocked "Device doesn't belong to the User" #377

Open rafuz opened 3 years ago

rafuz commented 3 years ago

I am getting this error nearly every day:

Logger: pyaarlo
Source: custom_components/aarlo/pyaarlo/__init__.py:568
First occurred: 8:19:26 (4 occurrences)
Last logged: 17:14:23

attempt 1: error in response when setting mode= {'data': {'error': 'AUTO-5010', 'message': "Device doesn't belong to the User", 'reason': "4RD17375A17C8 doesn't belong to the User / Is not " 'provisioned'}, 'success': False}
request-error=ConnectionError

My config:

aarlo:
  username: !secret arlo_username
  password: !secret arlo_password
  recent_time: 10
  mode_api: v2
  user_agent: linux
  refresh_devices_every: 2
  reconnect_every: 90
  http_connections: 5
  http_max_size: 10
  host: https://my.arlo.com
  tfa_host: !secret arlo_tfa_host
  tfa_username: !secret arlo_tfa_username
  tfa_password: !secret arlo_tfa_password

When it happens mode change is blocked and I have to restart home assistant to get back in control. It was working until few days ago.

Jopand commented 3 years ago

I also think I have this issue. I haven't set up the logging yet, but I also experience (on a daily basis), that I cannot change mode before restarting HA. Very annoying and makes aarlo useless as an alarmsystem

twrecked commented 3 years ago

Can you post your aarlo config - minus the sensitive bits obviously!

Are there any logs near the time everything stops working? Look for traceBack in homeassistant.log.

twrecked commented 3 years ago

Can you try adding the following to your aarlo config:

  stream_timeout: 120

And if that doesn't work can you try:

  stream_timeout: 120
  request_timeout: 15
rafuz commented 3 years ago

I have added the lines in the config. I will report back if something changes.