Google Home デベロッパー センターにようこそ。スマートホーム アクションの開発方法を学ぶことができます。注: アクションの作成は、引き続き Actions Console で行います。

デバイスタイプとトレイト

コレクションでコンテンツを整理 必要に応じて、コンテンツの保存と分類を行います。

Google Assistant such as "Hey Google, turn on the bedroom light", Hey Google is the invocation and turn on the bedroom light is known as the grammar. Google determines the smart home intent from the grammar and sends it over to the developer cloud (fulfillment). The developer can then execute the command on the device and returns a response back to Google. さんと会話しているとき

フルフィルメントがインテントを処理してレスポンスを返すと、smart home アクションは Google Home Graph. With Home Graph, Assistant can sync devices, query device states, and execute commands on a device. に依存する。

デバイスの種類

デバイスタイプによって、Assistant はデバイスで使用する文法を認識できます。たとえば、デバイスをライトと定義した場合、ユーザーは「OK Google, ライトをつけて」AssistantAssistant によってデバイスを操作できます。

サポートされているデバイスタイプの一覧については、デバイスタイプをご覧ください。

デバイス トレイト

デバイス トレイトは、デバイスタイプの機能を定義します。複数のデバイス トレイトを、任意のデバイスタイプと組み合わせることができます。たとえば、Light デバイスでは OnOffBrightnessFanSpeed の各トレイトを使用できます。FanSpeed トレイトをライトに使用するのはあまり一般的ではないかもしれませんが、デバイスにはどんなトレイトでも使用できます。

デバイスタイプにデバイス トレイトを追加すると、そのデバイスは追加された各デバイス トレイトの状態を継承します。たとえば、OnOff トレイトを使用すると、デバイスはその on の状態を true または false として報告できます。

サポートされているトレイトの完全なリストについては、デバイス トレイトをご覧ください。