# Beacons to start a flow on a specific location

**URL:** <https://community.homey.app/t/beacons-to-start-a-flow-on-a-specific-location/46607>\
**Category:** Questions & Help\
**Created:** [April 23, 2021, 11:08am UTC](https://community.homey.app/t/beacons-to-start-a-flow-on-a-specific-location/46607 "2021-04-23T11:08:18Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Koen\_Zandink](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/koen_zandink/32/39780_2.png) [@Koen\_Zandink](https://community.homey.app/u/Koen_Zandink)\
**Post date:** [April 23, 2021, 11:08am UTC](https://community.homey.app/t/beacons-to-start-a-flow-on-a-specific-location/46607/1 "2021-04-23T11:08:18Z")

</div>

Hello,  
I am searching for a way to start a flow on a specific location in a large building.

The situation is:  
I work at a home for the elderly. When a cliënt (with dementia) is aggravated she starts walking. Music will calm her down but she walks randomly through the building. The idea is to place spotify connect speakers throughout the building. Every speaker is connected with a pir. When she walks past the pir, the speaker starts playing her music through a homey flow. After which she will calm down. To make the flow know that she is at a specific speaker I would like to add a bluetooth beacon or something similar which will fit in her purse or clothing. The bluetooth beacon has to know within a range that it is at the specif location. So i can add it as an and command to the flow  
So I would like to know if there is some sort of bluetooth to wifi beaconfinder which connects to wifi to the homey. (the building is totaly wifi covered).

I hope you understand my question.  
I am open for other options.

Thanx in advance

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [April 23, 2021, 1:55pm UTC](https://community.homey.app/t/beacons-to-start-a-flow-on-a-specific-location/46607/2 "2021-04-23T13:55:23Z")

</div>

So, you want to detect _someone_ by the PIRs, and a _specific person_ whith use of a BT beacon, if I understand correctly.  
The PIR’s are not relevant here, I think.

This should mean you have to place a BT2Wifi hub at every speaker.

I do not have knowledge if BT2Wifi hub/brigde exist yet.

---

<div class="post-metadata">

**Author:** ![Koen\_Zandink](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/koen_zandink/32/39780_2.png) [@Koen\_Zandink](https://community.homey.app/u/Koen_Zandink)\
**Post date:** [April 23, 2021, 2:18pm UTC](https://community.homey.app/t/beacons-to-start-a-flow-on-a-specific-location/46607/3 "2021-04-23T14:18:52Z")

</div>

No, I would always like tot detect a specific person.  
Maybe the Pir is somewhat redundant. But because Bluetooth has a range of about 10 meters. I thought the pir was more accurate. In that way the speaker wouldn’t play when it isn’t needed.  
The BT2Wifi hub was my best guess too. I hope someone could point me to a bridge that works with Homey.

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [April 23, 2021, 2:30pm UTC](https://community.homey.app/t/beacons-to-start-a-flow-on-a-specific-location/46607/4 "2021-04-23T14:30:09Z")

</div>

Here’s one: [iGS01 Bluetooth WiFi Gateway](https://www.beaconzone.co.uk/iGS01)

Since it purportedly supports MQTT, perhaps the new “MQTT Device” feature of the MQTT Hub app can be used to provide Homey support.

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [April 23, 2021, 4:31pm UTC](https://community.homey.app/t/beacons-to-start-a-flow-on-a-specific-location/46607/5 "2021-04-23T16:31:06Z")

</div>

> [@Koen\_Zandink](#):
>
> But because Bluetooth has a range of about 10 meters. I thought the pir was more accurate

In that case you could create a BT _and_ a pir trigger for the specific person carrying the beacon.  
You can do something like this, for every speaker/pir set, assuming BT is detected sooner as PIR while approaching a Speaker/pir set:

> Speaker/pir set A:  
> IF sensor A → person in range  
> AND BT-WifiGW A → beacon1 is in range  
> THEN stop cast to SpotifyConnectGroup\*\*\*  
> AND cast music URL to SpotifyConnect speaker A after 1 sec

> Speaker/pir set B:  
> IF sensor B → person in range  
> AND BT-WifiGW B → beacon1 is in range  
> THEN stop cast to SpotifyConnectGroup  
> AND cast music URL to SpotifyConnect speaker B after 1 sec

and so forth

\*\*\*) _I don’t know how SpotifyConnect works, I assume you have to stop casting to any device first, then start to cast to a specific device_

---

<div class="post-metadata">

**Author:** ![Koen\_Zandink](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/koen_zandink/32/39780_2.png) [@Koen\_Zandink](https://community.homey.app/u/Koen_Zandink)\
**Post date:** [April 23, 2021, 5:16pm UTC](https://community.homey.app/t/beacons-to-start-a-flow-on-a-specific-location/46607/6 "2021-04-23T17:16:59Z")

</div>

Ah,yes this looks great. Any idea what happens when two different people approach the same point with a beacon with a different spotify list? Will it result in an error,or does it simply play first come first serve?

---

<div class="post-metadata">

**Author:** ![Koen\_Zandink](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/koen_zandink/32/39780_2.png) [@Koen\_Zandink](https://community.homey.app/u/Koen_Zandink)\
**Post date:** [April 23, 2021, 5:18pm UTC](https://community.homey.app/t/beacons-to-start-a-flow-on-a-specific-location/46607/7 "2021-04-23T17:18:15Z")

</div>

Ah,great. I will take a look at this. Anyone with experience with this product perhaps?

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [April 23, 2021, 5:22pm UTC](https://community.homey.app/t/beacons-to-start-a-flow-on-a-specific-location/46607/8 "2021-04-23T17:22:06Z")

</div>

I’ve looked for it for a while, but of no avail, so thank you @robertklep !  
I think it’s very interesting device, as Homey’s BLE range can be “extended” this way. F.i. use of BLE devices upstairs, or even in the garden.

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [April 23, 2021, 5:24pm UTC](https://community.homey.app/t/beacons-to-start-a-flow-on-a-specific-location/46607/9 "2021-04-23T17:24:39Z")

</div>

> [@Koen\_Zandink](#):
>
> Ah,yes this looks great. Any idea what happens when two different people approach the same point with a beacon with a different spotify list? Will it result in an error,or does it simply play first come first serve?

Thanks Koen. I like the purpose of this idea.  
That’s a good Q. I think they can’t trigger exactly at the same time, but in case you use my example flows, the _last_ one in range gets his/her fav music 😉 I think 😉

---

<div class="post-metadata">

**Author:** ![Koen\_Zandink](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/koen_zandink/32/39780_2.png) [@Koen\_Zandink](https://community.homey.app/u/Koen_Zandink)\
**Post date:** [April 23, 2021, 5:44pm UTC](https://community.homey.app/t/beacons-to-start-a-flow-on-a-specific-location/46607/10 "2021-04-23T17:44:40Z")

</div>

I really hope I can get this to work. If this works as whe hope it really could help our clients.

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [April 23, 2021, 8:43pm UTC](https://community.homey.app/t/beacons-to-start-a-flow-on-a-specific-location/46607/11 "2021-04-23T20:43:13Z")

</div>

I’d like to test for you, but I do not want to spend £69.60 for a BT bridge, yet 😉

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [April 24, 2021, 5:45am UTC](https://community.homey.app/t/beacons-to-start-a-flow-on-a-specific-location/46607/12 "2021-04-24T05:45:59Z")

</div>

You can also buy an ESP32 for a couple of € and run this: [GitHub - shmuelzon/ble2mqtt: A BLE to MQTT bridge](https://github.com/shmuelzon/ble2mqtt)

---

<div class="post-metadata">

**Author:** ![Koen\_Zandink](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/koen_zandink/32/39780_2.png) [@Koen\_Zandink](https://community.homey.app/u/Koen_Zandink)\
**Post date:** [April 24, 2021, 9:34am UTC](https://community.homey.app/t/beacons-to-start-a-flow-on-a-specific-location/46607/13 "2021-04-24T09:34:22Z")

</div>

Thats nice of you. But not a problem. I have a little budget to try out things.

---

<div class="post-metadata">

**Author:** ![Koen\_Zandink](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/koen_zandink/32/39780_2.png) [@Koen\_Zandink](https://community.homey.app/u/Koen_Zandink)\
**Post date:** [April 24, 2021, 9:35am UTC](https://community.homey.app/t/beacons-to-start-a-flow-on-a-specific-location/46607/14 "2021-04-24T09:35:16Z")

</div>

Great, keep m coming 😉 . I will look into this too.
