Correct HA intent docs

This commit is contained in:
Michael Hansen
2020-03-26 16:32:37 -04:00
parent e0401d4c18
commit 3bc36f2fb1
2 changed files with 20 additions and 1 deletions
+19
View File
@@ -65,6 +65,25 @@ In order to do something with the `rhasspy_ChangeLightColor` event, create an au
See the documentation on [actions](https://www.home-assistant.io/docs/automation/action/) for the different things you can do with Home Assistant.
### Intents
More recent versions of Home Assistant can accept intents directly. Add the following to your `configuration.yaml` file:
```yaml
intent:
```
This will enable intents over the HTTP API. Next, write [intent scripts](https://www.home-assistant.io/integrations/intent_script) to handle each Rhasspy intent:
```yaml
intent_script:
ChangeLightColor:
action:
...
```
The possible [actions](https://www.home-assistant.io/docs/automation/action/) are the same as in automations.
### MQTT
In addition to events, Rhasspy can also publish intents through MQTT ([Hermes protocol](https://docs.snips.ai/reference/dialogue#intent)).
+1 -1
View File
@@ -86,7 +86,7 @@
<div class="form-row">
<div class="col">
<p class="text-muted">
Requires the <a href="https://www.home-assistant.io/integrations/intent/">intent component</a> in your <tt>configuration.yaml</tt>
Requires the <tt>intent</tt> component and <a href="https://www.home-assistant.io/integrations/intent_script">intent scripts</a> in your <tt>configuration.yaml</tt>
</p>
</div>
</div>