MisterWil / abodepy

A thin Python wrapper for the Abode alarm API
MIT License
50 stars 17 forks source link

Fix for login validation issue (uuid now required) #30

Closed shred86 closed 6 years ago

shred86 commented 6 years ago

https://github.com/MisterWil/abodepy/blob/86ee391fec306e3e1f8bbbbc17ab49bff6e6b72d/abodepy/__init__.py#L96

This is what I'm currently running to fix the login validation issue with Abode:

        import uuid
        abode_uuid = str(uuid.uuid1()).replace('-', '')
        login_data = {
            'id': self._username,
            'password': self._password,
            'uuid': abode_uuid
        }
deStrO commented 6 years ago

https://medium.com/@goabode/abode-april-updates-85b581abe2be It's due to the addition of 2FA, maybe a kind of "device ID" to not ask each time the 2FA.

MisterWil commented 6 years ago

Yep, which means the UUID will need to be saved off to a file now. This is fine as I was already planning on adding an external config as per #21 so I'll just save a generated UUID there.

The issue will be fulfilling the 2FA piece of things. Once I get everything working I'll enable 2FA on my account and figure that part out. The trickier (but not much) part will be to get it working with HA. :-)

shred86 commented 6 years ago

Awesome! Thanks MisterWil for continuing to update Abodepy. I’m spending a few hours each day still learning python... hopefully at some point I can contribute more. I’ll be interested to see how you implement the 2FA piece!

MisterWil commented 6 years ago

Fixed with release abodepy-0.12.3