From 5dab070debdb33f64438288ee9b335b28bb86128 Mon Sep 17 00:00:00 2001 From: Molodax Date: Wed, 2 Aug 2017 14:53:12 +0200 Subject: [PATCH] Update snips.markdown (#3122) The code has been updated according to the changes implemented in HASS v.0.50.X --- source/_components/snips.markdown | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/source/_components/snips.markdown b/source/_components/snips.markdown index 41fa358689b..ef4b7d04295 100644 --- a/source/_components/snips.markdown +++ b/source/_components/snips.markdown @@ -104,11 +104,12 @@ In Home Assistant, we trigger actions based on intents produced by Snips using t ```yaml snips: - intents: - ActivateLightColor: - action: - - service: light.turn_on - data_template: - entity_id: light.{% raw %}{{ objectLocation | replace(" ","_") }}{% endraw %} - color_name: {% raw %}{{ objectColor }}{% endraw %} + +intent_script: + ActivateLightColor: + action: + - service: light.turn_on + data_template: + entity_id: light.{% raw %}{{ objectLocation | replace(" ","_") }}{% endraw %} + color_name: {% raw %}{{ objectColor }}{% endraw %} ```