I have a flow that sends a command to a z-wave controller that should turn on a light. If z-wave controller is not online, I want to retry in a while.
And I continue retrying till the success. If a new message arrives I need to eliminate the first message. (in some cases it could be more complicated. For example, if we have command toggle instead of on/off).
I found out that I need to copy/paste/change the nodes across my flows. I am thinking about some new node(s) - Retry.
With such node(s) the same flow could be reduced a bit, but more important that I don't need to copy/paste and change lot of nodes.
I don't know how I could connect Retry and For Retry nodes. Probably using mqtt...
Anyway, the question is - if there anything like this? and do you think it would be worth to have such node(s).
Kind regards,
-ap
Perhaps what is needed is a mixture, a "retry" node but still with the idea of a link to physically link the beginning and end?
Did you check the catch node ? It was created specifically for error handling and you can trigger it yourself from functions using node.error("Error message", msg);
I like the idea, but if there are multiple retry nodes in the same flow how can you tell which one links with which?
Whilst the logic can get complicated the benefit the current flow was is to be able to visually follow the flow but this gets lost with the "retry" node.Perhaps what is needed is a mixture, a "retry" node but still with the idea of a link to physically link the beginning and end?