diff --git a/source/_docs/automation/templating.markdown b/source/_docs/automation/templating.markdown index 60d3fc3c92f..9fd0866828d 100644 --- a/source/_docs/automation/templating.markdown +++ b/source/_docs/automation/templating.markdown @@ -3,7 +3,13 @@ title: "Automation Trigger Variables" description: "List all available variables made available by triggers." --- -Automations support [templating](/docs/configuration/templating/) in the same way as scripts do. In addition to the [Home Assistant template extensions](/docs/configuration/templating/#home-assistant-template-extensions) available to scripts, the `trigger` template variable is available. +Automations support [templating](/docs/configuration/templating/) in the same way as scripts do. In addition to the [Home Assistant template extensions](/docs/configuration/templating/#home-assistant-template-extensions) available to scripts, the `trigger` and `this` template variables are available. + +The template variable `this` is also available when evaluating any `trigger_variables` declared in the configuration. + +## Available this Data + +`this` is a state object. [State Objects](docs/configuration/state_object) provides a comprehensive description for the properties of `this` and `this.attributes`. ## Available Trigger Data diff --git a/source/_integrations/script.markdown b/source/_integrations/script.markdown index 25fd62aa487..2d487443b62 100644 --- a/source/_integrations/script.markdown +++ b/source/_integrations/script.markdown @@ -247,6 +247,12 @@ script: message: "{{ message }}" ``` +