kap_
Posts: 2
Joined: Mon Jun 17, 2019 6:30 pm

Raspberry pi- Google Home

Mon Jun 17, 2019 6:32 pm

Hi, I am looking for ways to say a command to my google home device and in turn looking for outputs from Raspberry Pi. Right now I'm just expecting it to display simple programs that has already been complied. But eventually I'd like it to say activate motors and what not. I am a beginner at this so any help will be much appreciated!

User avatar
topguy
Posts: 5570
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: Raspberry pi- Google Home

Tue Jun 18, 2019 3:36 pm

Just to clarify..
You have one Google Home device and you have one Raspberry Pi.
If you give the home device a special command, something will happen on the Raspberry Pi
Am I correct about what you want ?

As far as I know right now there is only one way to do this:
* Using the cloud service IFTTT you can define special command for Google Assistant that trigger a "webhook".

* The "webhook" is a HTTP request that can go to your Raspberry pi and trigger some action.
- - So you need a service running that can receive this request, and you have a lot of options
- - - - Apache/PHP.
- - - - Python Flask
- - - - Node.js / node-red
- - - - Any other language that can implement a web-server.

- - Your Pi must also have a way to receive data from the internet.
- - - So you need to forward a port in your router
- - - or use some service that can tunnel data to it. ( https://ngrok.io / https://www.dataplicity.com/ etc.. )

ref:
http://vishalgupta.me/smart-home/ ( the "how it works" figure is a good explanation )
https://www.instructables.com/id/Google ... wer-Strip/
https://medium.com/@sidhantpanda/raspbe ... d39247459a

User avatar
neilgl
Posts: 522
Joined: Sun Jan 26, 2014 8:36 pm
Location: Near Aston Martin factory

Re: Raspberry pi- Google Home

Tue Jun 18, 2019 9:38 pm

Maybe install “fauxmo” on your pi - it emulates a Wemo device (using python).
Google Home supports Wemo, so they say.
It works for me using Alexa.

kap_
Posts: 2
Joined: Mon Jun 17, 2019 6:30 pm

Re: Raspberry pi- Google Home

Wed Jun 26, 2019 5:28 pm

Thanks guys, I will give both options a try!

User avatar
neilgl
Posts: 522
Joined: Sun Jan 26, 2014 8:36 pm
Location: Near Aston Martin factory

Re: Raspberry pi- Google Home

Wed Jun 26, 2019 9:04 pm

Yes and now with raspbian Buster it is easier as that includes python 3.7.3.

Return to “Beginners”