Thank you for the code.
May be I am missing something, but I am not able to use the driver. Here is what I did.
Set up the Google Assistant relay server on RPi running Ubuntu.
Successfully sent commands to relay server endpoint 192.168.1.10:3000/assistant using Curl from another Ubuntu box. They were played on Google Home mini.
Created a new rule to send notification as text message to mobile phone and speak/notification to GoogleHomeMini device on a mode change
I was able to see that on mode change the rule ran and I got text message on the phone (as one of the action) but the Google assistant relay driver device did not run.
Well, that depends on how much assistance you need. There are some things you should know about the cast-web implementation though. If you are playing any music, it will not resume after an announcement. If you are casting to the device and you cast something else, then it doesn't resume the first thing when the second is done. That's how "casting" works.
If you are comfortable with getting node setup, then all you need to install the node server is npm install cast-web-api@beta -g. Then you can install the apps and drivers found here.
If you need help setting up a daemon to run the server automatically at boot, or running the cast-web, let me know, You can run cast-web and Assistant-Relay at the same time but not on the same port. So, there would have to be modification to how you are running one of them. You will still need the Oauth info for cast web, but you don't need a json file. Once you install the app, there will be an option to enable Google Assistant Authentication.
I was aware of the music interruption. In my case that is OK, as I have one Chromecast Audio connected to my whole home speaker system and that is the only one I play music on. I only intend to send messages to the Google Homes, so should be good there.
Thanks for the link. I've setup node before for other applications, so should be able to muck my way through it.
Question, before i even try (Will receive my HE later on the week) G assistant now supports multi languages (Spanish, French, Italian etc) and you can have two assigned to your Google home devices. If you send the custom message let's say in Portuguese will GH be able to broadcast it?
When I run sudo cast-web-api, I get "GoogleAssistant require error: Error: Cannot find module 'google-assistant'"
I decided to ignore and and move forward. I was able to add the app and it discovered my devices correctly. Test messages work.
Still weird though, in the Cast Web service manager, if I go to "Setup the google assistant" button, the web page that opens also says:
GoogleAssistant not installed, error: Error: Cannot find module 'google-assistant'
But it seems to work, so screw it.
NOW to figure out how to send messages like "Front Door Open" based on my door contact.
You have to go into the server, "cd" to the directory. Then "npm run start" to start the server app. If that's not running it's not going to work. In the connect app, go to "check host connection" and make sure that it can find your server.
Is the cast-web dead? all the links in this post are dead. I have google relay setup and runnning. My understanding from what I read here is that with Web-cast I would be able to send a request for only one of my google minis to broadcast vs all of them with assistant relay. Also I can control volume with cast-web. which one is needed if I want to say send a command like "Stop music" I have figured out how to use RM to make a broadcast when I press a button but Cant figure out how to send a command vs broadcast and dont like that it says my user name before broadcasting. Does cast-web say the username before it speaks? Sorry for all the questions thanks.
I did and all of my devices are showing under devices. But can't figure out when I want to create an action in RM what category the devices are listed under.