diff --git a/source/_integrations/template.markdown b/source/_integrations/template.markdown index 131d846bd6d..92f3acb3dfe 100644 --- a/source/_integrations/template.markdown +++ b/source/_integrations/template.markdown @@ -68,9 +68,6 @@ template: {% endraw %} -### Template and action variables - -State-based template entities have the special template variable `this` available in their templates and actions. The `this` variable aids [self-referencing](#self-referencing) of an entity's state and attribute in templates and actions. ## Trigger-based template binary sensors, buttons, numbers, selects and sensors @@ -283,6 +280,10 @@ template: [trigger-doc]: /docs/automation/trigger +## Template and action variables + +State-based and trigger-based template entities have the special template variable `this` available in their templates and actions. The `this` variable is the [state object](/docs/configuration/state_object) of the entity and aids [self-referencing](#self-referencing) of an entity's state and attribute in templates and actions. Trigger-based entities also provide [the trigger data](/docs/automation/templating/). + ## Rate limiting updates When there are entities present in the template and no triggers are defined, the template will be re-rendered when one of the entities changes states. To avoid this taking up too many resources in Home Assistant, rate limiting will be automatically applied if too many states are observed.