Dashboard using template node

I misread your problem. It's not needed.
Have you tried to debug your flow? It will be much easier to help you if you share your flow.
Also read this before sharing.
https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506