twrecked / pyaarlo

Asynchronous Arlo Component for Python
GNU Lesser General Public License v3.0
50 stars 30 forks source link

Arlo Recently added Automation v3 - are you supporting that? #113

Open JeffSteinbok opened 1 year ago

JeffSteinbok commented 1 year ago

The new Arlo v3 automation APIs seem to break this library. Cameras seem to still work, but mode setting on the base station does not. The v3 APIs seem to still return valid data and can still arm the cameras if set right, but don't get reflected in the app correctly, and I suspect would mess with the v3 automations.

There is a manual way to upgrade the hub to this (the v4 Application UX), or, I'm happy to help provide traces.

For example; the API now to get modes is: https://myapi.arlo.com/hmsweb/automation/v3/modes

And the response I get is as below: {"success":true,"data":{"schemaVersion":1,"source":"client-935a7093a2b92021ded5d6b0ca425a61_56AD7D8F-5A33-4A2A-ABE6-D4B4A63E6D8F","properties":{"standby":{"automations":[],"schedules":["0--f81f810b-ae83-42ad-8c6f-2def00073c25","1--23f27fde-a688-4ca1-b57f-839b71879e65"],"geofences":["bdd9be9a-c8a3-4e0b-b1a0-e23565a5e1ec","064cb637-5803-401d-9a5c-4c9f565f6a88"],"name":"Stand By","shortcuts":[],"rules":[],"exitDelay":0},"armHome":{"automations":[],"schedules":["0--f81f810b-ae83-42ad-8c6f-2def00073c25","1--b49e8d5e-1905-4625-94cf-99a9c12f5389"],"geofences":["bdd9be9a-c8a3-4e0b-b1a0-e23565a5e1ec","064cb637-5803-401d-9a5c-4c9f565f6a88"],"name":"Arm Home","shortcuts":[],"rules":["effcf9c1-8f1c-456e-8ac4-a53b97fd35c2","67857e2e-672c-411e-9141-52af14566719","f79804e0-a141-4f61-9c3b-aca42b7fad58","b61ca424-c0b4-4505-b99f-6699c27850cf"],"exitDelay":0},"armAway":{"automations":[],"schedules":["0--f81f810b-ae83-42ad-8c6f-2def00073c25"],"geofences":["bdd9be9a-c8a3-4e0b-b1a0-e23565a5e1ec","064cb637-5803-401d-9a5c-4c9f565f6a88"],"name":"Arm Away","shortcuts":[],"rules":["25989346-8e1f-4f4d-998d-e81fc208ede8","857590eb-29b9-4837-aa8a-7367ed578c94","abbc97c2-86fe-4e43-b326-87c10e5a288b","2ff55d85-e5ff-4d2a-b222-cb60951495d0","eed172a7-d3cb-450a-af2a-f3cb11983de5","276088b2-b532-4347-b6f3-36f9e18b9d8b","61253997-2f0a-4150-921d-52a7f386cd9e","2042a445-e819-48a2-bed9-d32ae9b495b3"],"exitDelay":60}},"revision":1671899858897}}

twrecked commented 1 year ago

I got someone else to do it for me :)

I back ported it to here if you want to give it a try. Arlo has changed a few other pieces so I've brought those changes in as well.