Update snips.markdown (#3122)

The code has been updated according to the changes implemented in HASS v.0.50.X
This commit is contained in:
Molodax 2017-08-02 14:53:12 +02:00 committed by Fabian Affolter
parent 2a93609459
commit 5dab070deb

View File

@ -104,11 +104,12 @@ In Home Assistant, we trigger actions based on intents produced by Snips using t
```yaml ```yaml
snips: snips:
intents:
ActivateLightColor: intent_script:
action: ActivateLightColor:
- service: light.turn_on action:
data_template: - service: light.turn_on
entity_id: light.{% raw %}{{ objectLocation | replace(" ","_") }}{% endraw %} data_template:
color_name: {% raw %}{{ objectColor }}{% endraw %} entity_id: light.{% raw %}{{ objectLocation | replace(" ","_") }}{% endraw %}
color_name: {% raw %}{{ objectColor }}{% endraw %}
``` ```