06-20-2023 11:41 PM - edited 06-20-2023 11:54 PM
I have noticed that the OkGoogle command action will ignore the devices field when using the OkGoogle event starter. Instead it runs the command on the device that started the event.
metadata:
name: Test OkGoogle Automations
description: Scripted automation
automations:
starters:
- type: assistant.event.OkGoogle
eventData: query
is: Test automation two
actions:
- type: assistant.command.OkGoogle
okGoogle: What is the weather?
devices: Nest Hub - Living Room
- type: time.delay
for: 10sec
- type: assistant.command.OkGoogle
okGoogle: What sound does a dog make?
devices: Nest Hub - Bedroom
For example, if I say "Hey Google, test automation two" to the bedroom nest hub, then it will tell me what the weather is even though it should execute on the living room nest hub. Additionally, the second OkGoogle command never executes no matter what device started the automation. It seems like the script editor has issues with multiple OkGoogle events and commands in a single automation or script.
Something significant to note:
If I manually execute that script by pressing the play button at https://home.google.com/automations, then the script works flawlessly every time.
Answered! Go to the Recommended Answer.
06-21-2023 09:19 AM
Thanks for tagging @Alphabet . Your observation is spot on. Currently, the Google Assistant responds on the same device that the user interacted with for voice starters. We set this expectation in the Google Home app (see attached screenshot), but not yet in the script editor. We are taking note of this.
In parallel, we are working to give users the flexibility to use any device for voice starters as well (similar to how you already noted for the play button).
Thank you for your continued feedback and questions. We appreciate it.
06-20-2023 11:50 PM - edited 06-20-2023 11:53 PM
Hey, @Prafulla not to bother you, but maybe you could take note of this issue as well in relation to your comment on "Multiple automations in single script sometimes breaks when using `assistant.event.OkGoo... Thank you!
06-21-2023 09:19 AM
Thanks for tagging @Alphabet . Your observation is spot on. Currently, the Google Assistant responds on the same device that the user interacted with for voice starters. We set this expectation in the Google Home app (see attached screenshot), but not yet in the script editor. We are taking note of this.
In parallel, we are working to give users the flexibility to use any device for voice starters as well (similar to how you already noted for the play button).
Thank you for your continued feedback and questions. We appreciate it.
06-21-2023 10:38 AM
Ahhh, thank you for the update!
06-11-2024 02:56 AM
It has been a year & nothing changed. ☹️
Guess Google is only interested these days in AI.