Skip to content
This repository has been archived by the owner on Oct 1, 2021. It is now read-only.

How to use Google Home

Aruna Tennakoon edited this page Jun 10, 2019 · 27 revisions

How to use Google Home

**Zoom if you cannot read 👓 **

  1. Create a Sinric.com account if you do not ****have one already

  2. Go to https://console.actions.google.com/

Sinric Google Home Step 1

  1. Click Add

  2. Name the project Sinric

Sinric Step 4

  1. Takes few seconds to create the project

Sinric Step 5

  1. Now you are on the home screen. Click Home Control

Sinric Step 6

  1. Click Home Control

Sinric Step 6

  1. Click Name your Smart Home Action

Sinric Step 6

  1. Name it Sinric. (or whatever you want to call it) Click Save (upper right) Sinric Step 6

  2. Click "Setup Account Linking" Sinric Step 6

  3. Select No Sinric Step 6

  4. Select OAuth and Autherization Code Sinric Step 6

  5. Copy Client ID and Client Secret from Sinric website Sinric Step 6

  6. Paste it accordingly and click next Note: If you have not generated keys already, click Generate button to generate keys Sinric Step 6

Authorization URL: https://google.sinric.com/oauth

Token URL: https://google.sinric.com/token

  1. Enter user. Click next Sinric Step 6

  2. Enter test. Click Save Sinric Step 16

  3. Select Actions under Build from left hand menu. Click Add your first action Sinric Step 17

  4. Enter: https://sinric.com/api/v1/googlehome/event Sinric Step 18

Click Done.

  1. Go back to "Account Linking" and click Test. This is very important. Otherwise, action does not appear in the app

This will deploy and now you can start testing

  1. Open your Google Home mobile app. If you do not have it you must install it. Click Profile icon. Click More Settings in Assistant tab and select Home Control Sinric Step 20

  2. Now you should see Sinric (or the name of the action you entered earlier) Sinric Step 22

  3. Click on Sinric. Use your sinric.com credentials to log in. Sinric Step 23

  4. Click Login. Now you should be presented with link successful message.

If you receive redirect error. Click Done.

"401. That’s an error. Your client does not have permission to the requested URL /services/auth/handoffs/auth/complete?state=[removed for security reasons]&code=GkVB27sY&return_url=comgoogleopa://settings/handoff. That’s all we know. "

Solution 1. Link again then you will see success message.

Solution 2. iOS Home Screen -> Settings -> Safari -> Tap "Clear History and Website Data" and try again.

  1. Here is how to connect and control example for ESP devices. https://github.com/kakopappa/sinric/blob/master/arduino_examples/google_home_switch_example.ino

  2. Google Home Graph. Every time when you add a new device or remove an existing device in Sinric, Sinric must notify the Google about the change via "Request Sync" command. For Sinric to contact Google it requires an API key from Google.

Goto https://developers.google.com/actions/smarthome/develop/request-sync

Without this when you add or remove a device you must sync in order to see the change you made in the Google Home app to do that

  1. You must unlink the account and relink the account.

  2. You can ask Google Home to sync eg: "hey, google sync my devices"

Clone this wiki locally