mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 15:26:59 +00:00
Correct state and trigger based titles and add note (#37865)
This commit is contained in:
parent
4d747e0385
commit
fadeb9c61c
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user