Node-Red nodes for google-home-notify library. With this node you can cast any String (up to 200 chars) to any google cast device.
Please refer to this library to cast to your google homes instead:
These nodes are based on a fork of the google-home-notifier-library: google-home-notifier Fork
What it does:
Send any string up to 200 Characters (API limitation) to your Google Home (or Chromecast) and it will happily respond. Great for telling us about finished Home Automation tasks.
How it works:
Hook up an Inject-Node to the Input channel and send a simple text phrase. This node will send the text to the google translation API which returns an MP3 file which then gets casted to your chosen Google device.
If the input text is an mp3 url start with http and end up with .mp3, Google device can directly play it. You can host some mp3 files on your own server. For example.
Install this package with "npm install node-red-contrib-google-home-notify --save" in ~./node-red or via the Palette Manager in node-red.
If everything was successfull you should see a new node in the output category in node-red after a restart.
You can adress your Google Home by specifying its IP address and choose a language (Default is English).
Visit example subfolder (coming soon)