简体   繁体   中英

How to add support for google home app to my smart bulb?

We have built a smart bulb which we want to control using the Google Assistant as well(apart from our Android and iOS apps). I searched for this and figured out that we need to implement Google Weave protocol on our bulbs for it to be controllable via Google Assistant. What I don't understand is how can I add this to Home app so that users can add it as smart bulb to Home app and control via Google Assistant?

You can make the link between home and your system via api.ai

The key concepts are here . This site creates JSON files which are loaded into the Google Actions API. Once approved you have a keyword or phrase which when said into Google home opens interactions with your system via webhooks.

For anyone facing the same problem, found my answer here: https://developers.google.com/actions/smarthome/

At the time I posted my question, this page either did not exist or I did not find it.

This page points to sample implementation for smart home device. Here is the link to github repo: https://github.com/actions-on-google/actionssdk-smart-home-nodejs It also has detailed instructions on how to run the code.

To summarize, we need provide following actions.json(which points to our server which fulfills 3 intents SYNC, QUERY and EXECUTE) file as our Action Package.

{
  "actions": [{
    "name": "actions.devices",
    "deviceControl": {
    },
    "fulfillment": {
      "conversationName": "automation"
    }
  }],
  "conversations": {
    "automation" :
    {
      "name": "automation",
      "url": "https://<our server which provides fulfillment for SYNC, QUERY and EXECURE intents>"
    }
  }
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM