# \[Tutorial\] Presence detection with bluetooth beacon

**URL:** <https://community.homey.app/t/tutorial-presence-detection-with-bluetooth-beacon/3536>\
**Category:** Tutorials\
**Tags:** tutorial\
**Created:** [November 1, 2018, 12:00pm UTC](https://community.homey.app/t/tutorial-presence-detection-with-bluetooth-beacon/3536 "2018-11-01T12:00:06Z")\
**Posts on this page:** 20\
**Page:** 5

<div class="post-metadata">

**Author:** ![Koktail](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/koktail/32/51498_2.png) [@Koktail](https://community.homey.app/u/Koktail)\
**Post date:** [February 13, 2020, 6:19am UTC](https://community.homey.app/t/tutorial-presence-detection-with-bluetooth-beacon/3536/100 "2020-02-13T06:19:12Z")

</div>

Thanks for clearing that out! And nice to hear that the app works like you expected!

---

<div class="post-metadata">

**Author:** ![victoroos](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/victoroos/32/8344_2.png) [@victoroos](https://community.homey.app/u/victoroos)\
**Post date:** [February 13, 2020, 8:28am UTC](https://community.homey.app/t/tutorial-presence-detection-with-bluetooth-beacon/3536/101 "2020-02-13T08:28:09Z")

</div>

thanks! 🙂

---

<div class="post-metadata">

**Author:** ![victoroos](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/victoroos/32/8344_2.png) [@victoroos](https://community.homey.app/u/victoroos)\
**Post date:** [February 13, 2020, 8:29am UTC](https://community.homey.app/t/tutorial-presence-detection-with-bluetooth-beacon/3536/102 "2020-02-13T08:29:02Z")

</div>

thanks, yeah, smart you read . I didn’t. At least a nice return to the shop trip was done #biking

---

<div class="post-metadata">

**Author:** ![Koktail](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/koktail/32/51498_2.png) [@Koktail](https://community.homey.app/u/Koktail)\
**Post date:** [February 13, 2020, 11:02am UTC](https://community.homey.app/t/tutorial-presence-detection-with-bluetooth-beacon/3536/103 "2020-02-13T11:02:31Z")

</div>

Any idea what the range does? Then i’ll add it to the readme and OP.

---

<div class="post-metadata">

**Author:** ![Viktor](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/viktor/32/8030_2.png) [@Viktor](https://community.homey.app/u/Viktor)\
**Post date:** [February 13, 2020, 11:15am UTC](https://community.homey.app/t/tutorial-presence-detection-with-bluetooth-beacon/3536/104 "2020-02-13T11:15:01Z")

</div>

Going to test tonight, stand by.

---

<div class="post-metadata">

**Author:** ![Patrick\_Ruitenbeek](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/patrick_ruitenbeek/32/27453_2.png) [@Patrick\_Ruitenbeek](https://community.homey.app/u/Patrick_Ruitenbeek)\
**Post date:** [February 21, 2020, 3:17pm UTC](https://community.homey.app/t/tutorial-presence-detection-with-bluetooth-beacon/3536/105 "2020-02-21T15:17:14Z")

</div>

Correct. I should have mentioned that i bought the Tile Pro 2020, my bad.

Still hoping that in the future this device will work with Homey.  
But for now im using Smart Presence.

---

<div class="post-metadata">

**Author:** ![NoX](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/nox/32/19909_2.png) [@NoX](https://community.homey.app/u/NoX)\
**Post date:** [February 22, 2020, 2:42pm UTC](https://community.homey.app/t/tutorial-presence-detection-with-bluetooth-beacon/3536/106 "2020-02-22T14:42:54Z")

</div>

My advice would be; stop hoping that they will ever work. If I remember correctly (from reading it here or on github) the 2020 version broadcasts itself in a different way. The problem is the Tile, not the Beacon App. If you want to use Beacon I suggest buying compatible Tiles. In my case they work very well.

I used Smart Presence before I took the Beacon-Tiles route. I still use both Smart Presence (on iPhone) and Beacon (on keys). But now Beacon sets my home/away status while Smart Presence reminds me when I leave home without my keys. But since grabbing my keys/phone when leaving the home is mostly done by muscle memory, it never happened 😉.

---

<div class="post-metadata">

**Author:** ![Koktail](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/koktail/32/51498_2.png) [@Koktail](https://community.homey.app/u/Koktail)\
**Post date:** [February 22, 2020, 3:28pm UTC](https://community.homey.app/t/tutorial-presence-detection-with-bluetooth-beacon/3536/107 "2020-02-22T15:28:43Z")

</div>

Because the BLE scanning is very memory intensive i’ve thinking of a new sollution.

Making the scanning of the BLE devices optional (default on)  
Making a flowcard action: Update BLE devices status.  
That way there is a posibility to manually search for devices. For example if the door is open start timer. After 30 seconde check presence of beacon.

---

<div class="post-metadata">

**Author:** ![Koktail](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/koktail/32/51498_2.png) [@Koktail](https://community.homey.app/u/Koktail)\
**Post date:** [February 25, 2020, 6:38am UTC](https://community.homey.app/t/tutorial-presence-detection-with-bluetooth-beacon/3536/108 "2020-02-25T06:38:06Z")

</div>

Any insights?

---

<div class="post-metadata">

**Author:** ![Viktor](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/viktor/32/8030_2.png) [@Viktor](https://community.homey.app/u/Viktor)\
**Post date:** [February 25, 2020, 11:18am UTC](https://community.homey.app/t/tutorial-presence-detection-with-bluetooth-beacon/3536/109 "2020-02-25T11:18:44Z")

</div>

Not yet, at beginnings was 5-7m, now on 3m distance is going on and off. Maybe is the Lapa battery, going to try with fresh one.

---

<div class="post-metadata">

**Author:** ![Frans\_Keeman](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/frans_keeman/32/79711_2.png) [@Frans\_Keeman](https://community.homey.app/u/Frans_Keeman)\
**Post date:** [February 26, 2020, 7:34am UTC](https://community.homey.app/t/tutorial-presence-detection-with-bluetooth-beacon/3536/110 "2020-02-26T07:34:38Z")

</div>

Hy koktail, I have 3 tile pro’s that I use for pressence detection and they work perfectly. However I have tested the range and found this to be very fluctuating. Sometimes I am still around my car at the parking place which is 20 meters and homey sees me! Really I have tested this, 20 meters thru 2 houses 🤔 and it works. Sometimes I am already just in my corridor in the house and homey sees me. The difference is enormous. Is there a setting to make this difference at bit smaller. I read overhere not to change the settings so that’s why I ask

Greetz Frans

---

<div class="post-metadata">

**Author:** ![Koktail](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/koktail/32/51498_2.png) [@Koktail](https://community.homey.app/u/Koktail)\
**Post date:** [February 27, 2020, 8:27am UTC](https://community.homey.app/t/tutorial-presence-detection-with-bluetooth-beacon/3536/111 "2020-02-27T08:27:59Z")

</div>

What you describe is a wireless characteristic. How longer the distance the bigger fluctuating there is. Because we are polling the beacon the change that it gets detected within 20 meters is less then when you are close by.

To prevent that fluctuating i’ve build a system in the app that verifies the presence of the beacon multiple times. That way you can be sure it is detected properly (before the caching of the discovery was introduced).

---

<div class="post-metadata">

**Author:** ![Frans\_Keeman](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/frans_keeman/32/79711_2.png) [@Frans\_Keeman](https://community.homey.app/u/Frans_Keeman)\
**Post date:** [February 27, 2020, 4:27pm UTC](https://community.homey.app/t/tutorial-presence-detection-with-bluetooth-beacon/3536/112 "2020-02-27T16:27:45Z")

</div>

First of all thank you for taking time to answer my question. However now I feel dumb as I really have no idea what you mean. Maybe I do not have to use difficult words in my questions next time. I Will do my question in jip en janneke English and I hope you can return in jip and janneke English so I can understand what you mean 😂😂. Why is the distance one time very far and another time very {to} short?

I am sorry I don’t understand your answer 😏

---

<div class="post-metadata">

**Author:** ![victoroos](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/victoroos/32/8344_2.png) [@victoroos](https://community.homey.app/u/victoroos)\
**Post date:** [March 2, 2020, 9:31am UTC](https://community.homey.app/t/tutorial-presence-detection-with-bluetooth-beacon/3536/113 "2020-03-02T09:31:43Z")

</div>

sounds good. Would make it possible to not scan during workdays maybe?  
Is it that memory intensive?

---

<div class="post-metadata">

**Author:** ![Koktail](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/koktail/32/51498_2.png) [@Koktail](https://community.homey.app/u/Koktail)\
**Post date:** [March 2, 2020, 10:19am UTC](https://community.homey.app/t/tutorial-presence-detection-with-bluetooth-beacon/3536/114 "2020-03-02T10:19:21Z")

</div>

The BLE core from Homey is in beta. Its very stable compare to pre 2.0. BLE core does consume a lot of mem of CPU OR make others apps unstable somehow.

---

<div class="post-metadata">

**Author:** ![Koktail](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/koktail/32/51498_2.png) [@Koktail](https://community.homey.app/u/Koktail)\
**Post date:** [March 2, 2020, 10:22am UTC](https://community.homey.app/t/tutorial-presence-detection-with-bluetooth-beacon/3536/115 "2020-03-02T10:22:26Z")

</div>

How further the beacon is from Homey the more unstable the signal. That’s how it works. Every object between will blok the signal too. (like concrete of steel or wood)

---

<div class="post-metadata">

**Author:** ![victoroos](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/victoroos/32/8344_2.png) [@victoroos](https://community.homey.app/u/victoroos)\
**Post date:** [March 3, 2020, 8:22am UTC](https://community.homey.app/t/tutorial-presence-detection-with-bluetooth-beacon/3536/116 "2020-03-03T08:22:28Z")

</div>

hmm, shame, it is for me the only reliable presence detection… I can’t find another way. haha

---

<div class="post-metadata">

**Author:** ![victoroos](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/victoroos/32/8344_2.png) [@victoroos](https://community.homey.app/u/victoroos)\
**Post date:** [March 3, 2020, 8:23am UTC](https://community.homey.app/t/tutorial-presence-detection-with-bluetooth-beacon/3536/117 "2020-03-03T08:23:02Z")

</div>

I just hang my keys almost next to homey. Homey is placed right at my door so it works quite well like that.

---

<div class="post-metadata">

**Author:** ![Peter\_de\_Vos](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_de_vos/32/151925_2.png) [@Peter\_de\_Vos](https://community.homey.app/u/Peter_de_Vos)\
**Post date:** [March 3, 2020, 9:20am UTC](https://community.homey.app/t/tutorial-presence-detection-with-bluetooth-beacon/3536/118 "2020-03-03T09:20:29Z")

</div>

Still works perfect overhere. My experience is that beton blocks the signal much more than glass. When i reach the building from the side my windows are the tile pro sets me to home from more than 60 meters. When reach it from the other side it sets me to home when i am at the front door.

---

<div class="post-metadata">

**Author:** ![MartijnJ](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/martijnj/32/12555_2.png) [@MartijnJ](https://community.homey.app/u/MartijnJ)\
**Post date:** [March 5, 2020, 10:28am UTC](https://community.homey.app/t/tutorial-presence-detection-with-bluetooth-beacon/3536/119 "2020-03-05T10:28:53Z")

</div>

I have bought these [NRF51822](https://nl.aliexpress.com/item/32826502025.html?spm=a2g0s.9042311.0.0.72dd4c4dq5TozM) tags, but I can’t get the Beacon app to recognize them. Anyone some advice?

[Previous page](https://community.homey.app/t/tutorial-presence-detection-with-bluetooth-beacon/3536.md?page=4)

[Next page](https://community.homey.app/t/tutorial-presence-detection-with-bluetooth-beacon/3536.md?page=6)
