# Question about my Flow

**URL:** <https://community.homey.app/t/question-about-my-flow/93994>\
**Category:** Questions & Help\
**Created:** [November 7, 2023, 7:37pm UTC](https://community.homey.app/t/question-about-my-flow/93994 "2023-11-07T19:37:21Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tamas\_Kovacs](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tamas_kovacs/32/80084_2.png) [@Tamas\_Kovacs](https://community.homey.app/u/Tamas_Kovacs)\
**Post date:** [November 7, 2023, 7:37pm UTC](https://community.homey.app/t/question-about-my-flow/93994/1 "2023-11-07T19:37:21Z")

</div>

Hi All!

I created a flow.  
The essence is that there’s a motion sensor in my living room with a _special solution._  
WHEN it turns on between 7 AM and 8 AM, THAN it turns on the home theater amplifier, AND lowers the volume, AND starts playing Jazzy online radio.  
My problem is that when the music starts (Folow stared) and the sensor triggers again (before 8 AM), the playback stops, it reconnects to the internet radio (for a few seconds), and then the radio starts playing again. (the flow triggred again i think)  
So, could you give me an idea of how to stop the flow once it has started on the same day?

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/b/6bff6ede827c1cabee84cc6e363c198eca576820.jpeg)

Thank You!

---

<div class="post-metadata">

**Author:** ![Rmb](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rmb/32/79135_2.png) [@Rmb](https://community.homey.app/u/Rmb)\
**Post date:** [November 7, 2023, 7:42pm UTC](https://community.homey.app/t/question-about-my-flow/93994/2 "2023-11-07T19:42:33Z")

</div>

You only turn it on, when it is off. So add an AND card which test it is off.

---

<div class="post-metadata">

**Author:** ![Tamas\_Kovacs](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tamas_kovacs/32/80084_2.png) [@Tamas\_Kovacs](https://community.homey.app/u/Tamas_Kovacs)\
**Post date:** [November 7, 2023, 7:53pm UTC](https://community.homey.app/t/question-about-my-flow/93994/3 "2023-11-07T19:53:08Z")

</div>

I don’t understand exactly what you mean.  
My amplifier doesn’t turn off and then on again; it’s just that the casting restarts (reconnects).

I see, if I understand correctly your words, the situation will be the same because if the motion sensor is “turned off” again, the casting process restarts.

---

<div class="post-metadata">

**Author:** ![Rmb](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rmb/32/79135_2.png) [@Rmb](https://community.homey.app/u/Rmb)\
**Post date:** [November 7, 2023, 8:03pm UTC](https://community.homey.app/t/question-about-my-flow/93994/4 "2023-11-07T20:03:43Z")

</div>

Because the flow is started again, the cast is also started again. So the AND card prevents the flow to start again.

---

<div class="post-metadata">

**Author:** ![Tamas\_Kovacs](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tamas_kovacs/32/80084_2.png) [@Tamas\_Kovacs](https://community.homey.app/u/Tamas_Kovacs)\
**Post date:** [November 7, 2023, 8:06pm UTC](https://community.homey.app/t/question-about-my-flow/93994/5 "2023-11-07T20:06:30Z")

</div>

I’m sorry for being so clueless, but where should I put the ‘and card,’ and which one should I use  
🙄

---

<div class="post-metadata">

**Author:** ![Rmb](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rmb/32/79135_2.png) [@Rmb](https://community.homey.app/u/Rmb)\
**Post date:** [November 7, 2023, 8:12pm UTC](https://community.homey.app/t/question-about-my-flow/93994/6 "2023-11-07T20:12:32Z")

</div>

Before “Onkyo switch on” you should add the card “Onkyo is on” and use the lower connection point (NOT true) to connect to the next card.

---

<div class="post-metadata">

**Author:** ![Mike1233](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mike1233/32/20991_2.png) [@Mike1233](https://community.homey.app/u/Mike1233)\
**Post date:** [November 7, 2023, 10:20pm UTC](https://community.homey.app/t/question-about-my-flow/93994/7 "2023-11-07T22:20:18Z")

</div>

Something like this.  
If Onkyo already is on the flow will stop and the casting will not restart.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/a/da3f60847aa8727957c52d5d52ff778b132c00e2.png)

---

<div class="post-metadata">

**Author:** ![Tamas\_Kovacs](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tamas_kovacs/32/80084_2.png) [@Tamas\_Kovacs](https://community.homey.app/u/Tamas_Kovacs)\
**Post date:** [November 8, 2023, 6:27am UTC](https://community.homey.app/t/question-about-my-flow/93994/8 "2023-11-08T06:27:59Z")

</div>

Thank you very much, but I’m not able to do it. It’s likely that I’m not interpreting what you’re writing correctly. I’m very much a beginner, and I don’t even understand the ‘Text Tag’ card, but I did it as you can see… but the cast starts over, unfortunately.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/5/a525062226008120ae3856bec10ec46490243223.jpeg)

I tried this later as well, and I thought that the flow should stop if the Onkyo is turned on, but for some reason, it doesn’t stop.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/8/681253f44bf3b5de8cadbe71599fdbdc68382c3d.jpeg)

---

<div class="post-metadata">

**Author:** ![Mike1233](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mike1233/32/20991_2.png) [@Mike1233](https://community.homey.app/u/Mike1233)\
**Post date:** [November 8, 2023, 6:36am UTC](https://community.homey.app/t/question-about-my-flow/93994/9 "2023-11-08T06:36:30Z")

</div>

You only have to add the part off the flow with " Is On, yellow Line, Turn On". after the time card.  
So when the flow starts, the time is in between x and y, and the Onkyo is not on, then turn it on.  
If now the flow starts again, and the time is between x and y, the Onkyo is on, that is now the bleu line, but there is no bleu line so the flow stops at that point.

---

<div class="post-metadata">

**Author:** ![Tamas\_Kovacs](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tamas_kovacs/32/80084_2.png) [@Tamas\_Kovacs](https://community.homey.app/u/Tamas_Kovacs)\
**Post date:** [November 8, 2023, 6:50am UTC](https://community.homey.app/t/question-about-my-flow/93994/10 "2023-11-08T06:50:58Z")

</div>

Thank you very much, Mike, for your patience!  
It works perfectly this way.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/9/794a57ddd3ea621c5f143ae5452904ceadbfc77e.png)

---

<div class="post-metadata">

**Author:** ![Tamas\_Kovacs](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tamas_kovacs/32/80084_2.png) [@Tamas\_Kovacs](https://community.homey.app/u/Tamas_Kovacs)\
**Post date:** [November 8, 2023, 7:08am UTC](https://community.homey.app/t/question-about-my-flow/93994/11 "2023-11-08T07:08:54Z")

</div>

I have one more question regarding this.  
How can I make sure that this Flow only runs once a day?

So if it started in the morning at 7:00, but I don’t want the music to play, and I turn off the Onkyo, but it’s still before 8:00, I don’t want it to start again. 🙂

---

<div class="post-metadata">

**Author:** ![Henrik\_Johnsson](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/henrik_johnsson/32/13707_2.png) [@Henrik\_Johnsson](https://community.homey.app/u/Henrik_Johnsson)\
**Post date:** [November 8, 2023, 8:26am UTC](https://community.homey.app/t/question-about-my-flow/93994/12 "2023-11-08T08:26:01Z")

</div>

One way would be to have this flow disable itself, you can add a card for that in parallel with the card that start casting for instance. Then you can actually remove the test if Onkyo is turned on, because this flow will not be trigged again.  
You could do everything in a single flow, but it will be more robust I believe to have a second flow that is run at a specific time of day, for instance 6:45, that enable this flow again.

---

<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:** [November 8, 2023, 7:21pm UTC](https://community.homey.app/t/question-about-my-flow/93994/13 "2023-11-08T19:21:57Z")

</div>

Or, when you don’t like disabling flows,  
add a Y/N variable, let’s call it Variable\_A. Set it to true when the flow gets triggered.  
Then add it as a condition, like “Variable\_A is false” and connect it using the blue output line between “the time is x” and “Onkyo is on”  
At midnight, or at 4A.M. trigger a flow which sets Variable\_A to false again.

I know this is easier to explain / understand by a flow example, but no computer here…

---

<div class="post-metadata">

**Author:** ![Mike1233](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mike1233/32/20991_2.png) [@Mike1233](https://community.homey.app/u/Mike1233)\
**Post date:** [November 8, 2023, 8:18pm UTC](https://community.homey.app/t/question-about-my-flow/93994/14 "2023-11-08T20:18:35Z")

</div>

@Tamas_Kovacs I have made a variable ja/nee (Yes/No)  
And if i turn on my light between 6:00 and 7:15 then another light wil also go on at 100%.  
If i turn the lights of and turn them back on between 6:00 and 7:15 only one light will turn on because the variable is switched to Nee.  
When it is 7:16 i turn the variable back to Ja.

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

---

<div class="post-metadata">

**Author:** ![Tamas\_Kovacs](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tamas_kovacs/32/80084_2.png) [@Tamas\_Kovacs](https://community.homey.app/u/Tamas_Kovacs)\
**Post date:** [November 8, 2023, 8:31pm UTC](https://community.homey.app/t/question-about-my-flow/93994/15 "2023-11-08T20:31:52Z")

</div>

Thank you Mike!
