From b9279b72bb3bec7a0b2c4f4de16c26be3a71da6e Mon Sep 17 00:00:00 2001 From: Klaas Schoute Date: Tue, 15 Jan 2019 01:30:23 +0100 Subject: [PATCH] Update Intent_script component configuration (#7154) * Update Intent_script component configuration * :pencil2: Update file * :pencil2: Tweaks * :pencil2: Tweak * :pencil2: Tweak --- source/_components/intent_script.markdown | 54 ++++++++++++++++++++--- 1 file changed, 48 insertions(+), 6 deletions(-) diff --git a/source/_components/intent_script.markdown b/source/_components/intent_script.markdown index bf41572753c..f31d44d64c6 100644 --- a/source/_components/intent_script.markdown +++ b/source/_components/intent_script.markdown @@ -26,12 +26,54 @@ intent_script: data_template: message: Hello from an intent! ``` -Configuration variables: Inside an intent we can define these variables: -- **intent** (*Required*): Name of the intent. Multiple entries are possible. - - **speech** (*Optional*): Text or template to return. - - **action** (*Optional*): [Script syntax](/docs/scripts/). - - **async_action** (*Optional*): Set to True to have Home Assistant not wait for the script to finish before returning the intent response. - +{% configuration %} +intent: + description: Name of the intent. Multiple entries are possible. + required: true + type: map + keys: + action: + description: Defines an action to run to intents. + required: false + type: action + async_action: + description: Set to True to have Home Assistant not wait for the script to finish before returning the intent response. + required: false + default: false + type: boolean + card: + description: Card to display. + required: false + type: map + keys: + type: + description: Type of card to display. + required: false + default: simple + type: string + title: + description: Title of the card to display. + required: true + type: template + content: + description: Contents of the card to display. + required: true + type: template + speech: + description: Text or template to return. + required: false + type: map + keys: + type: + description: Type of speech. + required: false + default: plain + type: string + text: + description: Text to speech. + required: true + type: template +{% endconfiguration %}