스마트 홈 작업을 개발하는 방법을 알아볼 수 있는 새로운 공간인 Google Home 개발자 센터에 오신 것을 환영합니다. 참고: Actions 콘솔에서 작업을 계속 만들 수 있습니다.

홈 그래프

컬렉션을 사용해 정리하기 내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.

스마트 홈 작업에 필요한 기능 Google Home Graph , a database that stores and provides contextual data about the home and its devices. The Home Graph database stores information about structures (for example, home or office), rooms (for example, bedroom or living room), and devices (for example, speaker and light bulb). For example, Home Graph can store the concept of a home with a living room that contains multiple types of devices from different manufacturers such as a light, television, and speaker. This information is available to Google Assistant in order to execute user requests based on the appropriate context. State data, such as if a light bulb is on, is not stored in the long term - it’s ephemeral and is only used in the Home Graph.

Home Graph는 기본적으로 집의 논리적 지도입니다. 이를 통해 Assistant과 자연스럽게 대화할 수 있습니다. 서재에 앉아서 서재 조명을 끄려면 Hey Google, 조명 꺼 줘라고 말하면 되며 현재 있는 방은 언급되지 않습니다.

Home Graph의 이점:

  • 암시적 명령어: 귀하, Google Home device, and your lights are in the same room. All you have to say is turn on the lights. You do not need to specify what room the lights are in.
  • 명시적 타겟팅을 더 효과적으로 관리할 수 있습니다. 다른 방에 있더라도 여러 제조업체의 조명이 있더라도 주방 조명을 끌 수 있습니다. smart home intent is determined for a particular room that is identified in Home Graph.

구조

Google Home app (GHA) lets a user configure multiple structures which allows a user to manage multiple houses. Each structure has its own set of rooms and devices. A structure consists of the following:

  • 관리자 - 구조 소유자의 계정입니다. 각 구조에는 관리자가 1명 이상 있어야 합니다. 관리자가 정의되면 관리자는 다른 사용자와 구조를 공유하고 공유를 취소할 수 있습니다.
  • 방: 구조의 일부인 방입니다.
  • 라벨 - 구조를 식별하는 라벨(예: '지인의 집')
  • 기기: 구조의 일부인 기기입니다. 이러한 기기는 여러 제조업체의 기기일 수 있습니다.

그림 1은 집, 방 3개, 여러 기기가 있는 샘플 홈을 보여줍니다.

이 그림은 홈 그래프 샘플입니다. 파란색 점선으로 표시된 구조, 주황색 선으로 윤곽선이 있는 방 3개, 녹색 원이 있는 방에 있는 여러 기기가 있습니다.
그림 1: 샘플 홈 그래프

Rooms

방은 구조물에 속하며 다음과 같이 구성됩니다.

  • 라벨: '안방'과 같이 방을 식별하는 라벨입니다.
  • 기기: 방의 일부인 기기입니다. 이러한 기기는 여러 제조업체의 기기일 수 있습니다.

기기

기기는 하나 이상의 구조에 속해야 하며 최대 1개의 방에 속할 수 있으며 다음과 같은 속성을 갖습니다.

  • 유형 - 램프, 카메라, 에어컨과 같은 기기의 유형입니다.
  • 특성 - 기기에서 지원하는 특성 유형입니다. 각 기기에는 여러 특성이 있을 수 있습니다. 광원에는 BrightnessColorSetting와 같은 특성이 있을 수 있습니다.

특성

특성에는 다음과 같은 속성이 있습니다.

  • 속성: 기기에 정적인 기기 속성입니다. 속성은 온도 단위 또는 모드와 같은 것일 수 있습니다.
  • 상태 - 기기의 기기 상태입니다. 램프가 특정 램프의 현재 밝기를 나타내는 밝기 상태를 반환할 수 있습니다. 각 기기 특성은 기기의 다양한 기기 상태를 추가합니다.
  • 라벨: '침실 램프'와 같이 기기를 식별하는 라벨입니다.