Search code examples
androidiotgoogle-assistant-sdkgoogle-developers-consolegoogle-assist-api

How to use custom Google Assistant commands without "Let's talk to" and without IFTTT


I know this is broad question but I've spent counless hours searching for the right solution. Google provides at least 15 different types of Google Assistant connections all of them are different and I don't know which one to use for my project. The project is pretty simple - I would like to call dynamic url with parameters (webhook to my home server) from mobile Google Assistant.Example - I would say to my Android mobile phone

> Ok, Google set the TV volume to 50

and the assistant would call

GET "https://192.168.1.12/tv/volume/50

or

GET "https://192.168.1.12/?device=tv&action=volume&value=50

where 'tv', 'volume' and '50' are the dynamic parameters (not static) so I could also call

> Ok, Google set the TV channel to 132

I just want a link or a name of the Google dev console that I can use. I don't want to waste another several hours just to find out that another Google package is not suitable for my project. Have anyone done something similar?
PS
I know that I could achieve something similar with "Ok, Google let's talk to ...." but that is not my case.
also I CAN'T USE IFTTT


Solution

  • There's no one-click mechanism to do this directly in Assistant. The smart home platform allows you to configure a service that would capture commands such as Channel and Volume and let you handle those commands in the way you want, using a cloud backend and optionally the Local Home SDK.

    This may be a bit more work than you want, and you may want to consider existing smart home platforms which may handle some of the backend work such as https://homeassistant.io which does have an Assistant integration already, though I'm less sure of whether it may work in your use case.