# How to add existing flow to a device?

**URL:** <https://community.homey.app/t/how-to-add-existing-flow-to-a-device/75188>\
**Category:** Questions & Help\
**Created:** [January 16, 2023, 9:16pm UTC](https://community.homey.app/t/how-to-add-existing-flow-to-a-device/75188 "2023-01-16T21:16:54Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![George\_Kvachadze](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/george_kvachadze/32/68397_2.png) [@George\_Kvachadze](https://community.homey.app/u/George_Kvachadze)\
**Post date:** [January 16, 2023, 9:16pm UTC](https://community.homey.app/t/how-to-add-existing-flow-to-a-device/75188/1 "2023-01-16T21:16:54Z")

</div>

Is not it possible to add a flow to a device from the list of already existing flows? The only option I see when adding flow to a device is to create/recreate a flow. But what if we want to add the same flow (created for another device) to different devices at the same time? Thx.

---

<div class="post-metadata">

**Author:** ![Niels\_van\_Dongen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/niels_van_dongen/32/71607_2.png) [@Niels\_van\_Dongen](https://community.homey.app/u/Niels_van_Dongen)\
**Post date:** [January 16, 2023, 9:37pm UTC](https://community.homey.app/t/how-to-add-existing-flow-to-a-device/75188/2 "2023-01-16T21:37:00Z")

</div>

You mean duplicate? Because that is available, you just need to switch up te devices you want. Flows stays the same.

Or isnt that what you mean?

---

<div class="post-metadata">

**Author:** ![George\_Kvachadze](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/george_kvachadze/32/68397_2.png) [@George\_Kvachadze](https://community.homey.app/u/George_Kvachadze)\
**Post date:** [January 16, 2023, 10:36pm UTC](https://community.homey.app/t/how-to-add-existing-flow-to-a-device/75188/3 "2023-01-16T22:36:28Z")

</div>

Hi Neils.  
Thank you for the reply.

Here is the case: I am adding new device ( motion sensor) and want to add already existing flow (from the list of flows), the one that is already assigned to another motion sensor. but i can only recreate flow again (when, and, then conditions).for this new device (do not see option to choose from existing flows).  
I’ve tried flow duplication, but it duplicates the flow and do not know how to assign it to a new device (how to switch devices).

---

<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:** [January 16, 2023, 11:26pm UTC](https://community.homey.app/t/how-to-add-existing-flow-to-a-device/75188/4 "2023-01-16T23:26:31Z")

</div>

When you replace a device with a similar one, you can replace it in your flows with this neat script:

> [@\[HOW-TO\]\[Pro\]\[Cloud\] - Tool to FIX (advanced) flows after removing and re-adding devices](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018):
>
> rotating_lightwarning Use at own risk! warning rotating_light Hi, So I just go a new house and wanted to make my Zigbee network a bit better by removing an re-adding my devices so I get a stable network. But the issue with this is you have to fix all your flows. (Ofcourse [Flow Checker App for Homey | Homey](https://homey.app/a/com.athom.flowchecker/) can indicate the broken flows) I made a small script which can help with fixing the flows. So what do you need: Device ID you would like to update - You can get this via t…

Hint: When you use zone activity in your flows, instead of the sensor flowcards, you can change, add, remove sensors without having to repair your flows.  
Motion- and contact sensors can activate zones.

> **[Using Zone Activity](https://support.homey.app/hc/en-us/articles/360026209853-Using-Zone-Activity-)**
>
> Zone Activity enables Homey users to view and respond to activity in their homes. For example, when someone enters the Hallway Zone, a motion sensor or door/contact sensor can detect this, making t...

---

<div class="post-metadata">

**Author:** ![Adrian\_Rockall](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adrian_rockall/32/13209_2.png) [@Adrian\_Rockall](https://community.homey.app/u/Adrian_Rockall)\
**Post date:** [January 17, 2023, 6:33am UTC](https://community.homey.app/t/how-to-add-existing-flow-to-a-device/75188/5 "2023-01-17T06:33:10Z")

</div>

I think you have your thinking back to front. Flows aren’t added to devices, devices are added to Flows.  
So if you want an identical set of actions to occur for a different device, you need to create a flow that references the new device.  
As already mentioned, you can duplicate a Flow and then replace any cards that reference the old device with the same action on the new device.

---

<div class="post-metadata">

**Author:** ![Cuprum](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/cuprum/32/41409_2.png) [@Cuprum](https://community.homey.app/u/Cuprum)\
**Post date:** [January 17, 2023, 7:18am UTC](https://community.homey.app/t/how-to-add-existing-flow-to-a-device/75188/6 "2023-01-17T07:18:17Z")

</div>

Yeah, it seems little misunderstanding here…  
For asked question the answers are given above - to copy a flow and change the device OR just change the device in current flow.

But what i want to add, is a little bit overall logic 😉 The devices are in flows in a specific (but not strongly determined) places. They may be a “when-”, “and-” or “then-” -devices. So, if You want to “add a flow to device”, then anyway You must specify _which_ of the devices in the flow. Ok, in other automation systems there may be also “device actions” - things to do when device for example changes. But this is a strongly fixed subset where device is always the “when-device”, and there the actions “script” can be assigned to device.

PS. If You have exactly similar things to do when two or more devices “happen”, then i personally recommend You to look at the advanced flows. There You can add both of Your motion sensors as a “when” devices and keep the following logic in one place instead of multiple ( of course, _if_ the following logic is same for both/all triggered sensors 😉 )

---

<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:** [January 17, 2023, 10:33am UTC](https://community.homey.app/t/how-to-add-existing-flow-to-a-device/75188/7 "2023-01-17T10:33:24Z")

</div>

# Well, actually, you can!

Use the [App Device Capabilitities](https://homey.app/nl-nl/app/nl.qluster-it.DeviceCapabilities/Device-Capabilities/).  
In the App settings, you can export (advanced) flows.  
Then press create TEF.  
Then click on import and Read.

Now you will get a list of devices, select the new device from the dropdown/list shown for the old device.  
Then press Update script and run that script in the dev (follow instructions).

Now you will have a duplicate from the flow in your root folder, with all old devices (and tags) replaced with the new devices.

# I use this to copy flows for all rooms that have the same setup (kids rooms).

Works great!

See here, i have documented everything well enough at all these links:  
General link:  
[The Flow Exchange(r) - Exchange Your Flows with Others! - Flows - Homey Community Forum](https://community.homey.app/t/the-flow-exchange-r-exchange-your-flows-with-others/68981)

More specific import link, and specificly what you need:

> [@The Flow Exchange(r) - Exchange Your Flows with Others!](https://community.homey.app/t/the-flow-exchange-r-exchange-your-flows-with-others/68981/3):
>
> How to Import an Exchanger File? Copy The Exchange File below, and paste it into the text field in the App Settings. H4sIAAAAAAACA41TyY7bMAz9lUDnKCPJ2uzbHNqiPU9PQRDQMuUY4yWwncwM0vx7qdQ5FMghJ4uLH/keyQs7seLCgpdS+YgcY/Rc29xxb7znURqLIAFd5lJezwr2Oja4+rVZ/RiqKRygfWfX65qdUziLVlYgLHcKKq6VCjw3ruQ2qkpYCGgqe4f5PbZvOM1szWaypnls+vqGBKzYXlhDTvDolDaChyparkUpOcQy51Z6m2VCZA4D/Z/Q9m8HXH1vh4/Vt09qqq9xpAiyYh5PuGYhVVVGl86j4FGg4tpkwH1J3Zlcos1VWYVcp7xPVmixZl+sUIK+A8Efhg6/ig56IOAiUh1CTy0ex6EeoetgbsKeONQU3/8js5+hXtgtA…

And as states:  
**This can also be used to copy/paste flows on your own Homey, and change devices, users, etc., in very fast way!**

* * *

EDIT:

The Flow Exchange(r) already works great for exporting en import between users, but using it only local, in my experience, works perfectly!

---

<div class="post-metadata">

**Author:** ![George\_Kvachadze](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/george_kvachadze/32/68397_2.png) [@George\_Kvachadze](https://community.homey.app/u/George_Kvachadze)\
**Post date:** [January 17, 2023, 2:28pm UTC](https://community.homey.app/t/how-to-add-existing-flow-to-a-device/75188/8 "2023-01-17T14:28:47Z")

</div>

Thank you everyone for your kind support.

I’m new to Homey, so I maybe did not understand the flow/device binding at first. But now, thanks to you all, I think everything is clear to me. For switching flows for one or two devices maybe it’s better to go through the duplication process and replace the device in the WHEN condition.  
The Device Capabilities application also seems worth a try.  
Appreciate all your help.

---

<div class="post-metadata">

**Author:** ![Niels\_van\_Dongen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/niels_van_dongen/32/71607_2.png) [@Niels\_van\_Dongen](https://community.homey.app/u/Niels_van_Dongen)\
**Post date:** [January 17, 2023, 4:51pm UTC](https://community.homey.app/t/how-to-add-existing-flow-to-a-device/75188/9 "2023-01-17T16:51:14Z")

</div>

Good luck, the community is there to help too.

With all the tips you received you should be able to do exactly what you want to do with the flows and devices.

---

<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:** [January 17, 2023, 5:58pm UTC](https://community.homey.app/t/how-to-add-existing-flow-to-a-device/75188/10 "2023-01-17T17:58:59Z")

</div>

Maybe not adding devices to Flows, just add them to Zones

1 or more Motion Sensors can make the Hallway active,  
1 or more Door Sensors (Contact Alarms) make the Hallway active,  
And add one or moet Ligths of Sockets with “Light Pluged in” as type  
One Flow for on, one for Off…

Ready… Never change this flow again, just add Lights, and sensor to Homey to a zone.  
in Share a Flow you can’t see the Zones:

See here:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/6/96128e62d04180d14fa3271056cba7ceba1b5066.png)
