# The music follows you (presence sensors, multiroom speakers)

**URL:** <https://community.homey.app/t/the-music-follows-you-presence-sensors-multiroom-speakers/90271>\
**Category:** Ideas & Suggestions\
**Created:** [September 26, 2023, 9:16am UTC](https://community.homey.app/t/the-music-follows-you-presence-sensors-multiroom-speakers/90271 "2023-09-26T09:16:35Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrPilloft](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mrpilloft/32/87781_2.png) [@mrPilloft](https://community.homey.app/u/mrPilloft)\
**Post date:** [September 26, 2023, 9:16am UTC](https://community.homey.app/t/the-music-follows-you-presence-sensors-multiroom-speakers/90271/1 "2023-09-26T09:16:35Z")

</div>

A dream I’ve had all my life has been to walk around the house and have whatever is playing following me around the house. Not hard to come up with scenarios where this would/should not work, but in an ideal world (that is between 08:00 and 17:00 on workdays when the kids are out and wife at work and I’m at the home office), it would be uber cool to have the sound following me around.

I have SONOS speaker in all major rooms. I even have Google Home Minis in all major rooms, but for this scenario, SONOS would be best suited as bringing speakers in and out of groups is usually gapless. With the Minis, not so much.

Implementation 1.0 would be to expand the group the SONOS speakers are in to include the zone I walk into and just play with the volumes of the speakers in the group. For this implementation I would need a sensor in each location with a speaker, a lot of coffee and a firm grasp of how to program this :- )

Have anyone done this? Can you propose the best sensors to use or just the sensors that made it work :- )

Thank you!

---

<div class="post-metadata">

**Author:** ![amcdnl](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/amcdnl/32/84331_2.png) [@amcdnl](https://community.homey.app/u/amcdnl)\
**Post date:** [September 27, 2023, 11:09am UTC](https://community.homey.app/t/the-music-follows-you-presence-sensors-multiroom-speakers/90271/2 "2023-09-27T11:09:40Z")

</div>

I love this idea. You should abstract it more so it could be lights, ac temps, etc

---

<div class="post-metadata">

**Author:** ![mrPilloft](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mrpilloft/32/87781_2.png) [@mrPilloft](https://community.homey.app/u/mrPilloft)\
**Post date:** [September 27, 2023, 12:05pm UTC](https://community.homey.app/t/the-music-follows-you-presence-sensors-multiroom-speakers/90271/3 "2023-09-27T12:05:59Z")

</div>

You’re right: This could be expanded on, but personally I just need the music. Using variables/virtual devices on what you want to follow you could be a solution. Pseudo code:  
followSound = True  
followLight = False  
followTemp = False

---

<div class="post-metadata">

**Author:** ![mrPilloft](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mrpilloft/32/87781_2.png) [@mrPilloft](https://community.homey.app/u/mrPilloft)\
**Post date:** [September 30, 2023, 1:35pm UTC](https://community.homey.app/t/the-music-follows-you-presence-sensors-multiroom-speakers/90271/4 "2023-09-30T13:35:50Z")

</div>

Looks like Aqara Presence Sensor FP2 could be a great (and expensive 🙂 ) solution to this:

[![](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/a/8a19e973e44e283e341bd2fd1a44001669471433.jpeg "This Smart Home Sensor is INCREDIBLE! Aqara FP2 mmwave") ](https://www.youtube.com/watch?v=yarollsdao4)

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [September 30, 2023, 2:17pm UTC](https://community.homey.app/t/the-music-follows-you-presence-sensors-multiroom-speakers/90271/5 "2023-09-30T14:17:00Z")

</div>

> [@mrPilloft](#):
>
> Have anyone done this? Can you propose the best sensors to use or just the sensors that made it work :- )

Hey, i have done this, with music and my Google Public Announcement system.  
But i just use normal motion sensors: when there is movement in a room (and i have put music Follow mode), it will include that room into the playing Sonos group.  
When there is no motion for 10 minutes, the room/sonos-speakers are removed from the sonos playing group.

It works pretty well, but my living room is considert the main-sonos-group and will always play: i dont have motionsensors there and i could be sitting still on the couch. It also makes grouping easier since i know the main-sonos-group.

---

<div class="post-metadata">

**Author:** ![mrPilloft](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mrpilloft/32/87781_2.png) [@mrPilloft](https://community.homey.app/u/mrPilloft)\
**Post date:** [September 30, 2023, 3:03pm UTC](https://community.homey.app/t/the-music-follows-you-presence-sensors-multiroom-speakers/90271/6 "2023-09-30T15:03:49Z")

</div>

Can you share some of the setup: Sensors, flows and more?

(meanwhile I’m reading this 🙂 ):

> [@\[TUTORIAL\] How to make a Great Public Announcement (P.A.) System with any device!](https://community.homey.app/t/tutorial-how-to-make-a-great-public-announcement-p-a-system-with-any-device/43481):
>
> In this topic i will explain how to make a great working public announcement system in your home (which would make it more of a Private Announcement system). You can do this with every language, since Google Services has a Translate device. The current examples will be using Sonos speakers and a Samsung TV, but it should work with all devices capable of accepting a URL as input. I also will be using multiple of my own Apps, which is the point of this tutorial: using them together for a great …

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [September 30, 2023, 4:53pm UTC](https://community.homey.app/t/the-music-follows-you-presence-sensors-multiroom-speakers/90271/7 "2023-09-30T16:53:19Z")

</div>

> [@mrPilloft](#):
>
> Can you share some of the setup: Sensors, flows and more?

Well, tbh: it’s partly a big mess of normal flows still.  
Let me update the flows next week and turn it into an Advanced Flow, than you can import the complete flow as TEF with the device capabilities app.

---

<div class="post-metadata">

**Author:** ![Chris\_nl](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/chris_nl/32/27194_2.png) [@Chris\_nl](https://community.homey.app/u/Chris_nl)\
**Post date:** [September 30, 2023, 5:34pm UTC](https://community.homey.app/t/the-music-follows-you-presence-sensors-multiroom-speakers/90271/8 "2023-09-30T17:34:59Z")

</div>

I use [ESPresense](https://espresense.com/) for my room detection, still working on the flows, but already have a basic setup that makes my music follow me. With motion sensors you can also accomplish this ofcourse, but then you only know someone is in a room and not WHO is in that room, which would make it even better if you live with multiple people.

---

<div class="post-metadata">

**Author:** ![mrPilloft](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mrpilloft/32/87781_2.png) [@mrPilloft](https://community.homey.app/u/mrPilloft)\
**Post date:** [October 1, 2023, 8:52pm UTC](https://community.homey.app/t/the-music-follows-you-presence-sensors-multiroom-speakers/90271/9 "2023-10-01T20:52:48Z")

</div>

Can’t wait to see Arie’s automation. I suppose you might be able to slowly increase the sound on the new speaker to the same level as the others have. The time to fade in could be anything from 0 to (think of a reasonable number).

And opposite when removing a speaker. Instead of removing it, I was thinking just to fade volume to 0. Then if you revisit the zone, you just have to fade the sound in again.

Looking forward to the day when I’m smart enough to figure this stuff out on my own. Right now I’m fully dependent on you guys! Thanks… 🙂

---

<div class="post-metadata">

**Author:** ![mrPilloft](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mrpilloft/32/87781_2.png) [@mrPilloft](https://community.homey.app/u/mrPilloft)\
**Post date:** [October 6, 2023, 10:37am UTC](https://community.homey.app/t/the-music-follows-you-presence-sensors-multiroom-speakers/90271/10 "2023-10-06T10:37:26Z")

</div>

Someone whispered in my ear that using Apple Airtags would be great here as then you would also know who was lurking around. There are no direct integration with airtags, is there, and there might be other challenges as well. Is it still a possibility?  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/2/7219f61c8a45b8c8e4858e3ffc73a73c853653e6.jpeg)

---

<div class="post-metadata">

**Author:** ![Chris\_nl](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/chris_nl/32/27194_2.png) [@Chris\_nl](https://community.homey.app/u/Chris_nl)\
**Post date:** [October 6, 2023, 3:40pm UTC](https://community.homey.app/t/the-music-follows-you-presence-sensors-multiroom-speakers/90271/11 "2023-10-06T15:40:18Z")

</div>

Nope, find my iphone/tags are not accessible through API, although some users apparently found ways around it on [Home Assistant](https://www.reddit.com/r/homeassistant/comments/13o2keg/finally_appletags_in_home_assistant/) (Never tested it, so no clue if it actually works). But that is for use outdoors, based on your original question, you want to use them indoors. I think Airtags doe send out a Bluetooth (BLE) signal, and if not there are other tags that do.

In my ESPresense setup I use a similar method to detect an apple watch. Never had a look if Airtags work too, but I could have a look later this week if you are interested.

(doesn’t work apparently with Airtags: [Beacons | ESPresense](https://espresense.com/beacons) )

---

<div class="post-metadata">

**Author:** ![mrPilloft](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mrpilloft/32/87781_2.png) [@mrPilloft](https://community.homey.app/u/mrPilloft)\
**Post date:** [October 9, 2023, 9:48am UTC](https://community.homey.app/t/the-music-follows-you-presence-sensors-multiroom-speakers/90271/12 "2023-10-09T09:48:48Z")

</div>

> [@Arie\_J\_Godschalk](#):
>
> Let me update the flows next week

Hi Arie, is it next week already? 🙂 👍

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [October 9, 2023, 2:06pm UTC](https://community.homey.app/t/the-music-follows-you-presence-sensors-multiroom-speakers/90271/13 "2023-10-09T14:06:17Z")

</div>

Yeah it is, i just havent had time yet.  
Also, my homey being overloaded dossn’t help 😉  
I have some time from wednesday, so i hope to complete it this week.

---

<div class="post-metadata">

**Author:** ![nagero](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/nagero/32/79538_2.png) [@nagero](https://community.homey.app/u/nagero)\
**Post date:** [October 14, 2023, 6:25pm UTC](https://community.homey.app/t/the-music-follows-you-presence-sensors-multiroom-speakers/90271/14 "2023-10-14T18:25:07Z")

</div>

Here’s a quick couple of screenshots of my follow-me setup for Sonos. There’s two flows:

The first triggers on motion in other rooms and joins the lounge. The lounge is also my office and where i spend most of the day. I will ultimately always end up back in the Lounge so it provides the constant all the other rooms will group and ungroup themselves from.

 ![sonos_followme](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/3/b359c4d8cda89b26c3884d500d356338903030d7.png)

[EDIT: Simplified the flow. Thanks @mrPilloft]  
The second flow is passed an input which is the name of the room that’s just been triggered. It’s job is to ungroup the speaker from whatever room I just came from.

 ![sonos_followme_turnoff_deux](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/f/6f1b37b956e273005a039c34fbaf90bfae44b92c.png)

HTH.

---

<div class="post-metadata">

**Author:** ![Ewen\_Le\_guennec](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ewen_le_guennec/32/25503_2.png) [@Ewen\_Le\_guennec](https://community.homey.app/u/Ewen_Le_guennec)\
**Post date:** [October 15, 2023, 11:14am UTC](https://community.homey.app/t/the-music-follows-you-presence-sensors-multiroom-speakers/90271/15 "2023-10-15T11:14:50Z")

</div>

I wish do the same with google products but the option “join the group” is no available…  
If someone have an idea?

---

<div class="post-metadata">

**Author:** ![nagero](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/nagero/32/79538_2.png) [@nagero](https://community.homey.app/u/nagero)\
**Post date:** [October 15, 2023, 4:46pm UTC](https://community.homey.app/t/the-music-follows-you-presence-sensors-multiroom-speakers/90271/16 "2023-10-15T16:46:57Z")

</div>

It’s a “Then” option in your flow for you Sonos speakers:

 ![sonos_followme_joingroup](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/8/f8c95643835185ae567b999588ada5b2db3ec083.png)

---

<div class="post-metadata">

**Author:** ![mrPilloft](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mrpilloft/32/87781_2.png) [@mrPilloft](https://community.homey.app/u/mrPilloft)\
**Post date:** [October 15, 2023, 6:28pm UTC](https://community.homey.app/t/the-music-follows-you-presence-sensors-multiroom-speakers/90271/17 "2023-10-15T18:28:34Z")

</div>

This is beautiful, **nagero**. Can you simplify flow #2 a little by just having one of these for each room? Why do you have 3x per room?

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/b/2b16d89e422e7d49958910223c41182fa7838328.png)

---

<div class="post-metadata">

**Author:** ![nagero](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/nagero/32/79538_2.png) [@nagero](https://community.homey.app/u/nagero)\
**Post date:** [October 17, 2023, 11:06am UTC](https://community.homey.app/t/the-music-follows-you-presence-sensors-multiroom-speakers/90271/18 "2023-10-17T11:06:52Z")

</div>

Yeah you absolutely could use just one of each. There’s no special reason why i’ve done it that way 👍

---

<div class="post-metadata">

**Author:** ![mrPilloft](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mrpilloft/32/87781_2.png) [@mrPilloft](https://community.homey.app/u/mrPilloft)\
**Post date:** [October 17, 2023, 4:06pm UTC](https://community.homey.app/t/the-music-follows-you-presence-sensors-multiroom-speakers/90271/19 "2023-10-17T16:06:47Z")

</div>

Love the solution, **nagero**. Great work!!! 🙂 👍 🎵 👣 🎶

---

<div class="post-metadata">

**Author:** ![mrPilloft](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mrpilloft/32/87781_2.png) [@mrPilloft](https://community.homey.app/u/mrPilloft)\
**Post date:** [October 18, 2023, 7:49am UTC](https://community.homey.app/t/the-music-follows-you-presence-sensors-multiroom-speakers/90271/20 "2023-10-18T07:49:37Z")

</div>

> [@Ewen\_Le\_guennec](#):
>
> do the same with google products…

Guess it’s not that easy with Google products, and currently there are no way to synchronize playback between SONOS and Google products. I do not think that is what you meant, just wanted to mention it. One day… 🙂 🎶

**The idea:** There is however a poor mans solution to Google and that is to pre create different groups of Google speakers and move playback to the different groups as you move through your house. Have not tried this myself but use groups orally constantly by saying stuff like “_Ok Google, play music on {group\_name}_”. If you try and find it to work, please share your experience here, **Ewen**! 😉 👍

[Next page](https://community.homey.app/t/the-music-follows-you-presence-sensors-multiroom-speakers/90271.md?page=2)
