스마트 홈 진공청소기 가이드
action.devices.types.VACUUM
: 청소에는 청소, 도킹, 현재 청소 주기 확인, 진공청소기 위치 확인, 다양한 모드 조정과 같은 기능이 포함될 수 있습니다. 일부 진공청소기로 집안의 특정 공간 청소가 가능할 수도 있습니다.
이 유형은 기기가 진공 아이콘과 일부 관련 동의어 및 별칭을 얻는 것을 나타냅니다.
기기 기능
서비스에서 지원해야 하는 속성 및 상태, EXECUTE 및 QUERY 응답을 빌드하는 방법과 같은 구현 세부정보는 관련 특성 문서를 참고하세요.
필수 특성
기기에 해당하는 경우 이러한 특성과 명령어가 필요합니다.
권장 특성
기기에 해당하는 경우 이러한 특성을 사용하는 것이 좋습니다. 그러나 기존의 제품 기능과 가장 잘 일치하도록 사용 가능한 모든 특성에서 자유롭게 조합할 수 있습니다.
-
action.devices.traits.Dock
-
action.devices.traits.EnergyStorage
-
action.devices.traits.Locator
-
action.devices.traits.OnOff
-
action.devices.traits.RunCycle
품질 요구사항
- 지연 시간: 800ms 이하여야 합니다.
- 안정성: 97% 이상이어야 합니다.
기기 예: 간단한 진공청소기
이 섹션에는 위의 기기 유형과 특성에 따라 일반적인 '진공청소기'를 나타내는 인텐트 페이로드 예시가 포함되어 있습니다. 구현에서 특성을 추가하거나 삭제하는 경우 이러한 변경사항을 반영하도록 응답을 수정하세요.
샘플 SYNC 응답
{ "requestId": "6894439706274654512", "inputs": [ { "intent": "action.devices.SYNC" } ] }
{ "requestId": "6894439706274654512", "payload": { "agentUserId": "user123", "devices": [ { "id": "123", "type": "action.devices.types.VACUUM", "traits": [ "action.devices.traits.Dock", "action.devices.traits.EnergyStorage", "action.devices.traits.StartStop" ], "name": { "name": "Simple vacuum" }, "willReportState": true, "attributes": { "queryOnlyEnergyStorage": true, "pausable": true }, "deviceInfo": { "manufacturer": "smart-home-inc", "model": "hs1234", "hwVersion": "3.2", "swVersion": "11.4" } } ] } }
샘플 QUERY 응답
{ "requestId": "6894439706274654514", "inputs": [ { "intent": "action.devices.QUERY", "payload": { "devices": [ { "id": "123" } ] } } ] }
{ "requestId": "6894439706274654514", "payload": { "devices": { "123": { "status": "SUCCESS", "online": true, "isRunning": false, "isPaused": false, "isDocked": true, "descriptiveCapacityRemaining": "HIGH", "capacityRemaining": [ { "unit": "SECONDS", "rawValue": 36000 }, { "unit": "PERCENTAGE", "rawValue": 90 } ] } } } }
샘플 EXECUTE 명령어
도킹
명령어 매개변수에 대한 자세한 내용은
action.devices.traits.Dock
참조를 확인하세요.
{ "requestId": "6894439706274654516", "inputs": [ { "intent": "action.devices.EXECUTE", "payload": { "commands": [ { "devices": [ { "id": "123" } ], "execution": [ { "command": "action.devices.commands.Dock" } ] } ] } } ] }
{ "requestId": "6894439706274654516", "payload": { "commands": [ { "ids": [ "123" ], "status": "SUCCESS", "states": { "online": true, "isDocked": true } } ] } }
시작 중지
명령어 매개변수에 대한 자세한 내용은
action.devices.traits.StartStop
참조를 확인하세요.
{ "requestId": "6894439706274654518", "inputs": [ { "intent": "action.devices.EXECUTE", "payload": { "commands": [ { "devices": [ { "id": "123" } ], "execution": [ { "command": "action.devices.commands.StartStop", "params": { "start": true } } ] } ] } } ] }
{ "requestId": "6894439706274654518", "payload": { "commands": [ { "ids": [ "123" ], "status": "SUCCESS", "states": { "online": true, "isRunning": true, "isPaused": false } } ] } }