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
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스 에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스 에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책 을 참조하세요. 자바는 Oracle 및/또는 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)"],[],[]]