How To

WebserviceLK-IoT helps you to integrate your existing devices (NodeMCU-ESP8226, Arduino, ...) with Google Home for FREE !



Step1

Create a webservice.lk account if you do not have one yet by simply clicking on Sign Up.

Step2

Go to https://console.actions.google.com/ Click Add.

Step3

Name the project. Eg:- WebserviceLK. It Takes few seconds to create the project.

Step4

Now you are on the home screen. Click Home Control. Click Name your Smart Home Action.

Step5

Name it WebserviceLK. Click Save (in the upper right corner).

Step6

Click "Account Linking". Then Select No.

Step7

Select OAuth, then Select Autherization Code.

Step8

Now Copy Client ID and Client Secret from WebserviceLK website you have already created.

Step9

Paste it accordingly and click next.

Step10

Authorization URL: https://iot.webservice.lk/oauth
Token URL: https://iot.webservice.lk/token

Step11

Now Enter user (Just "user"). Click next.

Step12

Enter test. Click Save.

Step13

Now, Select Actions under Build from left side menu. Click Add your first action.

Step14

Enter: https://iot.webservice.lk/api/v1/googlehome/event and Click Done. Then Click Test. This will deploy the thing and now you are ready to start testing.

Step15

Now you need to get control of your devices through Google Asistance by talking to it. So, add few devices in to your webservice.lk account by visiting it.

Step16

Open your Google Home mobile app in your android phone. (If you do not have it you must install it.)

Step17

Go to Home. (Or you can go to Settings)

Step18

Find Home Control in Left side panel.

Step19

Now you must see WebserviceLK (Or whatever name you have given, when creating it). Click on it. Now it will open a login page to login. Use your webservice.lk credentials to log in. Now you will see a message with link successful.

Step20

Now you will see your devices you have created in your webservice.lk account.

You have successfully done the application setup.


Now you can programme your NodeMCU or Arduino (Or any development board can connect to Internet) to connect with webservice.lk and then you can controll it through Google Home Assitance with voice commands.


Download sample source code from Github: https://github.com/lahirutm/WebserviceLK-IoT