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

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

1 Like

@Henk_Renting updated the scripts. Can you check again? :slight_smile:

2 Likes

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

@Henk_Renting can you do a softrun true?

Then I get this:


There’s a lot I can click to open. What would you like in particular?

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

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


Feel free to contact me by PM if you prefer. :slight_smile:

Will do!

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

1 Like

I want to test it but how ? New to scripts

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

@Mark1541 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

1 Like

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

1 Like

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

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

Afaik this is how an ID looks like:

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

1 Like

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

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

1 Like

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

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

1 Like

Ì 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