Latest since making use of the Alexa integration, I found that some flows just ain't quite stable working and, unfortunately, need to be restarted regularly. Therefore I´m looking for an easy way, how to restart all and/or certain flows automatically from within Node-Red. I found a documentation (POST /flows : Node-RED), but I´m afraid it´s way over my head to understand what to actually do
Now my question is: Is it really that complicated to achieve this or can somebody show an easy example that even Noops like me can understand?
@Colin - It´s mainly the Alexa node that stops working after some time and needs a flow restart to re-initialize. But if it´s that complicated to restart a flow I probably go for the more "radical" solution to re-boot the whole HomeAssistant system, which in the end has the same effect (kind of the nuclear option )
This might be useful if you are running Node-Red as an individual instance, but doesn´t help me running Node-Red as Add-On on my Home Assistance system.
Anyway, I now created an automation that restarts the whole Node-Red application every night and I hope this will help to stabilize the working of my Alexa based flows (by far not the most beautiful solution to this issue I have to admit )
Sure, the container, I say "service" since I'm in the Windows environment. The container option is probably easier to do. The concept is restart your entity which hosts your Node-RED instance. That can be done by system command.
That would be a brute-force method, I would investigate a means to avoid this since it is uncontrolled shutdown. Perhaps advisable to go to the Alexia Node maintainer on GIT and see if anyone else is having similar trouble.
You can catch the alexa node error/s using the catch node, and reinitialise the alexa authorization.
There is a example of how to initialise the authenication in the read me help info.
(this answer assumes you are using one of the alexa remote2 forks)
here's a link to a thread that talks about alexa node issues.
I only understand superficially what that flow does but as I didn´t had to enter my Credit Card i trust in you Thanks one more time @E1cid for helping me out and on the same sight showing me how little I still know about Node Red