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
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 %}
```