[Release] Google Home Assistant Relay Driver (v1 and v2)- text to speech on Google Home devices



Thanks Mark! I have made your changes to the version in my GitHub Repo and modified it slightly to handle the case where a username is not provided a little more elegantly. I also credited you with this change.

Thank you for the contribution!


Just to follow-up, I setup a 2nd dummy account linked only to the home devices I want to broadcast to (I have too many "homes" per sq/ft so the broadcasts are difficult to understand on my main floor due to the timing variances) and it works as expected. Also, I left my original account setup for handling the [CC] and [CCC] commands since the relay has to be a member of the home in order to send those.

Thanks for the "credit" although I don't think it is deserved since all I did was use the Wiki for assistant relay and compared it to your code to add the extra entries.


I don't know how you manage to support all the great apps that you have shared @ogiewon...but I can tell you that your time and effort are TRULY appreciated. I just got this setup last night following your step by step Word document (this Linux newbie would not have gotten through it otherwise). I think I have so many drivers and apps in the ogiewon namespace that a rename of my hub is in order.

How's OGhub
or HubiWon

@SmartHomePrimer, I'm with you...I think I'll use this primarily as a way to execute silent commands to device the hub does not support. The added broadcast message is too much for TTS...I'll keep my echo's in place for that (using guess what...AlexaWon TTS).

The moment either Alexa or GH allow custom wake commands...mine is going to be named Dan :wink:. That way I know it'll get done.


So I am trying to get this going and it appears to be an issue with installing the required google-assistant npm. When I try to install relay v2 on my ras pi I get the following error

BlockquoteTried to download(403): https://storage.googleapis.com/grpc-precompiled-binaries/node/grpc/v1.8.0/node-v67-linux-arm-glibc.tar.gz


what version of node do you have installed?


Hey @ogiewon. You'll see a pull request in GitHub for your driver. I was playing around with getting the last 4 WebCoRE pistons out of HE and moved back over to ST and I ran into a bit of trouble. I was trying to use the maker API to issue commands to my AR device for a broadcast and was getting. "Driveway percent twenty alerts percent twenty now.....". When the device was interpreting the string from the maker api it was taking it literally. So, "%20" that replaced the spaces was spoken as "percent twenty". All I did was add a bunch of replaceAll's to swap them back to spaces before the string is passed to AR. I tested with my cast-web device but the same should apply here. Also, there are probably a couple extra (at least one) that isn't necessary but I figured, better safe than sorry. Let me know if you think I've got it right. This was the first time I tried to use that particular command (yes I know, I'm barely a youngling when it comes to coding). I'm dying to hear what you think. Thanks!!! :smiley:


I updated both the original and v2 Drivers with your change. Please give it a try and let know if it works. In my limited testing, it seems to work fine.

Thank you for your contribution!


It's the least I could do. I might not be able to create something of my own from scratch but I've learned enough to help make things better. That's better than nothing, right? :wink:


I just wanted to take this opportunity to shout out "THANK YOU" very much for your clear and precise instructions on how to install this.
I'm just a novice RPI guy, but I can follow instructions.
I made 3 attempts to do this on the ST side, and was unsuccessful each time.
I followed your Word document, and it was a snap - no problem.
(My only deviation was that instead of using the nano built in editor, since I had WinSCP open anyway, it has a simple text editor that I used.)
Great - Thanks again!


I got time to set this up today wow thank you!!!

I have one simple question is there anyway to issue multiple commands at once? IE using the rule machine it only lets me send one command per rule. Was hoping there was some syntax for multiple? If not I can work around it


Currently there is no way to send multiple commands using the driver as-is. You could modify the driver for your needs.


Thank no worries. I may do that for now I just setup dummy routines in GA and I can just call that one routine to trigger all the googly stuff I need. Thanks again for this!