From a81bcbf0e27f3d587f5f6a1c03fa2b8cda583225 Mon Sep 17 00:00:00 2001 From: Omar Amin <65174210+omaramin-2000@users.noreply.github.com> Date: Tue, 5 Nov 2024 08:44:02 +0200 Subject: [PATCH] Correct the syntax for actions with intent script (#35572) --- source/_integrations/intent_script.markdown | 4 ++-- source/voice_control/custom_sentences.markdown | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/_integrations/intent_script.markdown b/source/_integrations/intent_script.markdown index d6188ae35d2..d8a70a8f69e 100644 --- a/source/_integrations/intent_script.markdown +++ b/source/_integrations/intent_script.markdown @@ -46,7 +46,7 @@ intent: description: List of domains that the entity supports. required: false type: list - actions: + action: description: Defines an action to run to intents. required: false type: action @@ -109,7 +109,7 @@ conversation: intent_script: EventCountToday: - actions: + action: - action: calendar.get_events target: entity_id: calendar.my_calendar diff --git a/source/voice_control/custom_sentences.markdown b/source/voice_control/custom_sentences.markdown index 04ef2dc08f1..7924dc94905 100644 --- a/source/voice_control/custom_sentences.markdown +++ b/source/voice_control/custom_sentences.markdown @@ -148,7 +148,7 @@ As mentioned above, you can then use the `intent_script` integration to implemen # Example configuration.yaml intent_script: SetVolume: - actions: + action: service: "media_player.volume_set" data: entity_id: "{{ media_player }}"