Reference
Template placeholders
Tokens you can use in notification, speak, log and HTTP text.
Any text option marked as supporting placeholders expands these at run time.
| Token | Meaning |
|---|---|
{{trigger.name}} | the device that started the run |
{{trigger.friendlyState}} | its state as a person would say it ("Open", "74°F") |
{{trigger.state}} | its raw state ("on", "23.4") |
{{trigger.oldState}} | the raw state it changed from |
{{trigger.attribute.battery}} | one of its attributes (any attribute name) |
{{trigger.entityId}} | its entity id |
{{trigger.reason}} | why the run started (sunset, arrive, …) |
{{var.name}} | a variable set by "Set variable" |
{{flow.name}} | this flow's name |
Trigger values
The Variable is condition and Set variable (from trigger) can read these paths.
| Path | Meaning |
|---|---|
trigger.friendlyState | the trigger's state as a person would say it ("Open", "74°F") |
trigger.state | the trigger's raw state ("on", "23.4") |
trigger.oldState | the raw state it changed from |
trigger.name | the name of the device that started the run |
trigger.entityId | its entity id |
trigger.reason | why the run started (sunset, arrive, …) |
trigger.attribute.battery | one of its attributes (any attribute name) |