# How to create a reusable piece of advanced flow?

**URL:** <https://community.homey.app/t/how-to-create-a-reusable-piece-of-advanced-flow/103693>\
**Category:** Questions & Help\
**Tags:** advancedflow\
**Created:** [February 10, 2024, 5:31pm UTC](https://community.homey.app/t/how-to-create-a-reusable-piece-of-advanced-flow/103693 "2024-02-10T17:31:14Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![guglez](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/guglez/32/97989_2.png) [@guglez](https://community.homey.app/u/guglez)\
**Post date:** [February 10, 2024, 5:31pm UTC](https://community.homey.app/t/how-to-create-a-reusable-piece-of-advanced-flow/103693/1 "2024-02-10T17:31:14Z")

</div>

Hi Everyone,

I want to create a flow which will describe the procedure of opening and closing my motorized window shade. I have 10 motorized windows and I do not want to create 10 similar flows for every window. Plus I’m planning to make some adjustments to my “procedure”. I would like to do the change in one place and not everywhere. At the end I want to say something like this:

please apply window closing “procedure” on device abc and xyz. Is it possible to do that in homey?

---

<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:** [February 10, 2024, 5:43pm UTC](https://community.homey.app/t/how-to-create-a-reusable-piece-of-advanced-flow/103693/2 "2024-02-10T17:43:03Z")

</div>

Well, if you use the apps Advanced Triggers and Device Capabilities. Than you have dynamic ways of setting devices.

---

<div class="post-metadata">

**Author:** ![guglez](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/guglez/32/97989_2.png) [@guglez](https://community.homey.app/u/guglez)\
**Post date:** [February 10, 2024, 6:51pm UTC](https://community.homey.app/t/how-to-create-a-reusable-piece-of-advanced-flow/103693/3 "2024-02-10T18:51:54Z")

</div>

> [@Arie\_J\_Godschalk](#):
>
> Advanced Triggers and Device Capabilities

I’m not getting how should I combine those two to achieve my goal. Could you please give me a hint?

---

<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:** [February 10, 2024, 7:32pm UTC](https://community.homey.app/t/how-to-create-a-reusable-piece-of-advanced-flow/103693/4 "2024-02-10T19:32:57Z")

</div>

With Device Capabilities, you can set any property of a device, by name if i remember correctly.

Well, with Advanced Triggers, you can create subroutines and pass device names.

---

<div class="post-metadata">

**Author:** ![guglez](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/guglez/32/97989_2.png) [@guglez](https://community.homey.app/u/guglez)\
**Post date:** [February 10, 2024, 8:24pm UTC](https://community.homey.app/t/how-to-create-a-reusable-piece-of-advanced-flow/103693/5 "2024-02-10T20:24:46Z")

</div>

As far as I can see I have to choose a specific device with Device Capabilities card. I can’t use wildcards or anything like that.

---

<div class="post-metadata">

**Author:** ![To\_Lou](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/to_lou/32/79159_2.png) [@To\_Lou](https://community.homey.app/u/To_Lou)\
**Post date:** [February 10, 2024, 10:08pm UTC](https://community.homey.app/t/how-to-create-a-reusable-piece-of-advanced-flow/103693/6 "2024-02-10T22:08:18Z")

</div>

Possibly use the \< group \> app and create flows for the groups?

---

<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:** [February 11, 2024, 5:37am UTC](https://community.homey.app/t/how-to-create-a-reusable-piece-of-advanced-flow/103693/7 "2024-02-11T05:37:17Z")

</div>

M, okay, i need to check, i thought i had that card implemented already. I’ll check this week.

---

<div class="post-metadata">

**Author:** ![ChrisG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/chrisg/32/8825_2.png) [@ChrisG](https://community.homey.app/u/ChrisG)\
**Post date:** [February 11, 2024, 10:02am UTC](https://community.homey.app/t/how-to-create-a-reusable-piece-of-advanced-flow/103693/8 "2024-02-11T10:02:31Z")

</div>

Hello gulgez

I control all my flows via the Advanced Triggers app and it works flawlessly. I have written various basic flows which I can then call up (analogous to events).

Example of my logger flow:

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