Beginner's question about the "{{ }}" code escape in templates

Is there a way to develop template code without using the awkward “{{ }}” syntax?

I get that the code escape syntax “{{ }}” in yaml using Jinja is very useful for one-liners, but it’s honestly a P.I.A for anything more complex. I’d much rather call a script file that can be edited in a full-screen editor with syntax highlighting for more complex solutions.

It would be even better if we could use Python directly within the template. Or is there another way to develop templates (or similar) using only Python for more complex tasks?

There are at least 3 options to script in Python, but AFAIK there is no option to use Jinja Templating in HA without using Jinja delimiters.

Python Scripts

AppDaemon

Pyscript

1 Like

Great, thanks for the tips! :pray: :smiley:

Are there any known limitations I should be aware of if I’m not using the standard template in HA?

Are there any known limitations I should be aware of if I’m not using the standard template in HA?

Answering my own question: the “Python Scripts” integration can’t use imports like the other two can.