# Welcome flow to trigger music and lights

**URL:** https://community.homey.app/t/welcome-flow-to-trigger-music-and-lights/98512
**Category:** Flows
**Tags:** homey-pro, advancedflow
**Created:** [December 20, 2023, 8:13pm UTC](https://community.homey.app/t/welcome-flow-to-trigger-music-and-lights/98512 "2023-12-20T20:13:06Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![nforester](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/nforester/32/80769_2.png) [@nforester](https://community.homey.app/u/nforester)
#### Post date: [December 20, 2023, 8:13pm UTC](https://community.homey.app/t/welcome-flow-to-trigger-music-and-lights/98512/1 "2023-12-20T20:13:06Z")

</div>

Hi everyone.

I’ve been struggling with my “welcome” flow last two days. Maybe it’s a newbie question, but anyways, would be nice to get some guidance.  
My scenario is to get my sonos playing and lights to turn on when Someone comes home. Ofcourse without any buttons pressed. Perfect timing would be when “came home” and “closed the door”.  
Given:

- open/closed sensor on the door,
- Camera that can register motion at entrance,
- Hue motion sensor
- geofencing via Homey

I have read i advanced flow tutorial that two triggers will never work.  
adding screenshot , ANY just for experiment and for possible triggers listing.

 ![Screenshot 2023-12-20 at 20.55.07](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/5/455024ade7201abb480b5942e047609565c098c3.png)

Any ideas how to make it work ?  
Probably perfect would be ALL that can wait for few triggers in a certain time range, e.g. if camera detects mition and door was closed in last 5 seconds than …

---

<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: [December 20, 2023, 8:41pm UTC](https://community.homey.app/t/welcome-flow-to-trigger-music-and-lights/98512/2 "2023-12-20T20:41:17Z")

</div>

> [@nforester](#):
>
> I have read i advanced flow tutorial that two triggers will never work.

Wrong 🤪 : two triggers connected _to an ALL block_ will never work.

It works fine when you connect them _in parallel_ to the next flowcard (with or without the ANY block)  
So, your shown flow works perfectly fine 👌

---

<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: [December 20, 2023, 9:15pm UTC](https://community.homey.app/t/welcome-flow-to-trigger-music-and-lights/98512/3 "2023-12-20T21:15:20Z")

</div>

> [@nforester](#):
>
> if camera detects mition and door was closed in last 5 seconds than …

 ![Screenshot from 2023-12-20 22-14-53](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/5/454761a693d27879658e972d1da16fa1f0b2d07a.png)

---

<div class="post-metadata">

### Author: ![nforester](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/nforester/32/80769_2.png) [@nforester](https://community.homey.app/u/nforester)
#### Post date: [December 20, 2023, 9:19pm UTC](https://community.homey.app/t/welcome-flow-to-trigger-music-and-lights/98512/4 "2023-12-20T21:19:58Z")

</div>

_It works, but it would trigger too much. Any time I open a door , any time Someone is spotted by the camera, and any time someone comes home. \*  
 I have tried several flows:" When someone comes home \>\>door is opened \>\> … "_ never worked actually, because of Homeys geofencing delay.\*  
_Probably would be besT to use camera + door sensor to register arrival. Any ideas ?_

Already read your suggestion while was typing. Thanks for input, will try and test it 🙂 👍

---

<div class="post-metadata">

### Author: ![nforester](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/nforester/32/80769_2.png) [@nforester](https://community.homey.app/u/nforester)
#### Post date: [December 22, 2023, 7:12pm UTC](https://community.homey.app/t/welcome-flow-to-trigger-music-and-lights/98512/5 "2023-12-22T19:12:15Z")

</div>

Thanks for help, Peter.

It took a bit more time than I expected, but it’s working 🙂 First I have tried boolean method, seems pretty easy and logical, but worked every third time, tried to find where error came from and made text message to timeline after each step. Just no luck, it just didn’t respond to boolean variable propperly, dunno why.

 ![Screenshot 2023-12-22 at 20.11.27](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/e/9e29d5a66229b3b8b5a72f2b1e53a00bd6e5ff65.png)

Timer method works like a charm. 👍

 ![Screenshot 2023-12-22 at 20.00.45](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/4/54c6d660e541538d0e75d3fbc8d4140962638490.png)
