Arlo Errors

Having issues with Arlo cameras. Before moving to .56.1 (I was on .54), I was able to get stills, but no video (last mpeg) from my Arlos. Now, after updating to .56.1, I can’t get anything.

This is the error I get in my log:

2017-10-23 11:40:46 ERROR (MainThread) [homeassistant.components.camera] Error on device update!
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 216, in async_add_entity
    yield from entity.async_device_update(warning=False)
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/helpers/entity.py", line 309, in async_device_update
    yield from self.hass.async_add_job(self.update)
  File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
    value = future.result()
  File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
    raise self._exception
  File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/camera/arlo.py", line 163, in update
    self.attrs[ATTR_BATTERY_LEVEL] = self._camera.get_battery_level
  File "/srv/homeassistant/lib/python3.4/site-packages/pyarlo/camera.py", line 135, in get_battery_level
    return base.get_camera_battery_level[self.device_id]
TypeError: 'NoneType' object is not subscriptable
2017-10-23 11:40:47 ERROR (MainThread) [homeassistant.components.camera] Error on device update!
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 216, in async_add_entity
    yield from entity.async_device_update(warning=False)
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/helpers/entity.py", line 309, in async_device_update
    yield from self.hass.async_add_job(self.update)
  File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
    value = future.result()
  File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
    raise self._exception
  File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/camera/arlo.py", line 163, in update
    self.attrs[ATTR_BATTERY_LEVEL] = self._camera.get_battery_level
  File "/srv/homeassistant/lib/python3.4/site-packages/pyarlo/camera.py", line 135, in get_battery_level
    return base.get_camera_battery_level[self.device_id]
TypeError: 'NoneType' object is not subscriptable
2017-10-23 11:40:47 ERROR (MainThread) [homeassistant.components.camera] Error on device update!
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 216, in async_add_entity
    yield from entity.async_device_update(warning=False)
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/helpers/entity.py", line 309, in async_device_update
    yield from self.hass.async_add_job(self.update)
  File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
    value = future.result()
  File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
    raise self._exception
  File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/camera/arlo.py", line 163, in update
    self.attrs[ATTR_BATTERY_LEVEL] = self._camera.get_battery_level
  File "/srv/homeassistant/lib/python3.4/site-packages/pyarlo/camera.py", line 135, in get_battery_level
    return base.get_camera_battery_level[self.device_id]
TypeError: 'NoneType' object is not subscriptable
2017-10-23 11:40:47 ERROR (MainThread) [homeassistant.components.camera] Error on device update!
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 216, in async_add_entity
    yield from entity.async_device_update(warning=False)
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/helpers/entity.py", line 309, in async_device_update
    yield from self.hass.async_add_job(self.update)
  File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
    value = future.result()
  File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
    raise self._exception
  File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/camera/arlo.py", line 163, in update
    self.attrs[ATTR_BATTERY_LEVEL] = self._camera.get_battery_level
  File "/srv/homeassistant/lib/python3.4/site-packages/pyarlo/camera.py", line 135, in get_battery_level
    return base.get_camera_battery_level[self.device_id]
TypeError: 'NoneType' object is not subscriptable
2017-10-23 11:40:49 ERROR (MainThread) [homeassistant.components.camera] Error on device update!
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 216, in async_add_entity
    yield from entity.async_device_update(warning=False)
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/helpers/entity.py", line 309, in async_device_update
    yield from self.hass.async_add_job(self.update)
  File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
    value = future.result()
  File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
    raise self._exception
  File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/camera/arlo.py", line 164, in update
    self.attrs[ATTR_BRIGHTNESS] = self._camera.get_battery_level
  File "/srv/homeassistant/lib/python3.4/site-packages/pyarlo/camera.py", line 135, in get_battery_level
    return base.get_camera_battery_level[self.device_id]
TypeError: 'NoneType' object is not subscriptable

Config is:
camera:

  • platform: arlo
    ffmpeg_arguments: ‘-pred 1 -q:v 2’ – this is uncommented out when I am trying to get the video

arlo:
username: !secret arlo_user
password: !secret arlo_password

#mpeg component
ffmpeg:
ffmpeg_bin: /usr/bin/ffmpeg

ffmeg is in my /usr/bin/ffmpeg and it’s in the path for both the pi user and the homeassistant virtual env.

I’ve tried the main arlo user that I login with as well as the separate HA user I created.

Any ideas?

BTW, my sensors still work - just the images don’t.

Yeah, I mentioned this in a Github issue. You can check it out here:

Damn… Thanks… I disabled the -battery under the sensor, but getting that error when the actual camera tries to initialize… All of the cameras show as sensors, but now only the first one shows as a camera. the rest aren’t even coming up as devices.

Guess I’ll wait till .56.2 or .57 and see what’s up.

thx!

I’m in the same boat on 0.56.2

Yep. Same. .57 this weekend. Also due for a rebuild for the python upgrade. Something’s gotta fix it.

This PR should fix it. https://github.com/home-assistant/home-assistant/pull/9892

Is anyone aware of the cutoff time for inclusion in each release? I know releases come out every other Saturday (sometimes Sunday), but what is the deadline for PRs to be included?

2 Likes

Thanks!

It did fix it, but something else seems broken now. When I try to enable motion detection on a specific camera, it now arms my entire system. Any idea what’s up with that?

I believe the motion enable/disable functionality has always Armed/Disarmed the entire system. I added functions to the PyArlo library a while back to enable/disable Privacy on individual cameras (turn them on/off), but this has not been integrated into the HASS camera component yet.