Google Assistant SDK: Document support for multiple commands (#25652)

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
Co-authored-by: Franck Nijhof <git@frenck.dev>
This commit is contained in:
tronikos 2023-01-24 09:22:10 -08:00 committed by GitHub
parent cabfa34acf
commit cd38a2cd2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.