From 3bc36f2fb1cce7b4aad1d3d143c36ad65d487371 Mon Sep 17 00:00:00 2001 From: Michael Hansen Date: Thu, 26 Mar 2020 16:32:37 -0400 Subject: [PATCH] Correct HA intent docs --- docs/intent-handling.md | 19 +++++++++++++++++++ src/components/profile/IntentHandling.vue | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/docs/intent-handling.md b/docs/intent-handling.md index 3eda896..601ba48 100755 --- a/docs/intent-handling.md +++ b/docs/intent-handling.md @@ -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)). diff --git a/src/components/profile/IntentHandling.vue b/src/components/profile/IntentHandling.vue index 2349466..9fd4cd9 100755 --- a/src/components/profile/IntentHandling.vue +++ b/src/components/profile/IntentHandling.vue @@ -86,7 +86,7 @@

- Requires the intent component in your configuration.yaml + Requires the intent component and intent scripts in your configuration.yaml