# Flow with function that repeats

**URL:** <https://community.homey.app/t/flow-with-function-that-repeats/119581>\
**Category:** Questions & Help\
**Tags:** flow\
**Created:** [November 2, 2024, 2:59pm UTC](https://community.homey.app/t/flow-with-function-that-repeats/119581 "2024-11-02T14:59:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Morten\_Binding](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/morten_binding/32/80103_2.png) [@Morten\_Binding](https://community.homey.app/u/Morten_Binding)\
**Post date:** [November 2, 2024, 2:59pm UTC](https://community.homey.app/t/flow-with-function-that-repeats/119581/1 "2024-11-02T14:59:27Z")

</div>

I want to make a flow that keeps repeating itself (sending the same voice message to a speaker) until a button is pressed. Can anyone help with this.

---

<div class="post-metadata">

**Author:** ![Dijker](https://avatars.discourse-cdn.com/v4/letter/d/b9bd4f/32.png) [@Dijker](https://community.homey.app/u/Dijker)\
**Post date:** [November 2, 2024, 3:15pm UTC](https://community.homey.app/t/flow-with-function-that-repeats/119581/2 "2024-11-02T15:15:11Z")

</div>

Flow named: Loop  
WHEN: This flow is started  
AND: Switch is ON  
THEN:

1. Play MP3 on fe Sonos
2. Start a Flow “Loop” delayed with 5 seconds.

---

<div class="post-metadata">

**Author:** ![DirkH](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkh/32/78952_2.png) [@DirkH](https://community.homey.app/u/DirkH)\
**Post date:** [November 3, 2024, 6:20pm UTC](https://community.homey.app/t/flow-with-function-that-repeats/119581/3 "2024-11-03T18:20:47Z")

</div>

There are many ways to create loops. Some examples are in the discussion:  
[How o create a Loop?](https://community.homey.app/t/how-to-create-a-loop/97938)  
Or you search or loop or recursive.  
Have fun
