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.
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.
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
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?
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.
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