Google Home Integration


How it works

Controlling a Trash by just saying “OK Google Open the Trash!”
Google Home already has integration with IFTTT.
And IFTTT has Webhooks integration.

obniz has a messaging API.
It is easy to send message from any other webservices to obniz.
By adding Webbhooks to obniz on IFTTT, GoogleHome integrasion is as easy as possible.


obniz – 1
battery or usb adaptor & cable – 1
Servo motor & Trash – 1
Step 1
Connect Servo motor to an obniz.

  1. io1: GND,
  2. io2: VCC,
  3. io3: signal

Then power up your obniz.

Step 2

Add webhook on IFTTT.

Step 3

Write code below.
And run it on HTML or nodejs.


<!-- HTML Example -->
<!DOCTYPE html>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">

  <script src=""></script>

<div id="obniz-debug"></div>
<div class="text-center">
  <h1> Talk with google home </h1>

<div id="text">
    <li>Open the trash</li>
    <li>Close the trash</li>


/* This will be over written on webapp page */
var obniz = new Obniz("OBNIZ_ID_HERE");

obniz.onconnect = async function () {
  var servo = obniz.wired("ServoMotor", {gnd:0, vcc:1, signal:2});
  obniz.onmessage = function(message, from) {
    if(message === "googlehomeOpen"){
      obniz.display.print("open the trash");
    if(message === "googlehomeClose"){
      obniz.display.print("close the trash");

Run Now

The html will be opened to run a program.