I took a stab at updating the relay driver to allow anyone who has upgraded to the relay V2 to add the /assistant directory to the POST function and the raw code is here
Holiday Craziness and All! The Relay is pretty cool man! I have a motion sensor near the Christmas tree(Yeah...it's up already...Wifey just hadddddd to have it up). Anyway...now when the cats are over there Google starts screaming.."THE CATS ARE IN THE FRICKEN TREE"!!
I have installed node.js on a RPi and went through the assistant relay setup with "ryancasler/assistant-relay/wiki/Install-Instructions". I installed google home assistant driver and created a virtual device.
How do I tell the relay assistant which google device to announce through
You would have to use something like Cast-Web-API which exposes each GH device as a "castable" device. You can't broadcast to it but you can speak text to it to get an announcement. It uses the cast capability of the GH though, so any music you have playing will stop and not restart after the announcement. This applies only to announcements to single devices. Group broadcast is different.
The alternative in assistant-relay is to create other google accounts and link those only to some speakers. Then when you issue the broadcast command under that user, the broadcast would only play on some speakers. But you would have to have another google account and set up another google console project and get another oauth file. Very cumbersome.
I just had this same issue CJ, coudn't get Relay to actually spit out voice commands. I could use the rPi terminal to send a cURL post command and things would fire, but no love with the device.
I ended up moving to cast-web-api with a lot of help from Ryan780 in this threat:
Take a look, it is actually pretty easy to get things set up if you have already gone through the process of enabling the Google developer API and creating credentials.
There was a problem with Assistant Relay when you had IPv6 enabled on my router. For the longest time I couldn't figure out why Assistant Relay would start but I wouldn't get any sound from my speakers. Google implemented a check within the Assistant SDK to only broadcast to local devices. They didn't want someone accidentally broadcasting personal information on a Google Home speaker they had at work for example. So, the way they did this was through IP checking. If everyone is on the same subnet, then they are all local to each other. The problem is, my netgear router's schema for IPv6 address assignments didn't mesh well with Google's algorithm for checking if devices were local. So, as soon as i disabled IPv6 on my router...bingo...worked again. Google was supposed to fix this at some point in the SDK but I have no idea if it has and if so if it's been implemented in Relay yet. Here's a link to the thread on GitHub for the assistant SDK about it.
It was really dumb luck that I found this problem in the first place.
@ogiewon Dan - Thanks for getting this to Hubitat - I have missed this from Smartthings it adds that additional flare to the home automation. Welcome home and those various other personalized pieces.