Using Google Home (assistant) speaker for notifications/alarms?


(Elliott Cooper) #36

Sure thing!
Install raspbian to Rpi
Open terminal and run “sudo python pip install pychromecast”

Then wget the .py file from my github repository.

Run the python file using python filename.py

Then to test grab your laptop or pc and open web browser

Go to http://ipofraspberrypi/Notify?Hello+World

Any issues drop me a message on twitter @3DPrintingKid


(Robert K) #37

Great work, thanks for sharing. We can now use “broadcast” on Google Home / Mini and the mobile assistant to send a message to all devices. On mobile, you can type “broadcast” followed by the message which comes out as the Google voice. With this new feature, is there an easier way to implement this idea? IFTTT doesn’t offer yet the Google Assistant on the “then that” side of rules to accomplish this. Thanks for reading.


#38

I get the following error when I try to run the python script on your github.

  File "GooglePyNotify.py", line 23
pre-url, notification = self.path.split("?")
SyntaxError: can't assign to operator

Any idea what could be happening?


(Chandler Newby) #39

If you’re looking to do chromecast/google home notifications, try this out: [RELEASE] cast-web 0.1 - Chromecast Device Handler & SmartApps

I’ve got it set up in a docker container on my server. So far, it works great. Integrates well with webCoRE.


(Elliott Cooper) #40

Hi Ryan, i will take a look when i get into work


(Chandramouleswaran Ravichandran) #41

1 year later :slight_smile: - I am trying to find if this exists without additional setup


(ᵇᶥᵍ ШΞΒȘГẬŚ (Webstas)) #42

https://vervallsweg.github.io/smartthings/

im using this and it rocks


(Bob) #43

Interesting.
Would you like to elaborate please. :slight_smile:
How do you set this up. I see there are device handlers and smartapps in this site.
If you could it would be much appreciated.
TIA.


#44

Yes! Does this require a dedicated separate device?


(Tobias) #45

Yes, it sadly still does.
The requirements for this device are minimal though and it runs on almost any OS.

If you want to give it a try, everything you need should be here.


(Rob Whapham) #46

So I don’t actually have a Google Home yet, but having a “usable” TTS announcement solution might just be the tipping point to get one. Based upon the work of others, I created a C# app that uses .NET’s built-in speech synthesis to create a WAV file, and a third-party Google Cast library to cast it. When testing on a normal Chromecast, it takes about 6 seconds before anything actually plays (connect, start media channel, play media). Is this the same latency I would see on a Google Home? Or is it somehow better optimized in how it handles media playback requests? Thanks.


(Matt Behnken) #47

mine is slightly less, maybe 3 seconds, the google speakers have a chime before the playback so its event>1second>CHIMEonGH>1 second >CUSTOM TTS or Sound. The chromecasts are about 4 seconds for me at most between event and custom sound, although Wifi slowness can sometimes truncate the first second or so on the chromecasts. Im working on improving the network environment/ wifi signal a bit.

right now im setting up the chromecasts to show live video cam feeds on request and maybe doorbell cam on button press.

if u have ANY google cast or google speaker/mini/audio, this integration is invaluable! @vervallsweg has really opened up hundreds of possibilities here.


(Matt Behnken) #48

it’s not too difficult, if you have a computer that’s always on. for me downloading github desktop and cloning the repo and changing the local ip from the github desktop app menus command line took the longest, maybe 15 min since I’m slow and never done it before.

the rest is ur standard go to the IDE, device handlers, settings, add repo. then update from repo, check check, smart apps update from repo check check update. open ST app, marketplace, smart apps, my apps, web cast, enter the ip:port then discover devices, click on one discovered, check check, save. bam u have speakers in all the smartthings apps.


(Michael Gritton) #49

I had to get rid of the “-” in pre-url.


#50

Did you ever take a look at the error I was receiving?


(Elliott Cooper) #51

Hi @Ryan780

im Just looking into it now - things have been a bit hectic at the moment!
Thanks
Elliott


(Elliott Cooper) #52

@Ryan780 This is now Fixed…
you should be able to run this with no errors :slight_smile:

Thanks
Elliott


#53

Still can’t get it to work. I’m giving up on getting this working. Too many hours wasted.


#54

I am not a programmer and haven’t found a way to get it to work either. I don’t really see any step-by-step solutions.


(Elliott Cooper) #55

@Ryan780 - can you please please send me a screenshot of the exact error you are getting? - I have run this and tested in my environment and it works fine? I am more than happy to offer you some more assistance if needed