From fadeb9c61cf0c7f19d984a9200b2570b92820c51 Mon Sep 17 00:00:00 2001 From: Petro31 <35082313+Petro31@users.noreply.github.com> Date: Sat, 8 Mar 2025 01:12:00 -0500 Subject: [PATCH] Correct state and trigger based titles and add note (#37865) --- source/_integrations/template.markdown | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/source/_integrations/template.markdown b/source/_integrations/template.markdown index ad065d8795d..0ac7df67233 100644 --- a/source/_integrations/template.markdown +++ b/source/_integrations/template.markdown @@ -73,7 +73,7 @@ Entities (sensors, binary sensors, buttons, images, numbers, and selections) are _For old sensor/binary sensor configuration format, [see below](#legacy-binary-sensor-configuration-format)._ -### State-based template binary sensors, buttons, images, numbers, selects and sensors +### State-based template binary sensors, buttons, images, numbers, selects, sensors, and weathers Template entities will by default update as soon as any of the referenced data in the template updates. @@ -95,8 +95,7 @@ template: {% endraw %} - -### Trigger-based template binary sensors, buttons, images, numbers, selects and sensors +### Trigger-based template binary sensors, images, numbers, selects, sensors, and weathers If you want more control over when an entity updates, you can define a trigger. Triggers follow the same format and work exactly the same as [triggers in automations][trigger-doc]. This feature is a great way to create entities based on webhook data ([example](#trigger-based-sensor-and-binary-sensor-storing-webhook-information)), or update entities based on a schedule. @@ -106,6 +105,10 @@ Trigger-based entities do not automatically update when states referenced in the The state, including attributes, of trigger-based sensors and binary sensors is restored when Home Assistant is restarted. The state of other trigger-based template entities is not restored. +{% note %} +Buttons do not support using `trigger` or `action` options. +{% endnote %} + {% raw %} ```yaml