mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-21 08:16:53 +00:00
Correct the syntax for actions with intent script (#35572)
This commit is contained in:
parent
c30afb53b9
commit
a81bcbf0e2
@ -46,7 +46,7 @@ intent:
|
|||||||
description: List of domains that the entity supports.
|
description: List of domains that the entity supports.
|
||||||
required: false
|
required: false
|
||||||
type: list
|
type: list
|
||||||
actions:
|
action:
|
||||||
description: Defines an action to run to intents.
|
description: Defines an action to run to intents.
|
||||||
required: false
|
required: false
|
||||||
type: action
|
type: action
|
||||||
@ -109,7 +109,7 @@ conversation:
|
|||||||
|
|
||||||
intent_script:
|
intent_script:
|
||||||
EventCountToday:
|
EventCountToday:
|
||||||
actions:
|
action:
|
||||||
- action: calendar.get_events
|
- action: calendar.get_events
|
||||||
target:
|
target:
|
||||||
entity_id: calendar.my_calendar
|
entity_id: calendar.my_calendar
|
||||||
|
@ -148,7 +148,7 @@ As mentioned above, you can then use the `intent_script` integration to implemen
|
|||||||
# Example configuration.yaml
|
# Example configuration.yaml
|
||||||
intent_script:
|
intent_script:
|
||||||
SetVolume:
|
SetVolume:
|
||||||
actions:
|
action:
|
||||||
service: "media_player.volume_set"
|
service: "media_player.volume_set"
|
||||||
data:
|
data:
|
||||||
entity_id: "{{ media_player }}"
|
entity_id: "{{ media_player }}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user