#Have automation respond on the same Google Assistant it was triggered from

1 messages · Page 1 of 1 (latest)

vestal girder
#

Hi!

Working at adding additional support for commands. Specifically I'm trying to create an 'Emergency Shutdown' command that will power down my entire network safely in the event of a storm.

Creating the automation isn't hard.
Exposing the automation to Google Assistant isn't hard
Creating the Google Assistant automation isn't hard

I'm struggling to see how I can send the TTS feedback to the specific device that initiated the request however. If I trigger it from the Google Nest Hub in my office, I want the automation to -respond- on the Nest Hub in my office. Any thoughts on how I would do that?

strong anvil
#

What I did for that is to have the Google Assistant automation end with playing an ambient sound (e.g. White Noise)
Then you can check in HA which cast device is playing White Noise and send the TTS message to that device

vestal girder
#

I'm curious how you would do that. I'm only just starting out.

strong anvil
#

which part?

vestal girder
#

Well, playing the white noise wouldn't be hard, but I'm struggling on how you would detect which machine it's on.

Would you build a "which device is playing this" script and then call it within the script? Surely you wouldn't add an if then clause for every device on every script

strong anvil
#

You'd use a wait template or wait for trigger which waits until a player plays the white noise

#

You could also use the script I created, but it's part of a bigger package