Can Automate send a command to Google Home/Assistant via IFTTT or something similar to control home automation stuff?

7,441 views
Skip to first unread message

Joel Hoyt

unread,
Jan 4, 2018, 12:22:40 PM1/4/18
to Automate
I just got a wi-fi outlet that I can use by telling Assistant on my phone (from anywhere) or my Google Home "turn on the lamp." 

I'd love to be have the light turn on automatically when I get out of my car at home after dark so the lights are on when I get in the door. People have told me I can use Tasker to do this through IFTTT but I'm hoping I can use Automate somehow. Tasker never made much sense to me. 



Also, I figured I'd ask but it seems obvious so you would have done it already if it was possible, but is there any way to send commands to Google Assistant/Google Now or whatever through Automate? Thanks.

Henrik "The Developer" Lindqvist

unread,
Jan 4, 2018, 11:11:43 PM1/4/18
to Automate
Maybe IFTTT can, upon a Google Home "command", make an HTTP request to the Cloud messaging endpoint which the relays it to a flow using the Cloud message receive block:
http://llamalab.com/automate/doc/block/cloud_message_receive.html

This is how Tasker+Autoplugins does it.

Joel Hoyt

unread,
Jan 5, 2018, 6:31:57 AM1/5/18
to Automate
If I understand you right, you're saying everything would be triggered by a Google Home command, but that's the part I'd like to automate. I want my phone to send a command to Google Assistant automatically upon certain conditions of Bluetooth connections and location. 

Henrik "The Developer" Lindqvist

unread,
Jan 5, 2018, 3:08:25 PM1/5/18
to Automate
Try using the App start block with action "Voice command" and Extras= { "query": "text" }
See: https://stackoverflow.com/a/43700669/445360

smo...@gmail.com

unread,
Jan 16, 2018, 9:11:38 AM1/16/18
to Automate
Ive just done this. The trigger can be (location+time of the day) in your case. Google home probably has a URL where the text recognised by the voice command can be passed and it would act. 

In my case, the switch has a URL with arguments to turn on and off the switch. On press of a shortcut that executes a flow I passed that URL+arguments using the HTTP request block and it worked like a charm. 

I would like to see a plugin/block like IFTTT has for Google Assistant. In IFTTT, the widget is configured for 3 different text (recognised by voice) and the action supports a HTTP call through webhooks. Webhooks needs a cloud accessible URL on a public IP. I want a private LAN URL and I cannot get a static public IP for my WAN. My WAN is also a RFC1918 address!! The voice recognition block here takes the recognised text into output variables that we need to comapre and then act. I'm not sure how to pass the variable from the speech recognition block to the next comparison block.

Can someone help?

Joel Hoyt

unread,
Jan 16, 2018, 11:29:34 AM1/16/18
to Automate
Some of this sounds over my head for now, but I'm always trying to learn. How did you find that URL and arguments for your switch, or how might I do the same with mine?

sco...@gmail.com

unread,
May 11, 2018, 6:31:29 PM5/11/18
to Automate
AutoInput seems to be the best way to accomplish this

bourr...@gmail.com

unread,
Nov 14, 2018, 3:04:54 AM11/14/18
to Automate
Reply all
Reply to author
Forward
0 new messages