# \[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:** 1\
**Showing post:** 1

<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:** [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/1 "2022-06-23T12:20:57Z")

</div>

ℹ Also available as app: [[APP][Pro]Flow Converter](https://community.homey.app/t/app-pro-flow-converter/154906)

> 🚨⚠ **Use at own risk!** ⚠ 🚨

If you have a broken device which you want to replace or you have to fix flows for your device  
I made a script which can help with this.

**Instructions:**

1. Device ID you would like to update -

```js
- 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”.

```

1. Write down the Device ID
2. Remove the Device
3. Re-add the Device
4. Get the Device ID of the new paired device:

```js
- 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”.

```

1. Run this script in the **[WebAPI playground](https://tools.developer.homey.app/tools/api-playground)**: (multiple devices possible)

> - [**script based on ID**](https://gist.github.com/martijnpoppen/dcf0b8fd3f7fe63dec087c87dbc66090#file-fix-flows-by-id-js): **Recommended**
> - [**scripts based on device Name**](https://gist.github.com/martijnpoppen/dcf0b8fd3f7fe63dec087c87dbc66090#file-fix-flows-by-name-js) (Make sure to use unique device names!)

* * *

**Contributions**  
If you appreciate what I do, contribute to future development by making a [paypal contribution](https://www.paypal.me/martijnpoppen)  
or buy me a coffee on [Ko-Fi](https://ko-fi.com/martijnpoppen#checkoutModal) or [Bunq.me](https://bunq.me/MartijnPoppen)

[![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/9/2916364caa1239076c12be293d270d5980d9d272.png)](https://paypal.me/martijnpoppen) [![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/martijnpoppen#checkoutModal)[![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/4/8449771d527e7184562e1301d641dfc1e99a4261.png)](https://bunq.me/MartijnPoppen)

* * *

## 💻 Apps made by @martijnpoppen

See for more apps link below 👇🏻 or just open the pull down.

> [@Apps made by @martijnpoppen](https://community.homey.app/t/apps-made-by-martijnpoppen/85812/1):
>
> Click to expand

---

_[View the full topic](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018)._
