From bf7d75d51d4d5759a50e6181742fbfdc411e634c Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Mon, 1 Aug 2016 23:57:37 -0700 Subject: [PATCH] Link to state objected from automation templating --- .../automation-templating.markdown | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/source/getting-started/automation-templating.markdown b/source/getting-started/automation-templating.markdown index b4e0e7922a5..d7957e61e24 100644 --- a/source/getting-started/automation-templating.markdown +++ b/source/getting-started/automation-templating.markdown @@ -59,15 +59,15 @@ The following tables show the available trigger data per platform. | `trigger.entity_id` | Entity ID that we observe. | `trigger.below` | The below threshold, if any. | `trigger.above` | The above threshold, if any. -| `trigger.from_state` | The previous state of the entity. -| `trigger.to_state` | The new state that triggered trigger. +| `trigger.from_state` | The previous [state object] of the entity. +| `trigger.to_state` | The new [state object] that triggered trigger. | Template variable | Data | | ---- | ---- | | `trigger.platform` | Hardcoded: `state` | `trigger.entity_id` | Entity ID that we observe. -| `trigger.from_state` | The previous state of the entity. -| `trigger.to_state` | The new state that triggered trigger. +| `trigger.from_state` | The previous [state object] of the entity. +| `trigger.to_state` | The new [state object] that triggered trigger. | `trigger.for` | Timedelta object how long state has been to state, if any. | Template variable | Data | @@ -80,8 +80,8 @@ The following tables show the available trigger data per platform. | ---- | ---- | | `trigger.platform` | Hardcoded: `template` | `trigger.entity_id` | Entity ID that caused change. -| `trigger.from_state` | Previous state of entity that caused change. -| `trigger.to_state` | New state of entity that caused template to change. +| `trigger.from_state` | Previous [state object] of entity that caused change. +| `trigger.to_state` | New [state object] of entity that caused template to change. | Template variable | Data | | ---- | ---- | @@ -92,7 +92,9 @@ The following tables show the available trigger data per platform. | ---- | ---- | | `trigger.platform` | Hardcoded: `zone` | `trigger.entity_id` | Entity ID that we are observing. -| `trigger.from_state` | Previous state of the entity. -| `trigger.to_state` | New state of the entity. +| `trigger.from_state` | Previous [state object] of the entity. +| `trigger.to_state` | New [state object] of the entity. | `trigger.zone` | State object of zone | `trigger.event` | Event that trigger observed: `enter` or `leave`. + +[state object]: /topics/state_object/