From a8f0d48b82dbb12b1d0da39764799cc56757153f Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 18 Dec 2015 12:32:22 +0100 Subject: [PATCH] Add template editor --- source/getting-started/templating.markdown | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/getting-started/templating.markdown b/source/getting-started/templating.markdown index d35a5402e53..6b3c354ab0e 100644 --- a/source/getting-started/templating.markdown +++ b/source/getting-started/templating.markdown @@ -9,12 +9,14 @@ sharing: true footer: true --- -The template helper enables one to mathematically manipulate values and use variables to extract values from JSON. If the entity has template support then the `value_template` key can be set in the `configuration.yaml` file. +The template helper enables one to mathematically manipulate values, use variables to extract values from JSON, and create customized messages to send with the [notification component](components/notify/). If the entity has template support then the `value_template` key can be set and used (eg. `message:` in `data:` of an automation rule) in the `configuration.yaml` file. ```yaml value_template: '{% raw %}{{ value.x }}{% endraw %}' ``` +To check your templates on-the-fly checkout the **Template Editor** from the **Developer Tools**. + For a complete overview, check the [Jinja2 documentation](http://jinja.pocoo.org/docs/dev/templates/). ### {% linkable_title Accessing variables %}