स्मार्ट होम के लिए दरवाज़े की घंटी से जुड़ी गाइड
action.devices.types.DOORBELL
- दरवाज़े की घंटी बजने पर, लोगों को पता चल सकता है कि कोई व्यक्ति दरवाज़े पर है.
अगर इस डिवाइस में सूचनाएं भेजने और वीडियो स्ट्रीम करने की सुविधा है, तो यह ऐसा कर सकता है.
इस टाइप से पता चलता है कि डिवाइस को डोरबेल आइकॉन और उससे मिलते-जुलते कुछ समानार्थी और दूसरे नाम मिलते हैं.
डिवाइस की सुविधाएं
लागू करने से जुड़ी जानकारी के लिए, उस ट्रेट का दस्तावेज़ देखें. जैसे, एट्रिब्यूट और स्थितियां जिनके साथ आपकी सेवा काम करनी चाहिए. साथ ही, EXECUTE और QUERY रिस्पॉन्स बनाने का तरीका.
सुझाई गई विशेषताएं
अगर आपके डिवाइस पर ये सुविधाएं काम करती हैं, तो इनका सुझाव दिया जाता है. हालांकि, अपने मौजूदा प्रॉडक्ट की सुविधाओं के हिसाब से, उपलब्ध सभी ट्रैट को आपस में मिलाया जा सकता है.
क्वालिटी के लिए ज़रूरी शर्तें
- इंतज़ार का समय: यह 2000 मि॰से॰ से कम या इसके बराबर होना चाहिए.
- भरोसेमंदता: यह 97% से ज़्यादा या उसके बराबर होनी चाहिए.
डिवाइस का उदाहरण: दरवाज़े की घंटी
इस सेक्शन में, डिवाइस टाइप और ऊपर बताए गए ट्रैट के आधार पर, सामान्य "डोरबेल" के इंटेंट पेलोड के उदाहरण दिए गए हैं. अगर आपने लागू करने के दौरान कोई विशेषता जोड़ी या हटाई है, तो उन बदलावों को दिखाने के लिए, अपने जवाबों में बदलाव करें.
सिंक के रिस्पॉन्स का सैंपल
{ "requestId": "6894439706274654512", "inputs": [ { "intent": "action.devices.SYNC" } ] }
{ "requestId": "6894439706274654512", "payload": { "agentUserId": "user123", "devices": [ { "id": "123", "type": "action.devices.types.DOORBELL", "traits": [ "action.devices.traits.CameraStream", "action.devices.traits.ObjectDetection" ], "name": { "name": "Simple doorbell" }, "willReportState": true, "notificationSupportedByAgent": true, "attributes": { "cameraStreamSupportedProtocols": [ "hls" ], "cameraStreamNeedAuthToken": 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 } } } }
EXECUTE कमांड के सैंपल
GetCameraStream
कमांड पैरामीटर के बारे में ज़्यादा जानकारी के लिए,
action.devices.traits.CameraStream
रेफ़रंस देखें.
{ "requestId": "6894439706274654516", "inputs": [ { "intent": "action.devices.EXECUTE", "payload": { "commands": [ { "devices": [ { "id": "123" } ], "execution": [ { "command": "action.devices.commands.GetCameraStream", "params": { "StreamToChromecast": true, "SupportedStreamProtocols": [ "hls" ] } } ] } ] } } ] }
{ "requestId": "6894439706274654516", "payload": { "commands": [ { "ids": [ "123" ], "status": "SUCCESS", "states": { "online": true, "cameraStreamAccessUrl": "https://example.com/stream.mp4", "cameraStreamProtocol": "hls" } } ] } }
सूचनाओं की रिपोर्ट का सैंपल
ObjectDetection
सूचनाओं की प्रॉपर्टी के बारे में ज़्यादा जानकारी के लिए,
action.devices.traits.ObjectDetection
रेफ़रंस देखें.
{ "requestId": "6894439706274654518", "payload": { "devices": { "notifications": { "123": { "ObjectDetection": { "objects": { "named": [ "Alice" ] }, "priority": 0, "detectionTimestamp": 946684800000 } } } } } }
{ "requestId": "6894439706274654518" }