Skip to content
This repository has been archived by the owner on Aug 30, 2020. It is now read-only.

Commit

Permalink
Correct HA intent docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Hansen committed Mar 26, 2020
1 parent e0401d4 commit 3bc36f2
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
19 changes: 19 additions & 0 deletions docs/intent-handling.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)).
Expand Down
2 changes: 1 addition & 1 deletion src/components/profile/IntentHandling.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 3bc36f2

Please sign in to comment.