Simplest API Server for Google Home Notifier
It tested on Raspberry Pi Zero W with Raspbian Stretch.
Firstly, Install the dependencies and this script.
$ sudo apt-get install git-core libnss-mdns libavahi-compat-libdnssd-dev
$ wget https://gist.github.com/mugifly/22af0d55ccf4099becd44165f6500196/archive/master.zip -O ghome-notifier-server.zip
$ unzip -j -d ghome-notifier-server ghome-notifier-server.zip
$ cd ghome-notifier-server/
$ npm install
Then, please modify a module according to https://github.com/noelportugal/google-home-notifier#after-npm-install.
$ npm start &
To specify Google Home by IP address:
$ echo "Hello" | curl -H "Content-Type: text/plain" --data-binary @- http://localhost:3002/speak/192.168.x.x
To specify Google Home by a device name:
$ echo "Hello" | curl -H "Content-Type: text/plain" --data-binary @- http://localhost:3002/speak/Google-Home-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
For example, you can make a voice notification with Google Home from Home Assistant.
The following is an example configuration using "Command line Notify" component and Automation feature on Home Assistant.
/config/configuration.yaml
/config/automations.yaml