# \[HOW-TO\]\[Pro\]\[Cloud\] - Tool to FIX (advanced) flows after removing and re-adding devices

**URL:** <https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018>\
**Category:** Tutorials\
**Tags:** zigbee, flow, homey-pro, homey-bridge, howto\
**Created:** [June 23, 2022, 12:20pm UTC](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018 "2022-06-23T12:20:57Z")\
**Posts on this page:** 20\
**Page:** 12

<div class="post-metadata">

**Author:** ![Greg\_Veres](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/greg_veres/32/113389_2.png) [@Greg\_Veres](https://community.homey.app/u/Greg_Veres)\
**Post date:** [May 30, 2025, 6:04pm UTC](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018/224 "2025-05-30T18:04:17Z")

</div>

I am trying to run this HomeyScript:

> [@\[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…

I have installed HomeyScript and I have added a script file and pasted in the javascript from the link in the thread and saved the file.

At the top of the screen there are two buttons: Save and Test.

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

When I run the script in "softRun’ mode so that it doesn’t make any changes, I see the output and the script is run. But when I change softRun to true and press the test button, or click on the three dot icon beside the script name and select “Start”, the script appears to run, but nothing happens.

I am wondering if I am in some sort of “safe mode” that doesn’t let a HomeyScript modify the config and that’s why the “run” button is labelled “Test”.

Am I missing something?

---

<div class="post-metadata">

**Author:** ![martijnpoppen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/martijnpoppen/32/84849_2.png) [@martijnpoppen](https://community.homey.app/u/martijnpoppen)\
**Post date:** [May 30, 2025, 6:05pm UTC](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018/225 "2025-05-30T18:05:48Z")

</div>

@Greg_Veres follow the instructions. It’s not a homey script

---

<div class="post-metadata">

**Author:** ![Pyrohov\_Dmytro](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pyrohov_dmytro/32/123475_2.png) [@Pyrohov\_Dmytro](https://community.homey.app/u/Pyrohov_Dmytro)\
**Post date:** [September 24, 2025, 7:24am UTC](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018/226 "2025-09-24T07:24:21Z")

</div>

```auto
Hello. Friends, could you please help me? I have two Homeу Pro 2023. On one Homey, I have a lot of flow control with the Gledopto GL-C-008P RGB-CCT LED Controller Mix Pro Zigbee controller. I bought a new Homey and new Gledopto controllers of the same model with the same settings, and I want to transfer all the flow control to the new Homey. I made backups from the old Homey and transferred everything to the new one, but I can't seem to replace the devices in the flow control.Can anyone help me with this? I need to duplicate everything I have on my old Homey and transfer it to a new Homey with identical hardware. Thanks
I follow the instructions through tools.developer.homey.app, the script works, but there is no result (( I changed the softRun to true and false... it didn't help... don't judge me too harshly, I'm just learning)

```

 ![Снимок экрана 2025-09-24 094828](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/5/1577720db41279fa4eee5df8539e993d9431aaaf.png)

---

<div class="post-metadata">

**Author:** ![martijnpoppen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/martijnpoppen/32/84849_2.png) [@martijnpoppen](https://community.homey.app/u/martijnpoppen)\
**Post date:** [September 24, 2025, 8:24am UTC](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018/228 "2025-09-24T08:24:36Z")

</div>

@Pyrohov_Dmytro what is the log in the console?

---

<div class="post-metadata">

**Author:** ![Pyrohov\_Dmytro](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pyrohov_dmytro/32/123475_2.png) [@Pyrohov\_Dmytro](https://community.homey.app/u/Pyrohov_Dmytro)\
**Post date:** [September 24, 2025, 8:57am UTC](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018/229 "2025-09-24T08:57:12Z")

</div>

Hi Martin, thanks for the quick response. Did I understand you correctly? Homescreen displays a list of all flows associated with the device I’m trying to replace.

 ![Снимок экрана 2025-09-24 103736](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/3/d3508eb03b89c4c4432dee813894165ba7c6320f.png)  
 ![Снимок экрана 2025-09-24 103918](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/0/c0c0bba86a6b56a04f3c59529beb4f8f385b6a7d.png)

---

<div class="post-metadata">

**Author:** ![Rudi\_Hendrix](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rudi_hendrix/32/31931_2.png) [@Rudi\_Hendrix](https://community.homey.app/u/Rudi_Hendrix)\
**Post date:** [September 24, 2025, 10:37am UTC](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018/230 "2025-09-24T10:37:55Z")

</div>

If you run it like this “softrun” is set to true. I think in order to actually have effect you need to set that to false

---

<div class="post-metadata">

**Author:** ![martijnpoppen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/martijnpoppen/32/84849_2.png) [@martijnpoppen](https://community.homey.app/u/martijnpoppen)\
**Post date:** [September 24, 2025, 11:17am UTC](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018/231 "2025-09-24T11:17:33Z")

</div>

@Pyrohov_Dmytro as far as i see there’s nothing to replace. Otherwise you would see `Would update advanced flow xxx with new cards:`

are both ids on the same Homey ? As you mentioned you have 2 homeys.

---

<div class="post-metadata">

**Author:** ![Pyrohov\_Dmytro](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pyrohov_dmytro/32/123475_2.png) [@Pyrohov\_Dmytro](https://community.homey.app/u/Pyrohov_Dmytro)\
**Post date:** [September 24, 2025, 12:39pm UTC](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018/232 "2025-09-24T12:39:59Z")

</div>

Hi. I tried changing both the false and the true, to no avail.

---

<div class="post-metadata">

**Author:** ![Pyrohov\_Dmytro](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pyrohov_dmytro/32/123475_2.png) [@Pyrohov\_Dmytro](https://community.homey.app/u/Pyrohov_Dmytro)\
**Post date:** [September 24, 2025, 12:42pm UTC](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018/233 "2025-09-24T12:42:42Z")

</div>

Absolutely right. Both IDs are on two Homeys

---

<div class="post-metadata">

**Author:** ![Pyrohov\_Dmytro](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pyrohov_dmytro/32/123475_2.png) [@Pyrohov\_Dmytro](https://community.homey.app/u/Pyrohov_Dmytro)\
**Post date:** [September 24, 2025, 1:52pm UTC](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018/234 "2025-09-24T13:52:26Z")

</div>

Guys, thank you so much to everyone who responded. Everything works, and I really did need to change softrun false. I guess I’m just confused, although it turned out to be very simple. Special thanks to you, Martin, for the awesome development. All the best to everyone.

---

<div class="post-metadata">

**Author:** ![martijnpoppen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/martijnpoppen/32/84849_2.png) [@martijnpoppen](https://community.homey.app/u/martijnpoppen)\
**Post date:** [September 24, 2025, 5:23pm UTC](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018/235 "2025-09-24T17:23:57Z")

</div>

@Pyrohov_Dmytro glad it works!

---

<div class="post-metadata">

**Author:** ![Frekel](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/frekel/32/4983_2.png) [@Frekel](https://community.homey.app/u/Frekel)\
**Post date:** [October 22, 2025, 8:42am UTC](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018/236 "2025-10-22T08:42:22Z")

</div>

> [@martijnpoppen](#):
>
> ```auto
> const searchname = "devicenamehere";
> Homey.devices.getDevices().then(devices => Object.values(devices).filter(device => device.name.toLowerCase().includes(searchname.toLowerCase())).map(device => ({ id: device.id, name: device.name })));
> 
> ```

@martijnpoppen This is a life saver!!! I had to remove my Whatsapp device (tried to repair a broken device due to the AWS outage and failed ☹ ) and all my flows failed due to have a new device id. This script jut fixed everything!

😍 😍 😍 😍 😍 😍

---

<div class="post-metadata">

**Author:** ![martijnpoppen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/martijnpoppen/32/84849_2.png) [@martijnpoppen](https://community.homey.app/u/martijnpoppen)\
**Post date:** [October 22, 2025, 8:53am UTC](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018/237 "2025-10-22T08:53:52Z")

</div>

@Frekel Thanks! 😃

---

<div class="post-metadata">

**Author:** ![Seinuh](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/seinuh/32/16357_2.png) [@Seinuh](https://community.homey.app/u/Seinuh)\
**Post date:** [October 24, 2025, 11:39am UTC](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018/238 "2025-10-24T11:39:14Z")

</div>

Best WhatsApp repair option @martijnpoppen 💯💯💯

---

<div class="post-metadata">

**Author:** ![martijnpoppen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/martijnpoppen/32/84849_2.png) [@martijnpoppen](https://community.homey.app/u/martijnpoppen)\
**Post date:** [October 31, 2025, 7:38pm UTC](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018/239 "2025-10-31T19:38:34Z")

</div>

# UPDATE:

- Some flow couldn’t be fixed due to some changes in the API. This has been resolved.

---

<div class="post-metadata">

**Author:** ![Josef\_PP](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/josef_pp/32/120805_2.png) [@Josef\_PP](https://community.homey.app/u/Josef_PP)\
**Post date:** [November 21, 2025, 8:29am UTC](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018/240 "2025-11-21T08:29:37Z")

</div>

worked perfect.  
I use it in case of token loss at NUKI.  
Joe

---

<div class="post-metadata">

**Author:** ![MrWedel](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mrwedel/32/47786_2.png) [@MrWedel](https://community.homey.app/u/MrWedel)\
**Post date:** [December 2, 2025, 3:44pm UTC](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018/241 "2025-12-02T15:44:22Z")

</div>

ABSOLUTELY a life-saver! I had a super-complicated advanced flow for my Sonos speaker and a IKEA remote control and it worked flawlessly! THANKS! You saved me probably a day of work and a lot of agony!!

---

<div class="post-metadata">

**Author:** ![martijnpoppen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/martijnpoppen/32/84849_2.png) [@martijnpoppen](https://community.homey.app/u/martijnpoppen)\
**Post date:** [December 2, 2025, 4:04pm UTC](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018/242 "2025-12-02T16:04:15Z")

</div>

@MrWedel Glad to hear! 😃

---

<div class="post-metadata">

**Author:** ![MrWedel](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mrwedel/32/47786_2.png) [@MrWedel](https://community.homey.app/u/MrWedel)\
**Post date:** [December 2, 2025, 4:08pm UTC](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018/243 "2025-12-02T16:08:54Z")

</div>

What do you like that crazy one? 🙂

 ![346916D9-20E5-4631-84B0-3273E7899268](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/b/bbe196c070750e110ae62fc85ce981287a4c5897.jpeg)

 ![Skärmavbild 2025-12-02 kl. 08.37.35](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/6/966e552e21c77e3f5c4eb81ef7ef0ca2a1ec92b0.png)

---

<div class="post-metadata">

**Author:** ![martijnpoppen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/martijnpoppen/32/84849_2.png) [@martijnpoppen](https://community.homey.app/u/martijnpoppen)\
**Post date:** [December 2, 2025, 4:33pm UTC](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018/244 "2025-12-02T16:33:08Z")

</div>

@MrWedel oh wow, really nice! Can imagine you didn’t want to build that from scratch again 😛

[Previous page](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018.md?page=11)

[Next page](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018.md?page=13)
