How to restart nodered in nodered flow itself

I like to make a flow in nodered restarting nodered itself.
Is this possible?
If yes, can somebody give an example.

I did read at internet to use the exec node, but I’m not able to get it running

I do run nodered in supervised HA in a addon in a VM at a NUC under Unraid

It doesn’t seem to work from a call service. You may need to do this inside HA. If you want to trigger it from NR put the call in a script.

You can try it from your system, to add the service use a # sign after. hassio.restart_addon#

Thank you for the answer.
I did try.
No error, but also not doing something.
In the picture you did write addon_restart in the text you write restart_addon.
I tried both
None worked
Is a0d7b954 for al systems the same?

It works for me in a standard HA automation, I can not get it to work in nodered. The lack of the call in the auto fill list probably means it’s not implemented in NR.

a pitty, but thanks

I have HA (and NR as addon) running on an Odriod (I have no idea what that means in terms of supervised or dockers or foo.bar, but it works).

Reading your post, and out of curiosity, I tried the following service call - it works a treat. I wonder if the “quotes” make that much difference?

Thanks for the try.
It is executing, but without realy restarting nodered
image

Scripts aren’t much different than using a helper. Use the script.turn_on service call

alias: New Script
sequence:
  - service: hassio.addon_restart
    data:
      addon: a0d7b954_nodered
mode: single

I did use homeassistant as domain. That didn’t work.
I changed that in Hassio.
Now it looks like it work

This is working.

1 Like

How would I find this “a0d7b954_nodered” reference for any other add-on? I’m looking to restart my Hisense add-on with a Node-RED flow when it needs a good kick. Thanks.

EDIT: Found it via command line with the command ha addons | grep hisense:

ha

An easier way is to go to Settings, Addons, and the addon of interest will have “host name” given on the information page.

Ah, good. Thanks.