# Secure Door Access Flow using the new ASK Card (Face Recognition + Password + Retry System)

**URL:** https://community.homey.app/t/secure-door-access-flow-using-the-new-ask-card-face-recognition-password-retry-system/152390
**Category:** Flows
**Created:** [March 13, 2026, 1:11am UTC](https://community.homey.app/t/secure-door-access-flow-using-the-new-ask-card-face-recognition-password-retry-system/152390 "2026-03-13T01:11:09Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![iGiorgis](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/igiorgis/32/130594_2.png) [@iGiorgis](https://community.homey.app/u/iGiorgis)
#### Post date: [March 13, 2026, 1:11am UTC](https://community.homey.app/t/secure-door-access-flow-using-the-new-ask-card-face-recognition-password-retry-system/152390/1 "2026-03-13T01:11:09Z")

</div>

**Hello everyone,**

I just created a new **Advanced Flow using the new Mobile “ASK” card** and wanted to share it with the community. The idea was to build a small **secure door access system** using face recognition together with a password verification before unlocking the door.

The flow is triggered when the doorbell detects a **known person** , then the system asks for a password through the **ASK card**. If the password is correct, it asks for confirmation and unlocks the door. If it’s wrong, the user can retry up to three times before the system stops.

**Features:**

✅ Face recognition  
✅ Password authentication  
✅ Retry system  
✅ Max attempts protection  
✅ Reset logic for the next attempt  
✅ Confirmation before opening the door

The flow uses **Better Logic Library** to count password attempts and prevent unlimited retries. When the maximum attempts are reached, a notification is sent and the process stops.

I’m sharing this in case it helps someone experimenting with the new **ASK card** and Advanced Flows. Feedback or improvements are always welcome!

Thanks! 🙂

Flow overview:

 ![new ASK](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/f/3fd6bbcdf36e88eb207f94d6cbb3e0be7f2fbb26.jpeg)

**Update / Improvement**

I added an extra improvement to make the flow behave more naturally in real-life use.

Sometimes the door can already be unlocked using another method such as **fingerprint, NFC tag, keypad or the Homey app**. In those cases, it would not make sense for the system to still ask for a password after face recognition.

To solve this, I implemented a **“Recent Door Unlock” logic** using Better Logic variables.

When the door is unlocked, the flow sets a variable:

`RECENT_UNLOCK = true`

This variable stays active for about **30 seconds**. During this time, if face recognition detects a known person, the flow will **skip the password request**.

After the delay, the variable automatically resets:

`RECENT_UNLOCK = false`

This ensures the password flow will work normally again the next time someone approaches the door.

This small addition prevents unnecessary password prompts when the door has already been opened using another access method, making the system behave much more naturally.

The screenshots below show the additional flows used to implement this logic.

 ![Screenshot (11)](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/8/a8ab2b696f7631d377eec5b9f35dcb0578512da0.png)

 ![Screenshot (12)](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/5/8527b593b14e6148956795ef186ca0dd4b0ef410.png)
