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

<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:** [March 9, 2023, 8:36am UTC](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018/82 "2023-03-09T08:36:02Z")

</div>

@Sharkys Ah i understand.  
so indeed the new FlowCardAction is different from the old one, that’s why it’s breaking as it is a “broken” flowcard and that’s not possible to create.

It might be possible to skip those. but it’s not possible change them

---

<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:** [March 9, 2023, 8:37am UTC](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018/83 "2023-03-09T08:37:18Z")

</div>

So basically only having previous app installed still might work, right ?

---

<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:** [March 9, 2023, 8:38am UTC](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018/84 "2023-03-09T08:38:46Z")

</div>

No it means that flowcards should exist on the new APP.

So for example :

the old app has flowcard A and C

the new app has flowcard B and C

Then it will throw an error on FlowCard A as that doesn’t exist in the new app, but it tries to fix that ID

---

<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:** [March 9, 2023, 8:51am UTC](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018/86 "2023-03-09T08:51:47Z")

</div>

Hm, because I didn’t understand what you mean exactly, I tried that anyway 😉

So in this case, it’s about Roborock app (abanoned) and Xiaomi Mi Home app (full rewrite) - **and I was able to transfer/migrate my flows.**

_With previous app disabled :_

 ![obrazek](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/6/86eaf5811e9fc0d1e012d0e1f8096d3ee936f8a0.jpeg)

_With previous app enabled and still working :_

 ![picture](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/4/54ff08402f3e79a80cc097269d42a31fd2b7c087.png)

And it somehow corresponds, I still have two flows not migrated - example OLD and NEW one :

![picture](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/7/97d2c0992a713750409ab7e1658e3c6fa0a92477.png)

So partial success 😉

---

<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:** [March 9, 2023, 8:58am UTC](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018/87 "2023-03-09T08:58:56Z")

</div>

I’ll have a look if I can update this somehow 😛

---

<div class="post-metadata">

**Author:** ![Stanley\_Oei](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/stanley_oei/32/16795_2.png) [@Stanley\_Oei](https://community.homey.app/u/Stanley_Oei)\
**Post date:** [March 25, 2023, 11:10pm UTC](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018/88 "2023-03-25T23:10:02Z")

</div>

If i run this, nothing happens (no response?). Is this working for the Homey Pro 2023 as well?

---

<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:** [March 26, 2023, 6:26am UTC](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018/89 "2023-03-26T06:26:34Z")

</div>

> [@Stanley\_Oei](#):
>
> If i run this, nothing happens (no response?

Checkout the Console…there you will see what is happening.

> [@martijnpoppen](#):
>
> To open console: press Ctrl + Shift + J (or Cmd + Shift + J on a Mac).

Also you set softRun to FALSE or TRUE ? If you are using the script first time, highly recommended to first check out what it is doing (having softRUN set to TRUE)

---

<div class="post-metadata">

**Author:** ![Stanley\_Oei](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/stanley_oei/32/16795_2.png) [@Stanley\_Oei](https://community.homey.app/u/Stanley_Oei)\
**Post date:** [March 26, 2023, 7:03am UTC](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018/90 "2023-03-26T07:03:20Z")

</div>

This is the console output.  
There is no response coming at all, like when it does when for example running:  
Homey.users.getUserMe();

```auto
type or paVM28:33 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'replace')
    at eval (eval at <anonymous> (index.js:62:18), <anonymous>:33:41)
    at Array.forEach (<anonymous>)
    at eval (eval at <anonymous> (index.js:62:18), <anonymous>:32:19)
    at Array.forEach (<anonymous>)
    at main (eval at <anonymous> (index.js:62:18), <anonymous>:12:26)
    at async Promise.all (index 0)
eval @ VM28:33
eval @ VM28:32
main @ VM28:12
await in main (async)
eval @ VM28:85
(anonymous) @ index.js:62
Promise.then (async)
(anonymous) @ index.js:60
PageToolsAPIPlayground.handleRun @ index.js:59
Ve @ react-dom.production.min.js:52
Xe @ react-dom.production.min.js:52
(anonymous) @ react-dom.production.min.js:53
jr @ react-dom.production.min.js:100
Ar @ react-dom.production.min.js:101
(anonymous) @ react-dom.production.min.js:113
De @ react-dom.production.min.js:292
(anonymous) @ react-dom.production.min.js:50
Nr @ react-dom.production.min.js:105
Qt @ react-dom.production.min.js:75
Jt @ react-dom.production.min.js:74
t.unstable_runWithPriority @ scheduler.production.min.js:18
Go @ react-dom.production.min.js:122
Ie @ react-dom.production.min.js:292
Kt @ react-dom.production.min.js:73
VM28:47 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'replace')
    at eval (eval at <anonymous> (index.js:62:18), <anonymous>:47:44)
    at Array.forEach (<anonymous>)
    at eval (eval at <anonymous> (index.js:62:18), <anonymous>:46:22)
    at Array.forEach (<anonymous>)
    at main (eval at <anonymous> (index.js:62:18), <anonymous>:12:26)
    at async Promise.all (index 0)
eval @ VM28:47
eval @ VM28:46
main @ VM28:12
await in main (async)
eval @ VM28:85
(anonymous) @ index.js:62
Promise.then (async)
(anonymous) @ index.js:60
PageToolsAPIPlayground.handleRun @ index.js:59
Ve @ react-dom.production.min.js:52
Xe @ react-dom.production.min.js:52
(anonymous) @ react-dom.production.min.js:53
jr @ react-dom.production.min.js:100
Ar @ react-dom.production.min.js:101
(anonymous) @ react-dom.production.min.js:113
De @ react-dom.production.min.js:292
(anonymous) @ react-dom.production.min.js:50
Nr @ react-dom.production.min.js:105
Qt @ react-dom.production.min.js:75
Jt @ react-dom.production.min.js:74
t.unstable_runWithPriority @ scheduler.production.min.js:18
Go @ react-dom.production.min.js:122
Ie @ react-dom.production.min.js:292
Kt @ react-dom.production.min.js:73
6VM28:33 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'replace')
    at eval (eval at <anonymous> (index.js:62:18), <anonymous>:33:41)
    at Array.forEach (<anonymous>)
    at eval (eval at <anonymous> (index.js:62:18), <anonymous>:32:19)
    at Array.forEach (<anonymous>)
    at main (eval at <anonymous> (index.js:62:18), <anonymous>:12:26)
    at async Promise.all (index 0)
eval @ VM28:33
eval @ VM28:32
main @ VM28:12
await in main (async)
eval @ VM28:85
(anonymous) @ index.js:62
Promise.then (async)
(anonymous) @ index.js:60
PageToolsAPIPlayground.handleRun @ index.js:59
Ve @ react-dom.production.min.js:52
Xe @ react-dom.production.min.js:52
(anonymous) @ react-dom.production.min.js:53
jr @ react-dom.production.min.js:100
Ar @ react-dom.production.min.js:101
(anonymous) @ react-dom.production.min.js:113
De @ react-dom.production.min.js:292
(anonymous) @ react-dom.production.min.js:50
Nr @ react-dom.production.min.js:105
Qt @ react-dom.production.min.js:75
Jt @ react-dom.production.min.js:74
t.unstable_runWithPriority @ scheduler.production.min.js:18
Go @ react-dom.production.min.js:122
Ie @ react-dom.production.min.js:292
Kt @ react-dom.production.min.js:73
VM28:47 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'replace')
    at eval (eval at <anonymous> (index.js:62:18), <anonymous>:47:44)
    at Array.forEach (<anonymous>)
    at eval (eval at <anonymous> (index.js:62:18), <anonymous>:46:22)
    at Array.forEach (<anonymous>)
    at main (eval at <anonymous> (index.js:62:18), <anonymous>:12:26)
    at async Promise.all (index 0)
eval @ VM28:47
eval @ VM28:46
main @ VM28:12
await in main (async)
eval @ VM28:85
(anonymous) @ index.js:62
Promise.then (async)
(anonymous) @ index.js:60
PageToolsAPIPlayground.handleRun @ index.js:59
Ve @ react-dom.production.min.js:52
Xe @ react-dom.production.min.js:52
(anonymous) @ react-dom.production.min.js:53
jr @ react-dom.production.min.js:100
Ar @ react-dom.production.min.js:101
(anonymous) @ react-dom.production.min.js:113
De @ react-dom.production.min.js:292
(anonymous) @ react-dom.production.min.js:50
Nr @ react-dom.production.min.js:105
Qt @ react-dom.production.min.js:75
Jt @ react-dom.production.min.js:74
t.unstable_runWithPriority @ scheduler.production.min.js:18
Go @ react-dom.production.min.js:122
Ie @ react-dom.production.min.js:292
Kt @ react-dom.production.min.js:73
2VM28:33 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'replace')
    at eval (eval at <anonymous> (index.js:62:18), <anonymous>:33:41)
    at Array.forEach (<anonymous>)
    at eval (eval at <anonymous> (index.js:62:18), <anonymous>:32:19)
    at Array.forEach (<anonymous>)
    at main (eval at <anonymous> (index.js:62:18), <anonymous>:12:26)
    at async Promise.all (index 0)
eval @ VM28:33
eval @ VM28:32
main @ VM28:12
await in main (async)
eval @ VM28:85
(anonymous) @ index.js:62
Promise.then (async)
(anonymous) @ index.js:60
PageToolsAPIPlayground.handleRun @ index.js:59
Ve @ react-dom.production.min.js:52
Xe @ react-dom.production.min.js:52
(anonymous) @ react-dom.production.min.js:53
jr @ react-dom.production.min.js:100
Ar @ react-dom.production.min.js:101
(anonymous) @ react-dom.production.min.js:113
De @ react-dom.production.min.js:292
(anonymous) @ react-dom.production.min.js:50
Nr @ react-dom.production.min.js:105
Qt @ react-dom.production.min.js:75
Jt @ react-dom.production.min.js:74
t.unstable_runWithPriority @ scheduler.production.min.js:18
Go @ react-dom.production.min.js:122
Ie @ react-dom.production.min.js:292
Kt @ react-dom.production.min.js:73
VM28:47 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'replace')
    at eval (eval at <anonymous> (index.js:62:18), <anonymous>:47:44)
    at Array.forEach (<anonymous>)
    at eval (eval at <anonymous> (index.js:62:18), <anonymous>:46:22)
    at Array.forEach (<anonymous>)
    at main (eval at <anonymous> (index.js:62:18), <anonymous>:12:26)
    at async Promise.all (index 0)
eval @ VM28:47
eval @ VM28:46
main @ VM28:12
await in main (async)
eval @ VM28:85
(anonymous) @ index.js:62
Promise.then (async)
(anonymous) @ index.js:60
PageToolsAPIPlayground.handleRun @ index.js:59
Ve @ react-dom.production.min.js:52
Xe @ react-dom.production.min.js:52
(anonymous) @ react-dom.production.min.js:53
jr @ react-dom.production.min.js:100
Ar @ react-dom.production.min.js:101
(anonymous) @ react-dom.production.min.js:113
De @ react-dom.production.min.js:292
(anonymous) @ react-dom.production.min.js:50
Nr @ react-dom.production.min.js:105
Qt @ react-dom.production.min.js:75
Jt @ react-dom.production.min.js:74
t.unstable_runWithPriority @ scheduler.production.min.js:18
Go @ react-dom.production.min.js:122
Ie @ react-dom.production.min.js:292
Kt @ react-dom.production.min.js:73
5VM28:33 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'replace')
    at eval (eval at <anonymous> (index.js:62:18), <anonymous>:33:41)
    at Array.forEach (<anonymous>)
    at eval (eval at <anonymous> (index.js:62:18), <anonymous>:32:19)
    at Array.forEach (<anonymous>)
    at main (eval at <anonymous> (index.js:62:18), <anonymous>:12:26)
    at async Promise.all (index 0)
eval @ VM28:33
eval @ VM28:32
main @ VM28:12
await in main (async)
eval @ VM28:85
(anonymous) @ index.js:62
Promise.then (async)
(anonymous) @ index.js:60
PageToolsAPIPlayground.handleRun @ index.js:59
Ve @ react-dom.production.min.js:52
Xe @ react-dom.production.min.js:52
(anonymous) @ react-dom.production.min.js:53
jr @ react-dom.production.min.js:100
Ar @ react-dom.production.min.js:101
(anonymous) @ react-dom.production.min.js:113
De @ react-dom.production.min.js:292
(anonymous) @ react-dom.production.min.js:50
Nr @ react-dom.production.min.js:105
Qt @ react-dom.production.min.js:75
Jt @ react-dom.production.min.js:74
t.unstable_runWithPriority @ scheduler.production.min.js:18
Go @ react-dom.production.min.js:122
Ie @ react-dom.production.min.js:292
Kt @ react-dom.production.min.js:73
2VM28:47 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'replace')
    at eval (eval at <anonymous> (index.js:62:18), <anonymous>:47:44)
    at Array.forEach (<anonymous>)
    at eval (eval at <anonymous> (index.js:62:18), <anonymous>:46:22)
    at Array.forEach (<anonymous>)
    at main (eval at <anonymous> (index.js:62:18), <anonymous>:12:26)
    at async Promise.all (index 0)
eval @ VM28:47
eval @ VM28:46
main @ VM28:12
await in main (async)
eval @ VM28:85
(anonymous) @ index.js:62
Promise.then (async)
(anonymous) @ index.js:60
PageToolsAPIPlayground.handleRun @ index.js:59
Ve @ react-dom.production.min.js:52
Xe @ react-dom.production.min.js:52
(anonymous) @ react-dom.production.min.js:53
jr @ react-dom.production.min.js:100
Ar @ react-dom.production.min.js:101
(anonymous) @ react-dom.production.min.js:113
De @ react-dom.production.min.js:292
(anonymous) @ react-dom.production.min.js:50
Nr @ react-dom.production.min.js:105
Qt @ react-dom.production.min.js:75
Jt @ react-dom.production.min.js:74
t.unstable_runWithPriority @ scheduler.production.min.js:18
Go @ react-dom.production.min.js:122
Ie @ react-dom.production.min.js:292
Kt @ react-dom.production.min.js:73
4VM28:33 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'replace')
    at eval (eval at <anonymous> (index.js:62:18), <anonymous>:33:41)
    at Array.forEach (<anonymous>)
    at eval (eval at <anonymous> (index.js:62:18), <anonymous>:32:19)
    at Array.forEach (<anonymous>)
    at main (eval at <anonymous> (index.js:62:18), <anonymous>:12:26)
    at async Promise.all (index 0)
eval @ VM28:33
eval @ VM28:32
main @ VM28:12
await in main (async)
eval @ VM28:85
(anonymous) @ index.js:62
Promise.then (async)
(anonymous) @ index.js:60
PageToolsAPIPlayground.handleRun @ index.js:59
Ve @ react-dom.production.min.js:52
Xe @ react-dom.production.min.js:52
(anonymous) @ react-dom.production.min.js:53
jr @ react-dom.production.min.js:100
Ar @ react-dom.production.min.js:101
(anonymous) @ react-dom.production.min.js:113
De @ react-dom.production.min.js:292
(anonymous) @ react-dom.production.min.js:50
Nr @ react-dom.production.min.js:105
Qt @ react-dom.production.min.js:75
Jt @ react-dom.production.min.js:74
t.unstable_runWithPriority @ scheduler.production.min.js:18
Go @ react-dom.production.min.js:122
Ie @ react-dom.production.min.js:292
Kt @ react-dom.production.min.js:73
VM28:47 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'replace')
    at eval (eval at <anonymous> (index.js:62:18), <anonymous>:47:44)
    at Array.forEach (<anonymous>)
    at eval (eval at <anonymous> (index.js:62:18), <anonymous>:46:22)
    at Array.forEach (<anonymous>)
    at main (eval at <anonymous> (index.js:62:18), <anonymous>:12:26)
    at async Promise.all (index 0)
eval @ VM28:47
eval @ VM28:46
main @ VM28:12
await in main (async)
eval @ VM28:85
(anonymous) @ index.js:62
Promise.then (async)
(anonymous) @ index.js:60
PageToolsAPIPlayground.handleRun @ index.js:59
Ve @ react-dom.production.min.js:52
Xe @ react-dom.production.min.js:52
(anonymous) @ react-dom.production.min.js:53
jr @ react-dom.production.min.js:100
Ar @ react-dom.production.min.js:101
(anonymous) @ react-dom.production.min.js:113
De @ react-dom.production.min.js:292
(anonymous) @ react-dom.production.min.js:50
Nr @ react-dom.production.min.js:105
Qt @ react-dom.production.min.js:75
Jt @ react-dom.production.min.js:74
t.unstable_runWithPriority @ scheduler.production.min.js:18
Go @ react-dom.production.min.js:122
Ie @ react-dom.production.min.js:292
Kt @ react-dom.production.min.js:73
5VM28:33 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'replace')
    at eval (eval at <anonymous> (index.js:62:18), <anonymous>:33:41)
    at Array.forEach (<anonymous>)
    at eval (eval at <anonymous> (index.js:62:18), <anonymous>:32:19)
    at Array.forEach (<anonymous>)
    at main (eval at <anonymous> (index.js:62:18), <anonymous>:12:26)
    at async Promise.all (index 0)
eval @ VM28:33
eval @ VM28:32
main @ VM28:12
await in main (async)
eval @ VM28:85
(anonymous) @ index.js:62
Promise.then (async)
(anonymous) @ index.js:60
PageToolsAPIPlayground.handleRun @ index.js:59
Ve @ react-dom.production.min.js:52
Xe @ react-dom.production.min.js:52
(anonymous) @ react-dom.production.min.js:53
jr @ react-dom.production.min.js:100
Ar @ react-dom.production.min.js:101
(anonymous) @ react-dom.production.min.js:113
De @ react-dom.production.min.js:292
(anonymous) @ react-dom.production.min.js:50
Nr @ react-dom.production.min.js:105
Qt @ react-dom.production.min.js:75
Jt @ react-dom.production.min.js:74
t.unstable_runWithPriority @ scheduler.production.min.js:18
Go @ react-dom.production.min.js:122
Ie @ react-dom.production.min.js:292
Kt @ react-dom.production.min.js:73
VM28:47 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'replace')
    at eval (eval at <anonymous> (index.js:62:18), <anonymous>:47:44)
    at Array.forEach (<anonymous>)
    at eval (eval at <anonymous> (index.js:62:18), <anonymous>:46:22)
    at Array.forEach (<anonymous>)
    at main (eval at <anonymous> (index.js:62:18), <anonymous>:12:26)
    at async Promise.all (index 0)
eval @ VM28:47
eval @ VM28:46
main @ VM28:12
await in main (async)
eval @ VM28:85
(anonymous) @ index.js:62
Promise.then (async)
(anonymous) @ index.js:60
PageToolsAPIPlayground.handleRun @ index.js:59
Ve @ react-dom.production.min.js:52
Xe @ react-dom.production.min.js:52
(anonymous) @ react-dom.production.min.js:53
jr @ react-dom.production.min.js:100
Ar @ react-dom.production.min.js:101
(anonymous) @ react-dom.production.min.js:113
De @ react-dom.production.min.js:292
(anonymous) @ react-dom.production.min.js:50
Nr @ react-dom.production.min.js:105
Qt @ react-dom.production.min.js:75
Jt @ react-dom.production.min.js:74
t.unstable_runWithPriority @ scheduler.production.min.js:18
Go @ react-dom.production.min.js:122
Ie @ react-dom.production.min.js:292
Kt @ react-dom.production.min.js:73
4VM28:33 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'replace')
    at eval (eval at <anonymous> (index.js:62:18), <anonymous>:33:41)
    at Array.forEach (<anonymous>)
    at eval (eval at <anonymous> (index.js:62:18), <anonymous>:32:19)
    at Array.forEach (<anonymous>)
    at main (eval at <anonymous> (index.js:62:18), <anonymous>:12:26)
    at async Promise.all (index 0)
eval @ VM28:33
eval @ VM28:32
main @ VM28:12
await in main (async)
eval @ VM28:85
(anonymous) @ index.js:62
Promise.then (async)
(anonymous) @ index.js:60
PageToolsAPIPlayground.handleRun @ index.js:59
Ve @ react-dom.production.min.js:52
Xe @ react-dom.production.min.js:52
(anonymous) @ react-dom.production.min.js:53
jr @ react-dom.production.min.js:100
Ar @ react-dom.production.min.js:101
(anonymous) @ react-dom.production.min.js:113
De @ react-dom.production.min.js:292
(anonymous) @ react-dom.production.min.js:50
Nr @ react-dom.production.min.js:105
Qt @ react-dom.production.min.js:75
Jt @ react-dom.production.min.js:74
t.unstable_runWithPriority @ scheduler.production.min.js:18
Go @ react-dom.production.min.js:122
Ie @ react-dom.production.min.js:292
Kt @ react-dom.production.min.js:73
VM28:47 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'replace')
    at eval (eval at <anonymous> (index.js:62:18), <anonymous>:47:44)
    at Array.forEach (<anonymous>)
    at eval (eval at <anonymous> (index.js:62:18), <anonymous>:46:22)
    at Array.forEach (<anonymous>)ste code here

```

---

<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:** [March 26, 2023, 7:14am UTC](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018/91 "2023-03-26T07:14:09Z")

</div>

That doesn’t look healthy at all…but those are details already when expanded, or ?

---

<div class="post-metadata">

**Author:** ![Stanley\_Oei](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/stanley_oei/32/16795_2.png) [@Stanley\_Oei](https://community.homey.app/u/Stanley_Oei)\
**Post date:** [March 26, 2023, 7:18am UTC](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018/92 "2023-03-26T07:18:41Z")

</div>

no, can be expanded to a lot more…

---

<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:** [March 26, 2023, 7:43am UTC](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018/93 "2023-03-26T07:43:25Z")

</div>

I’ll have a look later @Stanley_Oei

---

<div class="post-metadata">

**Author:** ![Stanley\_Oei](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/stanley_oei/32/16795_2.png) [@Stanley\_Oei](https://community.homey.app/u/Stanley_Oei)\
**Post date:** [March 26, 2023, 8:32am UTC](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018/94 "2023-03-26T08:32:07Z")

</div>

Thanks. For now I manually updated the flows… But still nice to know what went wrong / what I did wrong.

---

<div class="post-metadata">

**Author:** ![Robin\_De\_Lange](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robin_de_lange/32/25173_2.png) [@Robin\_De\_Lange](https://community.homey.app/u/Robin_De_Lange)\
**Post date:** [March 29, 2023, 3:28pm UTC](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018/95 "2023-03-29T15:28:47Z")

</div>

@martijnpoppen i have the same problem, when I want to repair a device (Xiaomi switch mini) everything seems to work. and as you can see, in the device setup the flows are coming back. but it doesn’t repair them on homey 2023

 ![IMG_1372.PNG](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/3/337a8fd8b3e6b78c9781a05ac33b661b9c9f5f20.jpeg)  
 ![IMG_1374](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/5/b5fd250dd9e318712bcdf3886b81d4251a6337d9.jpeg)

---

<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:** [March 29, 2023, 4:00pm UTC](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018/96 "2023-03-29T16:00:44Z")

</div>

@Robin_De_Lange maybe its already using the new webapi. Will check!

---

<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:** [April 2, 2023, 5:27pm UTC](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018/97 "2023-04-02T17:27:22Z")

</div>

Hi @martijnpoppen ,

indeed seems it’s not compatible anymore with HP2023 ;-( I guess there isn’t “easy” fix, right ?

 ![obrazek](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/7/1750e6dae01cfda9b6ed1422607492b7797a86c5.png)

 ![obrazek](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/6/d62b0a744c063142398efb7cee2f7f8bef71af9b.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:** [April 2, 2023, 5:29pm UTC](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018/98 "2023-04-02T17:29:39Z")

</div>

@Sharkys there will be,  
Your last image just shows what i need 😃

Will update!

Edit: probably i’ll post 2 scripts, one for legacy and one for HP23

---

<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:** [April 2, 2023, 5:31pm UTC](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018/99 "2023-04-02T17:31:23Z")

</div>

Oou… so no need to rewrite like 100 flows ? 😉 THANK YOUUUUU !

---

<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:** [April 2, 2023, 5:33pm UTC](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018/100 "2023-04-02T17:33:03Z")

</div>

No its that the webapi for Homey 2023 is updated and uri is removed. So have to do some checks, shouldnt be that hard.

Will probably have a fix tomorrow 🙂

---

<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:** [April 2, 2023, 8:48pm UTC](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018/101 "2023-04-02T20:48:50Z")

</div>

@Sharkys new script is ready (also added to top post): [https://gist.githubusercontent.com/martijnpoppen/dcf0b8fd3f7fe63dec087c87dbc66090/raw/c15ede06bb4a26b6b06536e9751cfc7c0a89320a/gistfile2.txt](https://gist.githubusercontent.com/martijnpoppen/dcf0b8fd3f7fe63dec087c87dbc66090/raw/c15ede06bb4a26b6b06536e9751cfc7c0a89320a/gistfile2.txt)

Next to that added variable support for advanced flows. I saw I didn’t include that earlier 😛

I would recommend softRun first 😃  
The script should work for both Homeys now

---

<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:** [April 2, 2023, 8:52pm UTC](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018/102 "2023-04-02T20:52:08Z")

</div>

You said tomorrow ! ;-)) Checking, testing… thank you !

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

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