bdraco / yalexs

Python API for Yale Access (formerly August) Smart Lock and Doorbell
MIT License
41 stars 19 forks source link

Add support for finger_unlock action in the /houses/<house_id>/activities API response #185

Closed sfelf closed 2 months ago

sfelf commented 2 months ago

I have a Yale Keypad Touch configured to work with my August WiFi lock. In Home Assistant, I have created an automation that gets triggered when the August WiFi lock is unlocked. This automation works fine when I enter my PIN on the Yale Keypad. However, when I try to use my fingerprint to unlock the automation doesn't get triggered.

After reading through the yalexs code base, I believe the automation isn't triggered because the finger_unlock action isn't expected in the response from the /houses/<house_id>/activities API.

Below is a sample event structure where the finger_unlock action appears.

{
    "id": "*** Redacted ID ***",
    "timestamp": 1726770544000,
    "icon": "https://d33mytkkohwnk6.cloudfront.net/app/ActivityFeedIcons/finger_unlock@3x.png",
    "action": "finger_unlock",
    "deviceID": "*** Redacted Device ID ***",
    "deviceType": "lock",
    "user": {
        "UserID": "*** Redacted User ID ***",
        "FirstName": "Thomas",
        "LastName": "Nelson"
    },
    "title": "<b>Thomas Nelson</b> unlocked <b>Front Door</b> with fingerprint"
}

Please let me know if any more details would be helpful.

bdraco commented 2 months ago

Here is an example PR on how to add new lock methods https://github.com/bdraco/yalexs/pull/177