# Ideas/ways to unlock the main door

**URL:** <https://community.homey.app/t/ideas-ways-to-unlock-the-main-door/23525>\
**Category:** Ideas & Suggestions\
**Created:** [January 1, 2020, 3:57am UTC](https://community.homey.app/t/ideas-ways-to-unlock-the-main-door/23525 "2020-01-01T03:57:06Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![khangwei](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/khangwei/32/9687_2.png) [@khangwei](https://community.homey.app/u/khangwei)\
**Post date:** [January 1, 2020, 3:57am UTC](https://community.homey.app/t/ideas-ways-to-unlock-the-main-door/23525/1 "2020-01-01T03:57:06Z")

</div>

Hi guys. Happy 2020!

Currently, I use danalock [https://danalock.com/](https://danalock.com/) and unlock my main door using zwave or danalock app.

The danalock app has a geolocation function where it attempts to unlock the door if you are within proximity via bluetooth, but its not great - works like maybe 2 out of every 10 times or so.

What this means is every time I reach home, I have to pull out my phone to unlock it via the app or via homey app (z-wave) which creates a lag time as we stand outside the door to unlock it.

I am trying to implement a cleaner solution where the door unlocks as soon as I am at the main door. This can be achieved via a card reader (how do I do that if not zwave?) or something else. I know there is smart presence, but it doesnt work well for me because I stay in an apartment and the geolocation is not great to begin with - so i prefer a physical solution. Could be a smart card reader, thumbprint reader etc. Any sort of implementations you have or ideas you can share are much appreciated.

Thanks in advance!

KW

---

<div class="post-metadata">

**Author:** ![danone](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/danone/32/115743_2.png) [@danone](https://community.homey.app/u/danone)\
**Post date:** [January 1, 2020, 9:29am UTC](https://community.homey.app/t/ideas-ways-to-unlock-the-main-door/23525/2 "2020-01-01T09:29:26Z")

</div>

An idea could be to use a bluetooth beacon (like tile or similar) with the Beacon app [Beacon App for Homey | Homey](https://homey.app/en-au/app/com.koktail.beacon/Beacon/)  
I do have an old Tile and a cheap Chinese beacon which both works like a charm for presence detection.  
For sure there are many other options…

Off topic, I am using the beacons just for presence detection as my door lock is Nuki. (bluetooth, too) Never misses a beat, the door unlocks every single time as the lock detects my phone 😀

---

<div class="post-metadata">

**Author:** ![khangwei](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/khangwei/32/9687_2.png) [@khangwei](https://community.homey.app/u/khangwei)\
**Post date:** [January 1, 2020, 9:46am UTC](https://community.homey.app/t/ideas-ways-to-unlock-the-main-door/23525/3 "2020-01-01T09:46:27Z")

</div>

thanks for this! how does this work? homey detects the bluetooth beacon?

---

<div class="post-metadata">

**Author:** ![danone](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/danone/32/115743_2.png) [@danone](https://community.homey.app/u/danone)\
**Post date:** [January 1, 2020, 10:21am UTC](https://community.homey.app/t/ideas-ways-to-unlock-the-main-door/23525/4 "2020-01-01T10:21:00Z")

</div>

Yes, indeed. Quite reliable and if you live in a flat that’s usually when you get close to your door. My own experiences is that the Tile Pro (2018) is detected when about 6-8m away from Homey.  
From here you can make flows… to unlock your door.

BTY, regarding the Tile, peeps here in the forum report that Tile from 2019 does not work with the Beacon app.

---

<div class="post-metadata">

**Author:** ![G.P\_Bruins](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/g.p_bruins/32/711_2.png) [@G.P\_Bruins](https://community.homey.app/u/G.P_Bruins)\
**Post date:** [January 1, 2020, 11:44am UTC](https://community.homey.app/t/ideas-ways-to-unlock-the-main-door/23525/5 "2020-01-01T11:44:22Z")

</div>

Hi Khangwei,

Happy 2020 2U!

See my reaction of April 2019 on a related subject:

> [@Acces control Heimdall and Homey](https://community.homey.app/t/acces-control-heimdall-and-homey/3159/46):
>
> As my access control open my door (Danalock V3 BTZE) and switches of my alarm (Heimdall) I don’t want to use any RFID device with the electronic part on the outside of the house. If you know a little bit about GND, NO and NC contacts you could bypass the RFID bit after destroying its casing. I have therefor chosen a RFID reader with a separate coil to be fitted on the outside wall and the electronic part to be fitted inside the house. I have used it in combination with a 12v relais and a modifie…

Works like a charm!

Guus

---

<div class="post-metadata">

**Author:** ![khangwei](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/khangwei/32/9687_2.png) [@khangwei](https://community.homey.app/u/khangwei)\
**Post date:** [January 2, 2020, 1:41am UTC](https://community.homey.app/t/ideas-ways-to-unlock-the-main-door/23525/6 "2020-01-02T01:41:13Z")

</div>

Thanks very much @G.P_Bruins. This is brilliant but I need some time to understand what is going on - my knowledge of electric circuit board is very poor. but thank you!!!

---

<div class="post-metadata">

**Author:** ![Sierra](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sierra/32/22284_2.png) [@Sierra](https://community.homey.app/u/Sierra)\
**Post date:** [October 7, 2020, 7:28pm UTC](https://community.homey.app/t/ideas-ways-to-unlock-the-main-door/23525/7 "2020-10-07T19:28:25Z")

</div>

Hey. Have you found a way to achieve this? I have the same problem as you do, can’t use geofencing due to living in a flat and smart presence app is unreliable.

---

<div class="post-metadata">

**Author:** ![khangwei](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/khangwei/32/9687_2.png) [@khangwei](https://community.homey.app/u/khangwei)\
**Post date:** [October 11, 2020, 3:30am UTC](https://community.homey.app/t/ideas-ways-to-unlock-the-main-door/23525/8 "2020-10-11T03:30:54Z")

</div>

Hi @Sierra

At the moment, I use a variable to track if someone is at home or not based on a counter. This counter increases or decreases based on inputs from around the house such as motion sensor as well as if our devices are connected to the wifi.

If the counter is less than a number (which I deem as no one is at home), when my device gets connected to the wifi, it unlocks the door.

---

<div class="post-metadata">

**Author:** ![Jonas\_Hedberg](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jonas_hedberg/32/30818_2.png) [@Jonas\_Hedberg](https://community.homey.app/u/Jonas_Hedberg)\
**Post date:** [November 10, 2020, 12:20pm UTC](https://community.homey.app/t/ideas-ways-to-unlock-the-main-door/23525/9 "2020-11-10T12:20:44Z")

</div>

I had the same problem, just ended up buying the Danapad instead and it works great. Shame tho that it cannot be paired with Homey so i cannot use it to detect home/away mode.

---

<div class="post-metadata">

**Author:** ![Fabian\_Annequin](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fabian_annequin/32/30342_2.png) [@Fabian\_Annequin](https://community.homey.app/u/Fabian_Annequin)\
**Post date:** [November 10, 2021, 11:17am UTC](https://community.homey.app/t/ideas-ways-to-unlock-the-main-door/23525/10 "2021-11-10T11:17:50Z")

</div>

Old topic but id like to share my solution.

The danalock app with geo isn’t working well. At least for me.

So here’s how I did it;

I use Bluetooth beacon and smart presence to see if someone left the building. If both are away then set the user to away.

Flow 1  
IF motion detected by (hacked) aqara PIR  
AND both bt and wifi are connected  
AND person X is not at home  
THEN open the lock

Flow 2  
IF front door is opened (contact sensor)  
AND wifi or BT is connected  
THEN set person x as at home.

These flows open the door on a save manor (by both checking bt and wifi and motion. (my gf uses a tag, and I a beacon simulating app)

The person is only set as home when the door is opened. Ones the person is at home the door no longer opens till both bt and wifi are disconnected.

Apps:  
Aqara  
Danalock  
Beacon  
Smart presence
