Hello, everyone!
So, I did a lot of tinkering and hacking today, and I’ve come up with a repository that creates a Docker image that can run on a Raspberry Pi and allow you to send a GET request to an endpoint to broadcast any text message to your Google Home devices.
The TTS functionality as it is currently will interrupt any music that is playing, and then it won’t resume.
However, this piece of code uses the Google Assistant SDK to send a broadcast message that temporarily lowers the volume of the music, and then it goes back to playing.
Here is the repo:
Please, if anyone with some hass.io experience with writing addons could help point me in the right direction for turning this into a standalone addon, I’d greatly appreciate it.
Also, the container needs user input the first time it runs because it gives you a link to visit, and Google generates the OAuth 2 code. Does anyone have any insight into how to streamline this for use as a plugin, or if anyone can perhaps give some suggestions on how this can still work out as an addon? I’m kind of stuck at this point.
Thanks