Autostart nodered on HA reboot

I’ve installed nodered on my raspbian with HA.
I’ve set this to run on every raspberry restart:

Sudo systemctl enable nodered.service

I’ve then create a flow that trigger every day at 20:00.

But sometimes when i need to power off raspberry, or reboot HA… Nodered flow stop working.

How can i force to restart nodered also when HA start?

with an automation that calls the “shell_command” systemctl restart nodered.service