I found this in GitHub. Seems to work quite well, any chance we can have it as an add-on for Hassio?
Or even better make it an official component?
Basically this will allow you to send commands to Google Assistant.
If a native component can be created it would make it so much better.
With the templating and some creativity you can basically achieve anything that Google Assistant can do BUT from HomeAssistant.
-Play whatever music you want from Google Play Music/Spotify in a device
-Play a TV show/Netflix from Netflix on a device
-Play a video from YouTube in a device
-Control devices that are only supported in Google Assistant
-Add notes and reminders to your Google Account
-Set Alarms in an specific Google Home
For example you could do it with templating and a few components, let me give you an example.
-Input Select (Netflix, YouTube as the options)
-Input Select (Bedroom TV, Living Room TV)
Then on the input text I can write “Friends” and I’ll select “bedroom TV” and “Netflix” from the input select.
I click the button and it will trigger a script that will pass the command to Assistant-Relay like:
Play + “Friends” (from the input text) + from + “Netflix” (from the input select) + on + “bedroom TV” (from the input select option).
This could be done for basically anything. With templating you can compose the sentence to pass to Google Assistant.
An add-on will do the trick. We just fill in accounts, OAuth token and we can start using it.
Hopefully it will create a service we can use pass the parameters.
At this point even adding this Assistant-Relay as an add-on and using the web API is is helpful as we can just send the curl command via a script.