From cd38a2cd2b14ec64f4212feb954d76cd5fcf58a5 Mon Sep 17 00:00:00 2001 From: tronikos Date: Tue, 24 Jan 2023 09:22:10 -0800 Subject: [PATCH] Google Assistant SDK: Document support for multiple commands (#25652) Co-authored-by: Franck Nijhof Co-authored-by: Franck Nijhof --- .../_integrations/google_assistant_sdk.markdown | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/source/_integrations/google_assistant_sdk.markdown b/source/_integrations/google_assistant_sdk.markdown index a25c6442b6e..e2e7c103d54 100644 --- a/source/_integrations/google_assistant_sdk.markdown +++ b/source/_integrations/google_assistant_sdk.markdown @@ -106,9 +106,9 @@ On the configure page, you can set the language code of the interactions with Go You can use the service `google_assistant_sdk.send_text_command` to send commands to Google Assistant. -| Service data attribute | Optional | Description | Example | -| ---------------------- | -------- | ------------------------------------ | ------------------- | -| `command` | no | Command to send to Google Assistant. | turn off kitchen TV | +| Service data attribute | Optional | Description | Example | +| ---------------------- | -------- | ----------- | --------| +| `command` | no | Command(s) to send to Google Assistant. | turn off kitchen TV | Example: @@ -118,6 +118,16 @@ data: command: turn off kitchen TV ``` +You can also send multiple commands in the same conversation context which is useful to unlock doors or open covers that need a PIN. Example: + +```yaml +service: google_assistant_sdk.send_text_command +data: + command: + - "open the garage door" + - "1234" +``` + ### Service `notify.google_assistant_sdk` You can use the service `notify.google_assistant_sdk` to broadcast messages to Google Assistant speakers and displays without interrupting music/video playback.