स्मार्ट होम डिहाइड्रेटर गाइड
action.devices.types.DEHYDRATOR
- डिहाइड्रेटर के साथ इंटरैक्शन में, डिवाइस को चालू और बंद करना, टाइमर सेट करना, खाना पकाने के मोड या खाना पकाने के लिए पहले से सेट किए गए विकल्पों में बदलाव करना या अन्य सेटिंग में बदलाव करना शामिल हो सकता है.
इस टाइप से पता चलता है कि डिवाइस पर डिहाइड्रेटर आइकॉन और उससे मिलते-जुलते कुछ शब्द और उपनाम दिखेंगे.
डिवाइस की सुविधाएं
लागू करने से जुड़ी जानकारी के लिए, उस ट्रेट का दस्तावेज़ देखें. जैसे, एट्रिब्यूट और स्थितियां जिनके साथ आपकी सेवा काम करनी चाहिए. साथ ही, EXECUTE और QUERY रिस्पॉन्स बनाने का तरीका.
ज़रूरी विशेषताएं
अगर आपके डिवाइस पर ये सुविधाएं काम करती हैं, तो इन विशेषताओं और निर्देशों की ज़रूरत होती है. अगर आपके डिवाइस पर ये ट्रैट काम नहीं करते, तो QUERY या EXECUTE रिस्पॉन्स में functionNotSupported
का गड़बड़ी कोड डालें. ज़्यादा जानकारी के लिए, गड़बड़ियां और अपवाद देखें.
सुझाई गई विशेषताएं
अगर आपके डिवाइस पर ये सुविधाएं काम करती हैं, तो इनका सुझाव दिया जाता है. हालांकि, अपने मौजूदा प्रॉडक्ट की सुविधाओं के हिसाब से, उपलब्ध सभी ट्रैट को आपस में मिलाया जा सकता है.
क्वालिटी के लिए ज़रूरी शर्तें
- इंतज़ार का समय: यह 800 मि॰से॰ से कम या इसके बराबर होना चाहिए.
- भरोसेमंदता: यह 97% से ज़्यादा या उसके बराबर होनी चाहिए.
डिवाइस का उदाहरण: आसानी से इस्तेमाल किया जा सकने वाला डिहाइड्रेटर
इस सेक्शन में, डिवाइस टाइप और ऊपर बताए गए ट्रैट के आधार पर, सामान्य "डिहाइड्रेटर" के इंटेंट पेलोड के उदाहरण दिए गए हैं. अगर आपने लागू करने के दौरान कोई विशेषता जोड़ी या हटाई है, तो उन बदलावों को दिखाने के लिए, अपने जवाबों में बदलाव करें.
सिंक के रिस्पॉन्स का सैंपल
{ "requestId": "6894439706274654512", "inputs": [ { "intent": "action.devices.SYNC" } ] }
{ "requestId": "6894439706274654512", "payload": { "agentUserId": "user123", "devices": [ { "id": "123", "type": "action.devices.types.DEHYDRATOR", "traits": [ "action.devices.traits.Cook", "action.devices.traits.StartStop", "action.devices.traits.Timer", "action.devices.traits.OnOff" ], "name": { "name": "Simple dehydrator" }, "willReportState": true, "attributes": { "supportedCookingModes": [ "DEHYDRATE" ], "foodPresets": [ { "food_preset_name": "beef_jerky_key", "supported_units": [ "POUNDS", "OUNCES" ], "food_synonyms": [ { "synonym": [ "Beef jerky", "Jerky" ], "lang": "en" } ] }, { "food_preset_name": "beet_chips_key", "supported_units": [ "POUNDS", "OUNCES" ], "food_synonyms": [ { "synonym": [ "Beet chips", "Beets" ], "lang": "en" } ] } ], "maxTimerLimitSec": 30, "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, "on": true, "isRunning": true, "isPaused": false, "timerRemainingSec": 30, "currentCookingMode": "DEHYDRATE", "currentFoodPreset": "beef_jerky_key" } } } }
EXECUTE कमांड के सैंपल
खाना बनाएँ
कमांड पैरामीटर के बारे में ज़्यादा जानकारी के लिए,
action.devices.traits.Cook
रेफ़रंस देखें.
{ "requestId": "6894439706274654516", "inputs": [ { "intent": "action.devices.EXECUTE", "payload": { "commands": [ { "devices": [ { "id": "123" } ], "execution": [ { "command": "action.devices.commands.Cook", "params": { "start": false, "cookingMode": "DEHYDRATE" } } ] } ] } } ] }
{ "requestId": "6894439706274654516", "payload": { "commands": [ { "ids": [ "123" ], "status": "SUCCESS", "states": { "online": true, "currentCookingMode": "NONE", "currentFoodPreset": "NONE" } } ] } }
StartStop
कमांड पैरामीटर के बारे में ज़्यादा जानकारी के लिए,
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 } } ] } }
TimerStart
कमांड पैरामीटर के बारे में ज़्यादा जानकारी के लिए,
action.devices.traits.Timer
रेफ़रंस देखें.
{ "requestId": "6894439706274654522", "inputs": [ { "intent": "action.devices.EXECUTE", "payload": { "commands": [ { "devices": [ { "id": "123" } ], "execution": [ { "command": "action.devices.commands.TimerStart", "params": { "timerTimeSec": 30 } } ] } ] } } ] }
{ "requestId": "6894439706274654522", "payload": { "commands": [ { "ids": [ "123" ], "status": "SUCCESS", "states": { "online": true, "timerRemainingSec": 30 } } ] } }
TimerAdjust
कमांड पैरामीटर के बारे में ज़्यादा जानकारी के लिए,
action.devices.traits.Timer
रेफ़रंस देखें.
{ "requestId": "6894439706274654524", "inputs": [ { "intent": "action.devices.EXECUTE", "payload": { "commands": [ { "devices": [ { "id": "123" } ], "execution": [ { "command": "action.devices.commands.TimerAdjust", "params": { "timerTimeSec": -10 } } ] } ] } } ] }
{ "requestId": "6894439706274654524", "payload": { "commands": [ { "ids": [ "123" ], "status": "SUCCESS", "states": { "online": true, "timerRemainingSec": 20 } } ] } }
TimerPause
कमांड पैरामीटर के बारे में ज़्यादा जानकारी के लिए,
action.devices.traits.Timer
रेफ़रंस देखें.
{ "requestId": "6894439706274654526", "inputs": [ { "intent": "action.devices.EXECUTE", "payload": { "commands": [ { "devices": [ { "id": "123" } ], "execution": [ { "command": "action.devices.commands.TimerPause" } ] } ] } } ] }
{ "requestId": "6894439706274654526", "payload": { "commands": [ { "ids": [ "123" ], "status": "SUCCESS", "states": { "online": true, "timerRemainingSec": 15, "timerPaused": true } } ] } }
TimerResume
कमांड पैरामीटर के बारे में ज़्यादा जानकारी के लिए,
action.devices.traits.Timer
रेफ़रंस देखें.
{ "requestId": "6894439706274654528", "inputs": [ { "intent": "action.devices.EXECUTE", "payload": { "commands": [ { "devices": [ { "id": "123" } ], "execution": [ { "command": "action.devices.commands.TimerResume" } ] } ] } } ] }
{ "requestId": "6894439706274654528", "payload": { "commands": [ { "ids": [ "123" ], "status": "SUCCESS", "states": { "online": true, "timerRemainingSec": 15, "timerPaused": false } } ] } }
TimerCancel
कमांड पैरामीटर के बारे में ज़्यादा जानकारी के लिए,
action.devices.traits.Timer
रेफ़रंस देखें.
{ "requestId": "6894439706274654530", "inputs": [ { "intent": "action.devices.EXECUTE", "payload": { "commands": [ { "devices": [ { "id": "123" } ], "execution": [ { "command": "action.devices.commands.TimerCancel" } ] } ] } } ] }
{ "requestId": "6894439706274654530", "payload": { "commands": [ { "ids": [ "123" ], "status": "SUCCESS", "states": { "online": true, "timerRemainingSec": -1 } } ] } }
OnOff
कमांड पैरामीटर के बारे में ज़्यादा जानकारी के लिए,
action.devices.traits.OnOff
रेफ़रंस देखें.
{ "requestId": "6894439706274654532", "inputs": [ { "intent": "action.devices.EXECUTE", "payload": { "commands": [ { "devices": [ { "id": "123" } ], "execution": [ { "command": "action.devices.commands.OnOff", "params": { "on": true } } ] } ] } } ] }
{ "requestId": "6894439706274654532", "payload": { "commands": [ { "ids": [ "123" ], "status": "SUCCESS", "states": { "online": true, "on": true } } ] } }