twrecked / hass-aarlo

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

No Locations Returned from HMSDeviceManagement #803

Open ibaeic opened 1 year ago

ibaeic commented 1 year ago

Hi twrecked... about a month ago the Arlo base stopped returning locations to the integration, specifically a JSON decode error upon location request...

No locations end up being returned, the base shows 'available' and 'armed' but those are false indications.

As always, any light you can shed is most welcome! pyaarlo_log_no_locations_returned_encrypt.txt

twrecked commented 1 year ago

Thanks, I'll take a look at the logs.

Do you see the locations when you log into the HA account on the Arlo web page?

twrecked commented 1 year ago

It looks like the authentication session is causing you problems:

Try deleting the session file, it's in a directory next to your config:

.aarlo/session.pickle

Or turn off authentication caching by adding this to your arlo config:

save_session: False

If that doesn't work send me another log, hopefully it will have changed.

ibaeic commented 1 year ago

Deleted session.pickle, same error. New log attached. Thanks! Log_After_Session_Pickle_Deleted_No_Locations.txt

twrecked commented 1 year ago

I think I might need to add some more checks to the code and not use locations in this case. If you want to look in the logs these are the 2 pieces I'm looking at:

'supportsMultiLocation': True, The code will try to download the locations if this is True.

'canUserMigrate': True, But your instance is showing this, I'm not sure what this means but it feels important - almost like it support locations but it needs upgrading

Can I ask:

ibaeic commented 1 year ago

Yes, and yes.  I was forced to migrate upon adding an Ultra 2 several months ago; you assisted me greatly at that time restoring functionality within HA!Joe Rainey(407)491-8234On Sep 18, 2023, at 6:59 PM, Steve Herrell @.***> wrote: I think I might need to add some more checks to the code and not use locations in this case. If you want to look in the logs these are the 2 pieces I'm looking at: 'supportsMultiLocation': True, The code will try to download the locations if this is True. 'canUserMigrate': True, But your instance is showing this, I'm not sure what this means but it feels important - almost like it support locations but it needs upgrading Can I ask:

does your main account use the new Arlo interface? does the account you use for HA use the new Arlo interface?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>