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:
parent
2a93609459
commit
5dab070deb
1 changed files with 8 additions and 7 deletions
|
@ -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 %}
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue