# \[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:** 9

<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, 2024, 3:38pm UTC](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018/164 "2024-10-22T15:38:15Z")

</div>

@Henk_Renting i think a script issue  
I’ll check!

---

<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, 2024, 7:13pm UTC](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018/165 "2024-10-22T19:13:33Z")

</div>

@Henk_Renting updated the scripts. Can you check again? 🙂

---

<div class="post-metadata">

**Author:** ![Henk\_Renting](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/henk_renting/32/87634_2.png) [@Henk\_Renting](https://community.homey.app/u/Henk_Renting)\
**Post date:** [October 22, 2024, 8:20pm UTC](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018/166 "2024-10-22T20:20:22Z")

</div>

Thanks @martijnpoppen for the quick response.  
Unfortunately; now I get multiple of these errors ☹ :

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/b/2bd206f8d611b5ca2c8a2adc5bc1a2b872e556b4.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:** [October 22, 2024, 8:25pm UTC](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018/167 "2024-10-22T20:25:04Z")

</div>

@Henk_Renting can you do a softrun true?

---

<div class="post-metadata">

**Author:** ![Henk\_Renting](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/henk_renting/32/87634_2.png) [@Henk\_Renting](https://community.homey.app/u/Henk_Renting)\
**Post date:** [October 23, 2024, 3:53pm UTC](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018/168 "2024-10-23T15:53:46Z")

</div>

Then I get this:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/3/234e517d44512331e15fa58b7fb63a2b0308e6ab.png)  
There’s a lot I can click to open. What would you like in particular?

---

<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 23, 2024, 4:00pm UTC](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018/169 "2024-10-23T16:00:33Z")

</div>

@Henk_Renting i also added that to the soft run false. Can you try that one again?

---

<div class="post-metadata">

**Author:** ![Henk\_Renting](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/henk_renting/32/87634_2.png) [@Henk\_Renting](https://community.homey.app/u/Henk_Renting)\
**Post date:** [October 23, 2024, 4:05pm UTC](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018/170 "2024-10-23T16:05:51Z")

</div>

I get many of these now (after copying the script from your Github again):

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/1/5176da196d536d6de4ecb5046a82df742a0bfb94.png)  
Feel free to contact me by PM if you prefer. 🙂

---

<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 23, 2024, 6:48pm UTC](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018/171 "2024-10-23T18:48:18Z")

</div>

Will do!

---

<div class="post-metadata">

**Author:** ![Sharkys](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sharkys/32/54029_2.png) [@Sharkys](https://community.homey.app/u/Sharkys)\
**Post date:** [October 25, 2024, 3:11pm UTC](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018/172 "2024-10-25T15:11:58Z")

</div>

FYI, just tested latest version, works flawless for me on HP23.

---

<div class="post-metadata">

**Author:** ![Mariomark1541](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mariomark1541/32/178160_2.png) [@Mariomark1541](https://community.homey.app/u/Mariomark1541)\
**Post date:** [December 7, 2024, 9:31pm UTC](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018/173 "2024-12-07T21:31:45Z")

</div>

I want to test it but how ? New to scripts

Have the device is but what do I need to copy form the script ?

---

<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 7, 2024, 9:33pm UTC](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018/174 "2024-12-07T21:33:31Z")

</div>

@Mariomark1541 Not sure what you mean, but the instructions are in the first post of this thread. and the first lines of the script also describe what you can do

---

<div class="post-metadata">

**Author:** ![Robin\_Blekemolen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robin_blekemolen/32/71025_2.png) [@Robin\_Blekemolen](https://community.homey.app/u/Robin_Blekemolen)\
**Post date:** [January 14, 2025, 9:06pm UTC](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018/175 "2025-01-14T21:06:52Z")

</div>

ha martijn, is there a way to find the old deleted (my case whatsapp) id? i reinstalled (and works 🙂 want to use the webapi playground tool

---

<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:** [January 14, 2025, 9:48pm UTC](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018/176 "2025-01-14T21:48:27Z")

</div>

@Robin_Blekemolen you can see the device ID in a broken flow card

---

<div class="post-metadata">

**Author:** ![Robin\_Blekemolen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robin_blekemolen/32/71025_2.png) [@Robin\_Blekemolen](https://community.homey.app/u/Robin_Blekemolen)\
**Post date:** [January 14, 2025, 9:57pm UTC](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018/177 "2025-01-14T21:57:00Z")

</div>

thnx found but when running script getting errors.

Failed to load resource: the server responded with a status of 404 (Not Found)Unhandled Promise Rejection: Error: Not Found: FlowCardAction with ID homey:device:aae91ca2-b2e6-4465-89bb-513150c24463:action\_send\_messageF

is with false

if i change true no errors but its not changed then

---

<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 15, 2025, 3:01am UTC](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018/178 "2025-01-15T03:01:34Z")

</div>

Afaik this is how an ID looks like:

> [@Robin\_Blekemolen](#):
>
> aae91ca2-b2e6-4465-89bb-513150c24463

You seem to have copied the complete text in the broken flowcard:

> [@Robin\_Blekemolen](#):
>
> homey:device:aae91ca2-b2e6-4465-89bb-513150c24463:action\_send\_messageF

---

<div class="post-metadata">

**Author:** ![sschot](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sschot/32/116924_2.png) [@sschot](https://community.homey.app/u/sschot)\
**Post date:** [January 18, 2025, 1:37pm UTC](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018/179 "2025-01-18T13:37:45Z")

</div>

Maybe a bit a bad question, but I wanna run the script [**fix-flows-by-id.js**], but I this will not work within Web API Playground.

I try to do in within Chrome, but I can not paste it, and do not get pasting fixed.

So my question, how can I run this script to update from old to new?

Thanks in advance and highly some advise requested!

Greetings Steven

---

<div class="post-metadata">

**Author:** ![Sharkys](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sharkys/32/54029_2.png) [@Sharkys](https://community.homey.app/u/Sharkys)\
**Post date:** [January 18, 2025, 3:47pm UTC](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018/180 "2025-01-18T15:47:18Z")

</div>

Prior to COPY, you click on RAW and copy pasted RAW data of the script, right ?

---

<div class="post-metadata">

**Author:** ![sschot](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sschot/32/116924_2.png) [@sschot](https://community.homey.app/u/sschot)\
**Post date:** [January 18, 2025, 9:03pm UTC](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018/181 "2025-01-18T21:03:21Z")

</div>

I have pasted the script within Homeyscript. Saved it. When I do run it as test, I see correct flows. But now I need to start the script. When I do rightclick start → nothing happened. I am compleet new to this matter. How do I run the script with the right output?

Thanks in advance

---

<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 18, 2025, 10:11pm UTC](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018/182 "2025-01-18T22:11:41Z")

</div>

Please read line 1.) from the first post again.  
(Homeyscript is never mentioned…).

---

<div class="post-metadata">

**Author:** ![sschot](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sschot/32/116924_2.png) [@sschot](https://community.homey.app/u/sschot)\
**Post date:** [January 18, 2025, 10:19pm UTC](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018/183 "2025-01-18T22:19:56Z")

</div>

> [@martijnpoppen](#):
>
> script based on ID

Ì do now run Homeyscript, using a advanced flow with code card  
Insert [**script based on ID**] flow  
Set this to false

And it works…

edit: if it could be smarter or faster, I am open

[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=8)

[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=10)
