Very new to Node-Red and I am mainly using it for home automation with HA.
I have created a flow that checks connectivity using advanced ping and after 3 failures it needs to execute a python script which reboots my router.
I want it to try do this a set number of times and then not try again in the case that there is a problem on the ISP side or some other issue and it is not with the router.
I cant think of the logic or what you can use to stop the flow. Would really appreciate your help.
I have uploaded a shot of the flow for info