Arlo: replacement pyarlo module

Latest of everything. Give me a sec. i have uninstalled it and comented everything out. reinstalling it right now.

Adding it back screws it up again.

Have this as config:

aarlo:
  username: ***************
  password: !secret arlo_password
  
alarm_control_panel:
  - platform: aarlo
sensor:
  - platform: aarlo
    monitored_conditions:
    - last_capture
    - total_cameras
    - battery_level
    - captured_today
    - signal_strength
binary_sensor:
  - platform: aarlo
    monitored_conditions:
    - motion
    - sound
    - ding    
camera:
  - platform: aarlo
    ffmpeg_arguments: '-pred 1 -q:v 2'

been runing this for a long time so haven touched it.

So you know - the latest update (v0.6.10) is throwing up these errors…

2020-02-11 07:34:42 ERROR (MainThread) [homeassistant.config] Platform error: alarm_control_panel
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.7/site-packages/homeassistant/config.py”, line 739, in async_process_component_config
platform = p_integration.get_platform(domain)
File “/srv/homeassistant/lib/python3.7/site-packages/homeassistant/loader.py”, line 275, in get_platform
f"{self.pkg_path}.{platform_name}"
File “/usr/lib/python3.7/importlib/init.py”, line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 1006, in _gcd_import
File “”, line 983, in _find_and_load
File “”, line 967, in _find_and_load_unlocked
File “”, line 677, in _load_unlocked
File “”, line 728, in exec_module
File “”, line 219, in _call_with_frames_removed
File “/home/homeassistant/.homeassistant/custom_components/aarlo/alarm_control_panel.py”, line 34, in
from . import CONF_ATTRIBUTION, DATA_ARLO, DEFAULT_BRAND
ImportError: cannot import name ‘CONF_ATTRIBUTION’ from ‘custom_components.aarlo’ (/home/homeassistant/.homeassistant/custom_components/aarlo/init.py)
2020-02-11 07:34:42 ERROR (MainThread) [homeassistant.setup] Setup failed for aarlo: No setup function defined.
2020-02-11 07:34:43 ERROR (MainThread) [homeassistant.config] Platform error: switch
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.7/site-packages/homeassistant/config.py”, line 739, in async_process_component_config
platform = p_integration.get_platform(domain)
File “/srv/homeassistant/lib/python3.7/site-packages/homeassistant/loader.py”, line 275, in get_platform
f"{self.pkg_path}.{platform_name}"
File “/usr/lib/python3.7/importlib/init.py”, line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 1006, in _gcd_import
File “”, line 983, in _find_and_load
File “”, line 967, in _find_and_load_unlocked
File “”, line 677, in _load_unlocked
File “”, line 728, in exec_module
File “”, line 219, in _call_with_frames_removed
File “/home/homeassistant/.homeassistant/custom_components/aarlo/switch.py”, line 18, in
from . import DATA_ARLO
ImportError: cannot import name ‘DATA_ARLO’ from ‘custom_components.aarlo’ (/home/homeassistant/.homeassistant/custom_components/aarlo/init.py)
2020-02-11 07:34:43 ERROR (MainThread) [homeassistant.config] Platform error: binary_sensor
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.7/site-packages/homeassistant/config.py”, line 739, in async_process_component_config
platform = p_integration.get_platform(domain)
File “/srv/homeassistant/lib/python3.7/site-packages/homeassistant/loader.py”, line 275, in get_platform
f"{self.pkg_path}.{platform_name}"
File “/usr/lib/python3.7/importlib/init.py”, line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 1006, in _gcd_import
File “”, line 983, in _find_and_load
File “”, line 967, in _find_and_load_unlocked
File “”, line 677, in _load_unlocked
File “”, line 728, in exec_module
File “”, line 219, in _call_with_frames_removed
File “/home/homeassistant/.homeassistant/custom_components/aarlo/binary_sensor.py”, line 17, in
from . import CONF_ATTRIBUTION, DATA_ARLO, DEFAULT_BRAND
ImportError: cannot import name ‘CONF_ATTRIBUTION’ from ‘custom_components.aarlo’ (/home/homeassistant/.homeassistant/custom_components/aarlo/init.py)
2020-02-11 07:34:44 ERROR (MainThread) [homeassistant.config] Platform error: sensor
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.7/site-packages/homeassistant/config.py”, line 739, in async_process_component_config
platform = p_integration.get_platform(domain)
File “/srv/homeassistant/lib/python3.7/site-packages/homeassistant/loader.py”, line 275, in get_platform
f"{self.pkg_path}.{platform_name}"
File “/usr/lib/python3.7/importlib/init.py”, line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 1006, in _gcd_import
File “”, line 983, in _find_and_load
File “”, line 967, in _find_and_load_unlocked
File “”, line 677, in _load_unlocked
File “”, line 728, in exec_module
File “”, line 219, in _call_with_frames_removed
File “/home/homeassistant/.homeassistant/custom_components/aarlo/sensor.py”, line 21, in
from . import CONF_ATTRIBUTION, DATA_ARLO, DEFAULT_BRAND
ImportError: cannot import name ‘CONF_ATTRIBUTION’ from ‘custom_components.aarlo’ (/home/homeassistant/.homeassistant/custom_components/aarlo/init.py)

You’re the second person seeing this. Of course, it’s working great for me…

Can I ask, what version of Home Assistant and how are you running it - docker, Pi, virtual env?

:slight_smile:
Currently the latest version of HA - 0.105.3, Ubuntu/VE

Thanks, I’m running a docker but I have a virtualenv setup somewhere. I’ll give it a go.

Weird, trying to rollback to a previous version and still getting the same errors…

Looking like a HACS error. Check out this bug report https://github.com/twrecked/hass-aarlo/issues/165

If you roll back a HACS version it might start working again.

And I was using an older HACS version.

1 Like

Finally got it working thanks to your suggestion - however, it has to be version <= 20.9 of HACS for it to work again.

The latest version of Aarlo (0.6.10) now works with the latest version of HACS (0.21.4) but I had to do the following to get both updated and working:

  • Downgrade Aarlo to 0.6.9
  • Update HACS to 0.21.4
  • Update Aarlo to 0.6.10

Hope someone can assist.
I just installed aarlo for the first time today and getting a bunch of re-occuring error messages in my log:

2020-02-12 12:34:11 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/helpers/entity_platform.py”, line 424, in _async_add_entity
await entity.async_update_ha_state()
File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 284, in async_update_ha_state
self._async_write_ha_state()
File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 328, in _async_write_ha_state
attr.update(self.device_state_attributes or {})
File “/config/custom_components/aarlo/sensor.py”, line 139, in device_state_attributes
attrs[‘camera_name’] = self._device.name
AttributeError: ‘PyArlo’ object has no attribute ‘name’

My setup is as follows:
Ubuntu 18.04 server
Home Assistant (Hass.io)
Arlo Camera Support v0.6.0 installed via HACS 0.20.9 (due to some issues with HACS)
I currently have 2 Arlo Pro cameras with the Netgear hub.

My config is as follows:
configuration.yaml

aarlo:
  username: !secret aarlocam_userid
  password: !secret aarlocam_pass
  scan_interval: 300

the rest of my setup is in the form of a package.
aarlo.yaml

##              BINARY SENSOR                 ##
binary_sensor:
  - platform: aarlo
    monitored_conditions:
    - motion
    - sound


##                  CAMERAS                   ##
camera:
  - platform: aarlo
    ffmpeg_arguments: '-pred 1 -q:v 2'  

##                MEDIA PLAYER                ##
#media_player:
#  - platform: aarlo
    

##                  SENSORS                   ##
sensor:  
  - platform: aarlo
    monitored_conditions:
    - last_capture
    - total_cameras
    - battery_level
    - captured_today
    - signal_strength

Lastly, I don’t subscribe to any of their monitoring packages, if that makes a difference.
Would anyone have a clue? Also, is there other freatures that I can add to this config once we get it working?

There’s nothing unusual about your setup and your config looks good. A couple of things to check:

  • did you give admin access to your HA Arlo account? It can affect some of the sensors.
  • did you share the cameras with the Arlo account?
  • try removing the sensor component and see if the error changes to a different place?

OK, think I found what was throwing the error … for my configuration anyway.
But to answer your questions … Yes, I had admin rights with the account that I was authenticating with, and shared the cameras all along.

I did remove as you suggested the sensor component and the error went away.
So I decided to re-add them one by one and found out that the monitored condition “- total_cameras” would reintroduce the error. My config now looks like this and everything is working fine.

sensor:  
  - platform: aarlo
    monitored_conditions:
    - last_capture
#    - total_cameras
    - battery_level
    - captured_today
    - signal_strength

Thanks for your help in troubleshooting this. In the future, I’ll do my configuration one at a time.

Can I double check the version; v0.6.0?

I finally got to downloading the app and can confirm, library playback doesn’t work. Somebody else raised a bug here https://github.com/twrecked/lovelace-hass-aarlo/issues/20

This may need the app to be tweaked.

my version installed currently is v0.6.9
waiting for HACS to be fixed so that I can upgrade to the latest one

@sherrell Your work on this is very much appreciated. You’ve brought new life to Arlo in Hass months ago when the official component was all but dead. Much cheers to you mate

1 Like

Curious if you ever got this working Jurgmaister? Trying to do the same but with Android Actionable notifications.

I did not. I gave up actually. I now have some HIKVision camera planning to run them on blue iris, but have not installed yet.

Sorry i can not help you :cry:

Worth a try, thanks and good luck with the HIKVision.