If you are using the system 'Home Assistant' then you are outside my purview of support.
I am not a nodered programmer, either.
What are you trying to accomplish?
Depending on what you are trying to do, there may be many ways to accomplish it.
For example, I have a script (autoclean.py) that cleans up files older than 'x' number of days.
I can have it run after each motion detection (Run End Command) or however often I want (crontab)
I have a script that plays an .MP3 file as a doorbell when it sees motion (Run A Command)