mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 01:06:52 +00:00
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
@ -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…
x
Reference in New Issue
Block a user