Google Home respond to a trigger?

Hi, is there a way to get google home to say something when a trigger is performed. For example, when the door opens, to say hello?

Yes but Iā€™m going to give a snarky answer, not with SmartThings currently.
Updated: I went ahead and did a really quick search and this is in the list:

There was a app in development to allow casting to Google Home/Miniā€™s itā€™s been a while since Iā€™ve checked on itā€™s status. So search for that. If that app is working then yes you should be able to do this.

With other systems I know itā€™s possible as I do it myself today.

1 Like

What other things do you use to boadcast on Google home?

I donā€™t use ST anymore. I just hang around because I like the people and good ideas from everyone.

But Home Assistant has a native component to use Google Home/Miniā€™s for Casting and for TTS. Vera has a app but it requires a 3rd party app/service just like the Google Assistant Relay for ST. Homeseer has a plugin that works directly with Google Home/Miniā€™s.

You openly say you donā€™t use ST anymore but came here for the advice? Whatā€™s wrong, the Home Assistant forum isnā€™t as nice? LMAO

I said I like the people and the good ideas. Lots of people on this forum have moved on to other platforms or are really thinking of it. They still frequent this community too.

Yes, I use the cast-web-api. My google home devices announce when the sprinklers are about to start, garage is opening, closing, coo coo clocks, door openings, and tons of other things.

For the cast-web-api to work, a node.js server must be currently running on your home network, 24/7. Thatā€™s the only hard part. You can run it on a computer thatā€™s always on, or any device thatā€™s capable. Some use rasp pi devices etc. I run it on a samsung tablet that is my homeā€™s ā€˜control panelā€™ for ST. Since itā€™s always home and always plugged in, it works great, even when the tablet is ā€œasleep.ā€ For android the node.js app I use is called Dory.js.

Most people use webcore to play custom sounds but there are tons of options created by the community.

I use a virtual momentary switch for unsupported devices if I want it to announce it, for instance my ge dishwasher works with iftt but not ST. So on IFTTT when the dishwasher is done it presses the ST virtual momentary button, which using ā€œbig talkerā€ community smart app, announces it over the google homes. If you want custom sounds to play instead of TTS (words played on Ghome) they have to be ā€œhostedā€. Typically Iā€™ll google sound effects and copy the link on a web page to play the sound I want and paste the link into code in the IDE using the community created speaker companion app. Itā€™s not as complicated as it sounds. I canā€™t find the community speaker app right now but I can share the code if you want.

This might be helpful

5 Likes

You can also play hosted MP3ā€™s with BigTalker2 if you have it running in musicPlayer mode (Sonos, etc).
For the phrase in BigTalker use: %mp3(http://path.to/the/mp3file.mp3)%

Nothing else can be in the phrase when playing hosted mp3ā€™s. So you canā€™t do " %mp3(path.to - a really cool domain parked on Park.io)% Front Door" (Play a chime and then announce Front Door). This will not work.

You can try this out in the BigTalker2 TalkNow page to make sure you have the correct formatting before applying it to events if desired.

1 Like

Great PROTIP! Appreciate it. I need to install another instance of BigTalker2 and choose music player mode!

1 Like

Also, there is Assistant-Relay which uses the Broadcast functionality of Google Home to broadcast voice announcements. The benefit of this, since itā€™s not using the streaming functionality, anything that is playing on your GH continues to play after the announcement is over.

1 Like

Interesting ideas, I want the Google Home to chime whenever a contact sensor opens. What do you all think would be the best approach?

I would use Cast Api. That allows your GH devices to show up as regular speakers. Thereā€™s thereā€™s also an app that will do exactly what you want, chime on contact opening. You can search the forum for Cast API and Sonos notify with sound multiple.

1 Like