Arlo: replacement pyarlo module

Hi, sorry all new to this but I suppose I need to add some code to get it into custom updater ?
I have the following today:
custom_updater:
card_urls:
- https://raw.githubusercontent.com/kalkih/mini-graph-card/master/tracker.json
- https://raw.githubusercontent.com/kalkih/mini-media-player/master/tracker.json
Thanx in advance

  card_urls:
    - https://raw.githubusercontent.com/twrecked/hass-aarlo/master/custom_cards.json

  component_urls:
    - https://raw.githubusercontent.com/twrecked/hass-aarlo/master/custom_components.json
1 Like

I just updated to the latest master, and the aarlo-glance card no longer reacts when I click on it. I can see an image, but I don’t see the library history when I click the little icon and there is no streaming.

Did something change, @sherrell?

Mine does that to from time to time. The logs gives me nothing. A restart helps some time.

@optilude A few things have changed but nothing that should stop the card from working.

I had to reorder some code to get the device list to work and my current theory is Arlo tweaked the backend.

Try what @Christian_Hollbjar says. One other thing is to remove the pickle file. So:

  • stop home assistant
  • delete <where-you-put-your-config>/.aalro/aarlo.pickle
  • start home-assistant

edit: are either of you two trying the stream component?

@sherrell yes, I’m using stream.

Deleting the pickle did not help.

No errors in homeasisstant.log or browser debug console.

Also just noticed the “captured today” sensors all show 0 and the “last capture” ones all show “unknown”.

I enabled debug logging for a bit. See https://gist.github.com.

What does work is changing the mode (which I do via a node-red automation and the aarlo_set_mode service)

I couldn’t get to those logs, I think the URL was broken.

The oddest thing is I’m missing some captures from early this evening. I then logged into the App and it mentioned a new feature (fire alarm detection), it took about 2 minutes to get my camera details and it forgot my ‘who to call’ list. The App was showing the same thumbnails as Home Assistant.

Now I trip the motion sensors on the camera and captures are working again.

Sorry, paste error!

I just triggered motion on one of them and now it’s working again!

Streaming still isn’t (I don’t even see the option to do it) but I may have messed up the config.

This module used to work perfectly for me but setting the mode for the Arlo-Q camera has stopped working recently, as far as I can tell everything else still works I just can’t set the mode anymore, anyone else with an Arlo-Q having the same problem?

@nrd2001
Did you upgrade recently? Have you tried changing the mode from the web interface recently?

I am currently running the latest version, I noticed the Arlo-Q mode setting stopped working a couple of weeks back but I can’t remember what version it last worked with.

Changing the mode through the web interface, service calls etc don’t work for the Q but work perfectly for the Pro base station.

Base module seems to be fine but then I added them to the UI I found that after a while the home assistant processes died. About too look at logs but want to see if there is a known issue.

@nrd2001 @sytone
Sorry for the issues. Logs would help greatly, this configuration is a good starting place. I don’t need all the logs - there will be a lot - just the ones around the time the issue happened. Thanks.

logger:
  default: info
  logs:
    pyaarlo: debug

No need to apologise sherrell this replacement module has been a lifesaver and finally made Arlo usable with Home assistant. I’ve tried to extract the relevant info from the logs, if I’ve missed anything you need let me know and I’ll try again. Thanks for this.

No idea if this is the problem but I noticed that it only retrieved the modes from the pro basestation not the Arlo Q (Lounge)

The initial setup of “Lounge” the arlo Q which no longer changes mode:
2019-05-27 14:24:43 DEBUG (SyncWorker_1) [pyaarlo] set:4N527AS150B53/deviceId=4N527AS150B53
2019-05-27 14:24:43 DEBUG (SyncWorker_1) [pyaarlo] set:4N527AS150B53/deviceName=Lounge
2019-05-27 14:24:43 DEBUG (SyncWorker_1) [pyaarlo] set:4N527AS150B53/deviceType=arloqs
2019-05-27 14:24:43 DEBUG (SyncWorker_1) [pyaarlo] set:4N527AS150B53/mediaObjectCount=4917
2019-05-27 14:24:43 DEBUG (SyncWorker_1) [pyaarlo] set:4N527AS150B53/parentId=4N527AS150B53
2019-05-27 14:24:43 DEBUG (SyncWorker_1) [pyaarlo] set:4N527AS150B53/uniqueId=48ZYZ-335-30011818_4N527AS150B53
2019-05-27 14:24:43 DEBUG (SyncWorker_1) [pyaarlo] set:4N527AS150B53/userId=BDE2-335-30884732
2019-05-27 14:24:43 DEBUG (SyncWorker_1) [pyaarlo] set:4N527AS150B53/presignedLastImageUrl=https://arlolastimage-z1.s3.amazonaws.co
2019-05-27 14:24:43 DEBUG (SyncWorker_1) [pyaarlo] set:4N527AS150B53/presignedFullFrameSnapshotUrl=https://arlos3-prod-z1.s3.amazon
2019-05-27 14:24:43 DEBUG (SyncWorker_1) [pyaarlo] set:4N527AS150B53/xCloudId=7S6A6X-1660-335-46208657
2019-05-27 14:24:43 DEBUG (SyncWorker_1) [pyaarlo] set:4RD17372A04FC/deviceId=4RD17372A04FC

Base stations identified correctly:
2019-05-27 14:24:43 INFO (MainThread) [custom_components.aarlo.alarm_control_panel] ArloBaseStation: Lounge created
2019-05-27 14:24:43 INFO (MainThread) [custom_components.aarlo.alarm_control_panel] ArloBaseStation: Home created

2019-05-27 14:24:49 DEBUG (EventStream) [pyaarlo] Lounge BASE got cameras
2019-05-27 14:24:49 DEBUG (EventStream) [pyaarlo] Lounge CAMERA got one cameras
2019-05-27 14:24:49 DEBUG (EventStream) [pyaarlo] Lounge got cameras
2019-05-27 14:24:49 DEBUG (EventStream) [pyaarlo] base info
2019-05-27 14:24:49 DEBUG (EventStream) [pyaarlo] set:4N527AS150B53/activityState=idle
2019-05-27 14:24:49 DEBUG (EventStream) [pyaarlo] set:4N527AS150B53/audioDetected=False
2019-05-27 14:24:49 DEBUG (EventStream) [pyaarlo] set:4N527AS150B53/brightness=1
2019-05-27 14:24:49 DEBUG (EventStream) [pyaarlo] set:4N527AS150B53/connectionState=available
2019-05-27 14:24:49 DEBUG (EventStream) [pyaarlo] set:4N527AS150B53/flip=False
2019-05-27 14:24:49 DEBUG (EventStream) [pyaarlo] set:4N527AS150B53/mirror=False
2019-05-27 14:24:49 DEBUG (EventStream) [pyaarlo] set:4N527AS150B53/motionDetected=False
2019-05-27 14:24:49 DEBUG (EventStream) [pyaarlo] set:4N527AS150B53/motionSetupModeEnabled=False
2019-05-27 14:24:49 DEBUG (EventStream) [pyaarlo] set:4N527AS150B53/motionSetupModeSensitivity=80
2019-05-27 14:24:49 DEBUG (EventStream) [pyaarlo] set:4N527AS150B53/powerSaveMode=2
2019-05-27 14:24:49 DEBUG (EventStream) [pyaarlo] set:4N527AS150B53/privacyActive=False
2019-05-27 14:24:49 DEBUG (EventStream) [pyaarlo] set:4N527AS150B53/signalStrength=4

Modes from my Pro base station:
2019-05-27 14:24:48 DEBUG (ArloBackgroundWorker) [pyaarlo] mode0<==>disarmed
2019-05-27 14:24:48 DEBUG (ArloBackgroundWorker) [pyaarlo] set:4RD17372A04FC/modeIdToName/mode0=disarmed
2019-05-27 14:24:48 DEBUG (ArloBackgroundWorker) [pyaarlo] set:4RD17372A04FC/modeNameToId/disarmed=mode0
2019-05-27 14:24:48 DEBUG (ArloBackgroundWorker) [pyaarlo] mode1<==>armed
2019-05-27 14:24:48 DEBUG (ArloBackgroundWorker) [pyaarlo] set:4RD17372A04FC/modeIdToName/mode1=armed
2019-05-27 14:24:48 DEBUG (ArloBackgroundWorker) [pyaarlo] set:4RD17372A04FC/modeNameToId/armed=mode1
2019-05-27 14:24:48 DEBUG (ArloBackgroundWorker) [pyaarlo] mode2<==>At Home
2019-05-27 14:24:48 DEBUG (ArloBackgroundWorker) [pyaarlo] set:4RD17372A04FC/modeIdToName/mode2=At Home
2019-05-27 14:24:48 DEBUG (ArloBackgroundWorker) [pyaarlo] set:4RD17372A04FC/modeNameToId/at home=mode2
2019-05-27 14:24:48 DEBUG (ArloBackgroundWorker) [pyaarlo] mode3<==>Dogs home alone
2019-05-27 14:24:48 DEBUG (ArloBackgroundWorker) [pyaarlo] set:4RD17372A04FC/modeIdToName/mode3=Dogs home alone
2019-05-27 14:24:48 DEBUG (ArloBackgroundWorker) [pyaarlo] set:4RD17372A04FC/modeNameToId/dogs home alone=mode3
2019-05-27 14:24:48 DEBUG (ArloBackgroundWorker) [pyaarlo] mode4<==>Night
2019-05-27 14:24:48 DEBUG (ArloBackgroundWorker) [pyaarlo] set:4RD17372A04FC/modeIdToName/mode4=Night
2019-05-27 14:24:48 DEBUG (ArloBackgroundWorker) [pyaarlo] set:4RD17372A04FC/modeNameToId/night=mode4
2019-05-27 14:24:48 DEBUG (ArloBackgroundWorker) [pyaarlo] starting request=https://arlo.netgear.com/hmsweb/users/devices/automation/active
2019-05-27 14:24:48 DEBUG (ArloBackgroundWorker) [pyaarlo] set:4RD17372A04FC/activeMode=At Home
2019-05-27 14:24:48 DEBUG (ArloBackgroundWorker) [pyaarlo] starting request=https://arlo.netgear.com/hmsweb/users/devices/notify/4RD17372A04FC
2019-05-27 14:24:48 DEBUG (ArloBackgroundWorker) [pyaarlo] starting request=https://arlo.netgear.com/hmsweb/users/devices/notify/4RD17372A04FC

Finally me trying to set the mode on the Lounge cam:
2019-05-27 14:26:08 DEBUG (SyncWorker_16) [pyaarlo] Lounge:new-mode=dogs home alone,id=mode2
2019-05-27 14:26:08 DEBUG (ArloBackgroundWorker) [pyaarlo] starting request=https://arlo.netgear.com/hmsweb/users/devices/automation/active

Doing the same for the home station which does work:
019-05-27 15:09:46 DEBUG (SyncWorker_14) [pyaarlo] Home:new-mode=dogs home alone,id=mode3
2019-05-27 15:09:46 DEBUG (ArloBackgroundWorker) [pyaarlo] starting request=https://arlo.netgear.com/hmsweb/users/devices/automation/active
2019-05-27 15:09:46 DEBUG (EventStream) [pyaarlo] sending activeAutomations to 4RD17372A04FC
2019-05-27 15:09:46 DEBUG (EventStream) [pyaarlo] Home BASE got activeAutomations
2019-05-27 15:09:46 DEBUG (EventStream) [pyaarlo] set:4RD17372A04FC/activeMode=Dogs home alone
2019-05-27 15:09:46 DEBUG (EventStream) [pyaarlo] sending modes to 4RD17372A04FC
2019-05-27 15:09:46 DEBUG (EventStream) [pyaarlo] Home BASE got modes
2019-05-27 15:09:46 DEBUG (EventStream) [pyaarlo] set:4RD17372A04FC/activeMode=Dogs home alone

That’s excellent. Just to clarify, you’re not seeing the mode information come back for the ArloQ camera?

Correct, I searched through the complete log and the only modes I could find were the ones for the pro base station.

Cheers

You mind giving this branch a go?

https://github.com/twrecked/hass-aarlo/tree/ambient-debug

It’s for a guy who’s having a problem with his Babycam but it uses the old mode API. See if we can get the arloq mode list.

Thanks, gave that a try and where it previously got the available modes from the home base station I only get this:

2019-05-27 18:27:34 DEBUG (ArloBackgroundWorker) [pyaarlo] initial refresh
2019-05-27 18:27:34 DEBUG (ArloBackgroundWorker) [pyaarlo] ambient: here23

and I can’t set the mode for the ArloQ or the home base station.

Cut and paste issue. It should get further this time*.

edit: *if you pull the latest version