From a468d83300ded3c409e12e30c52bdc2f3ba4952f Mon Sep 17 00:00:00 2001 From: Mahasri Kalavala Date: Thu, 25 Jan 2018 16:22:15 -0500 Subject: [PATCH] Update scripts.markdown --- source/_docs/scripts.markdown | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/_docs/scripts.markdown b/source/_docs/scripts.markdown index 4c6ff1d47b0..ff74d5f12d7 100644 --- a/source/_docs/scripts.markdown +++ b/source/_docs/scripts.markdown @@ -147,6 +147,7 @@ The following automation shows how to raise a custom event called `event_light_t The following automation shows how to capture the custom event `event_light_turned_on`, and retrieve corresponsing `entity_id` that was passed as the event data. +{% raw %} ```yaml - alias: Capture Event trigger: @@ -157,7 +158,7 @@ The following automation shows how to capture the custom event `event_light_turn data_template: message: "{{ trigger.event.data.entity_id }} is turned on." ``` - +{% endraw %} [Script component]: /components/script/ [automations]: /getting-started/automation-action/