mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-24 01:37:23 +00:00
Update Intent_script component configuration (#7154)
* Update Intent_script component configuration * ✏️ Update file * ✏️ Tweaks * ✏️ Tweak * ✏️ Tweak
This commit is contained in:
parent
40ed687152
commit
b9279b72bb
@ -26,12 +26,54 @@ intent_script:
|
|||||||
data_template:
|
data_template:
|
||||||
message: Hello from an intent!
|
message: Hello from an intent!
|
||||||
```
|
```
|
||||||
Configuration variables:
|
|
||||||
|
|
||||||
Inside an intent we can define these variables:
|
Inside an intent we can define these variables:
|
||||||
|
|
||||||
- **intent** (*Required*): Name of the intent. Multiple entries are possible.
|
{% configuration %}
|
||||||
- **speech** (*Optional*): Text or template to return.
|
intent:
|
||||||
- **action** (*Optional*): [Script syntax](/docs/scripts/).
|
description: Name of the intent. Multiple entries are possible.
|
||||||
- **async_action** (*Optional*): Set to True to have Home Assistant not wait for the script to finish before returning the intent response.
|
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 %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user