@poldim @euromem what you’re doing seems unnecessary complex. Unfortunately I don’t use NR, but here are some ideas:
Don’t use an automation at all. Just make a script and call that with an HA service call from NR.
Emit a custom event from NR that the HA automation can trigger on.
Use the automation, but just trigger on whatever will trigger the NR flow.