How can you use a Google Assistant Routine to pass a variable?

I want to use Google Assistant to call my HA script and pass in a variable. Example:

OK Google, execute foobar

This would then call a script on HA named execute and pass in the variable foobar.

It’s possible to create a script, expose it to Google, and create a routine to call that script. However, I can’t find a way to pass in the variable.

The service IFTTT allows you to do this, so it’s possible. Is there a way GA can make a call to HA with a variable?

See

and, specifically for Google

1 Like