# \[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:** 11\
**Page:** 13

<div class="post-metadata">

**Author:** ![Jonathan\_Draper](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jonathan_draper/32/33978_2.png) [@Jonathan\_Draper](https://community.homey.app/u/Jonathan_Draper)\
**Post date:** [December 18, 2025, 9:21am UTC](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018/245 "2025-12-18T09:21:03Z")

</div>

@martijnpoppen Since I can imagine a lot of people might be using this script soon (with the arrival of Homey SHS with no migration option), I thought maybe it’s worth updating the post at the top to show an easier way to get the IDs for each device at steps 1 and 5. Go to the Homey web app \> Devices \> Right click on the device to show context menu \> hold down Alt / option key on keyboard \> Select “Copy ID”.

---

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

</div>

@Jonathan_Draper will do!

---

<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 9, 2026, 5:02pm UTC](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018/247 "2026-01-09T17:02:52Z")

</div>

Hi Martijn!

Would it be possible to replace moods as well? (asking for a friend)  
I know these are not devices, but they do have an ID 😬

I just gave it a go, but only the first time during a softrun it ‘looked like’ it worked: it found the correct flow and the ‘old’ mood ID was found

 ![569](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/4/f4974834636a5e175533bff3392216e9ce30465b.jpeg)

But any run or softrun tests afterwards only showed  
`-------------------------------------` as result:

 ![566](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/b/1bf24b19823b923d1b259dc0d96121f167c9e6c4.jpeg)

I switched the old & new ID’s a few times to no avail.

I found the Mood ID’s by executing `Homey.moods.getMoods();` in the playground

 ![560](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/2/f2cc5088568faea3a200e842eb6cd91ce209271d.jpeg)

Cheers,  
Peet

---

<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 9, 2026, 5:27pm UTC](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018/248 "2026-01-09T17:27:59Z")

</div>

Hey @Peter_Kawa  
Hmm I think that might work. Will check !

---

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

</div>

Thanks again for this script! Today I changed all of my scripts to use the devices added through the new Tuya app rather than the old Tuya Cloud app. This is such a breeze with this script!

---

<div class="post-metadata">

**Author:** ![HansVee](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/hansvee/32/8355_2.png) [@HansVee](https://community.homey.app/u/HansVee)\
**Post date:** [February 9, 2026, 9:03pm UTC](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018/250 "2026-02-09T21:03:09Z")

</div>

What a life-saver, had to rebuild my z-wave network and your script saved me a lot of time! I have spirit z-wave TRVs that sometimes need to be re-included, so this is going to help me in the future as well. Thanks for sharing your 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:** [February 10, 2026, 9:18am UTC](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018/251 "2026-02-10T09:18:28Z")

</div>

Thanks @HansVee  
And thanks a lot for your kind donation! 🙏

---

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

</div>

ℹ Now this is also available as a app: [[APP][Pro]Flow Converter](https://community.homey.app/t/app-pro-flow-converter/154906) !  
credits to @late4marshmellow

---

<div class="post-metadata">

**Author:** ![Ralf\_Huelsmann](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ralf_huelsmann/32/159889_2.png) [@Ralf\_Huelsmann](https://community.homey.app/u/Ralf_Huelsmann)\
**Post date:** [May 16, 2026, 9:52pm UTC](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018/253 "2026-05-16T21:52:12Z")

</div>

I get the approach.  
Pretty sure (you never know) I did follow the rules.  
No errors (..request took xy ms).

No success.  
Homey Pro (2026)  
Version 13.1.5

However, maybe a Version specific thing.

Scrolling in the feed, I saw [[APP][Pro]Flow Converter - Apps - Homey Community Forum](https://community.homey.app/t/app-pro-flow-converter/154906) - which did it with not trouble.

Can only thank both authors!

Cheers,  
Ralf

---

<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 16, 2026, 10:42pm UTC](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018/254 "2026-05-16T22:42:54Z")

</div>

@Ralf_Huelsmann thanks a lot for your kind donation! 🙏

With the script it’s automatically set to soft run  
Not sure if you changed that while running it?

---

<div class="post-metadata">

**Author:** ![Ralf\_Huelsmann](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ralf_huelsmann/32/159889_2.png) [@Ralf\_Huelsmann](https://community.homey.app/u/Ralf_Huelsmann)\
**Post date:** [May 16, 2026, 10:44pm UTC](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018/255 "2026-05-16T22:44:37Z")

</div>

I did, as someone with IT background usualy does:

- soft run first
- no errors?
- “hard” run

Works like a charm.

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