twrecked / hass-aarlo

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

Movement detection: "Arlo Smart person detection" #110

Open Tiippex opened 5 years ago

Tiippex commented 5 years ago

Hello,

I upgraded my Arlo plan to the plan with the smart person detection. Right now I only get notifications on my phone when a person triggers a camera.

The motion sensor in HA gets triggert all the time when something moves. Is it possible to detect what kind of movement the Arlo camera detects? Right now the Arlo app has four different movement types: person, animal, cars and movement (everything else).

Tiippex

twrecked commented 5 years ago

I'm in the same situation - I have the smart plan but get all notifications whatever.

We're limited by the web interface API and that doesn't currently show what caused the motion.

Tiippex commented 5 years ago

Can I find a documentation for the web interface api somewhere? Or is it just a hack into the api they use for their web interface?

twrecked commented 5 years ago

There is nothing official. I used the following resources to get me going: https://robertogallea.com/posts/development/netgear-arlo-system-api https://github.com/jeffreydwalter/arlo

And the code here is heavily based on this: https://github.com/tchellomello/python-arlo

I also used the developer tools of chrome. A lot.

Tiippex commented 5 years ago

Which "api endpoint" do you use to check the cameras for movement?

twrecked commented 5 years ago

https://arlo.netgear.com/hmsweb/client/subscribe?token=

It's an event stream that provides real time notifications. You can look at the packets by adding packet_dump: True to your Aarlo configuration and looking in /config/.aarlo/packets.dump.

twrecked commented 5 years ago

Any joy with this? I just noticed that Arlo has updated their website so maybe smart notifications will be coming soon.

Tiippex commented 4 years ago

Sorry I was quite busy with life. Will have a look at this again.

twrecked commented 4 years ago

I think I suffer from the same problem :) No worries, if you find anything let me know.

Tiippex commented 4 years ago

I wasnt able to find anything. But it should be possible.

Just tried to contact arlo to ask a developer. When I submit the contact form I get an error: "Please contact the support".

Tiippex commented 4 years ago

Hey,

whats about this one: https://arlo.netgear.com/hmsweb/users/devices/notify

Just found it, but I have no system to test it right now. Reseted my computer... Can you test that for me please? Or do you have experience with this endpoint?

Tiippex

twrecked commented 4 years ago

That's the URL for making Arlo do stuff - send list of resources, turn on lights, alarms...

I'm keeping any eye on the website but did have an idea how to make this work.

The recordings library tells you what caused the detection to trigger so I might be able to create some hooks to turn a new recording notification into a "motion detected because of" notification. It won't happen as quickly as a motion detection but would probably be quick enough.

edit: I could probably hook it into the last captured sensor...

twrecked commented 4 years ago

v0.6.9 now includes an object type against the last_capture variable. You could create a routine to send a notification when that object changes.

Tiippex commented 4 years ago

Oh sorry for the false alert.

So I can get the movement type over the last_capture thingy?