Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
スクリプト
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
説明
最上位のスクリプト。
フィールド
キー
型
説明
metadata
メタデータ
スクリプトのメタデータ(名前や説明など)を指定します。
必須
automations
[自動化 ]
自動化のリストを指定します。
必須
例
スイッチで照明を制御する簡単なスクリプト
metadata :
name : Turn on light with switch
description : Basic example of turning on a light with another switch.
automations :
starters :
type : device.state.OnOff
device : Office Switch - Office
state : on
is : true
actions :
- type : device.command.OnOff
devices :
- Christmas lights - Living Room
on : true
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンス により使用許諾されます。コードサンプルは Apache 2.0 ライセンス により使用許諾されます。詳しくは、Google Developers サイトのポリシー をご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2026-05-15 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["情報が間違っている","incorrectInformation","thumb-down"],["情報 / サンプルが不十分","notEnoughInformationSamples","thumb-down"],["複雑すぎる","tooComplicated","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2026-05-15 UTC。"],[],[]]