Adding trigger based template to a templates.yaml file?

You’re welcome!

Please consider marking my post above with the Solution tag, given that it demonstrated what was needed to correct the error you had reported.

For more information about the Solution tag, refer to guideline 21 in the FAQ.