स्मार्ट होम अवन की गाइड
action.devices.types.OVEN
- अवन के साथ इंटरैक्ट करने के दौरान, कुछ तापमानों पर सेक करने या बेक करने की सुविधा इस्तेमाल की जा सकती है. अवन का अंदरूनी तापमान, अवन के गर्म होने की वजह से अलग होता है. इसलिए, इस पर भी नज़र रखी जा सकती है. अवन में खाना पकाने का समय होता है, जिससे वह बेक हो सकता है.
इस टाइप से पता चलता है कि डिवाइस को अवन का आइकॉन और कुछ मिलते-जुलते समानार्थी शब्द और उपनाम मिले हैं.
अवन मेंaction.devices.traits.OnOff
और action.devices.traits.TemperatureControl
के लिए, टाइप पर आधारित व्याकरण होता है:
- अगर डिवाइस में
OnOff
काम करता है, तो ओवन को पहले से गर्म करें से एकaction.devices.commands.OnOff
निर्देश भेजा जाएगा. - अगर डिवाइस पर
TemperatureControl
काम करता है, तो पहले से अवन को 350 डिग्री पर गर्म करें. इस दौरान, अवन को उस तापमान पर सेट करने के लिए निर्देश भेजा जाएगा.
डिवाइस की काबिलियत
लागू करने से जुड़ी जानकारी के लिए, उससे जुड़े एट्रिब्यूट देखें. जैसे, एट्रिब्यूट और स्थितियां, जिन्हें आपकी सेवा को इस्तेमाल करने की अनुमति देनी चाहिए. साथ ही, EXECUTE और QUERY रिस्पॉन्स बनाने का तरीका भी बताएं.
ज़रूरी बातें
अगर आपके डिवाइस पर ये विशेषताएं और निर्देश लागू होते हैं, तो वे ज़रूरी हैं.
सुझाए गए लक्षण
अगर ये विशेषताएं आपके डिवाइस पर लागू होती हैं, तो उनका सुझाव दिया जाता है. हालांकि, आपके पास प्रॉडक्ट की सभी उपलब्ध सुविधाओं को मिलाने और उनसे मिलान करने का विकल्प है. हालांकि, इसके लिए ज़रूरी है कि वे आपकी मौजूदा प्रॉडक्ट सुविधाओं से पूरी तरह मेल खाते हों.
क्वालिटी के लिए ज़रूरी शर्तें
- इंतज़ार का समय: 3,000 मि॰से॰ से कम या उसके बराबर होना चाहिए.
- विश्वसनीयता: 97% से ज़्यादा या उसके बराबर होना चाहिए.
उदाहरण डिवाइस: सिंपल अवन
इस सेक्शन में, ऊपर दिए गए डिवाइस टाइप और विशेषताओं के आधार पर, इंटेंट "पेलोड" का उदाहरण दिया गया है. यह आम तौर पर "ओवन" दिखाता है. लागू किए गए हिस्सों में विशेषताएं जोड़ें या हटाएं. इसके बाद, उन बदलावों को दिखाने के लिए अपने जवाबों में ज़रूरत के मुताबिक बदलाव करें.
SYNC जवाब का नमूना
{ "requestId": "6894439706274654512", "inputs": [ { "intent": "action.devices.SYNC" } ] }
{ "requestId": "6894439706274654512", "payload": { "agentUserId": "user123", "devices": [ { "id": "123", "type": "action.devices.types.OVEN", "traits": [ "action.devices.traits.Cook", "action.devices.traits.OnOff", "action.devices.traits.TemperatureControl", "action.devices.traits.Timer", "action.devices.traits.StartStop" ], "name": { "name": "Simple oven" }, "willReportState": true, "attributes": { "supportedCookingModes": [ "BAKE", "CONVECTION_BAKE", "ROAST" ], "maxTimerLimitSec": 3600, "temperatureRange": { "minThresholdCelsius": 65, "maxThresholdCelsius": 288 }, "temperatureUnitForUX": "F" }, "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, "temperatureSetpointCelsius": 175, "currentCookingMode": "BAKE", "timerRemainingSec": -1 } } } }
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": true, "cookingMode": "ROAST" } } ] } ] } } ] }
{ "requestId": "6894439706274654516", "payload": { "commands": [ { "ids": [ "123" ], "status": "SUCCESS", "states": { "online": true, "currentCookingMode": "ROAST" } } ] } }
बंद है
कमांड पैरामीटर के बारे में ज़्यादा जानने के लिए,
action.devices.traits.OnOff
रेफ़रंस देखें.
{ "requestId": "6894439706274654518", "inputs": [ { "intent": "action.devices.EXECUTE", "payload": { "commands": [ { "devices": [ { "id": "123" } ], "execution": [ { "command": "action.devices.commands.OnOff", "params": { "on": true } } ] } ] } } ] }
{ "requestId": "6894439706274654518", "payload": { "commands": [ { "ids": [ "123" ], "status": "SUCCESS", "states": { "online": true, "on": true } } ] } }
तापमान सेट करना
कमांड पैरामीटर के बारे में ज़्यादा जानने के लिए,
action.devices.traits.TemperatureControl
रेफ़रंस देखें.
{ "requestId": "6894439706274654520", "inputs": [ { "intent": "action.devices.EXECUTE", "payload": { "commands": [ { "devices": [ { "id": "123" } ], "execution": [ { "command": "action.devices.commands.SetTemperature", "params": { "temperature": 200 } } ] } ] } } ] }
{ "requestId": "6894439706274654520", "payload": { "commands": [ { "ids": [ "123" ], "status": "SUCCESS", "states": { "online": true, "temperatureSetpointCelsius": 200, "temperatureAmbientCelsius": 100 } } ] } }
टाइमर शुरू होने का समय
कमांड पैरामीटर के बारे में ज़्यादा जानने के लिए,
action.devices.traits.Timer
रेफ़रंस देखें.
{ "requestId": "6894439706274654522", "inputs": [ { "intent": "action.devices.EXECUTE", "payload": { "commands": [ { "devices": [ { "id": "123" } ], "execution": [ { "command": "action.devices.commands.TimerStart", "params": { "timerTimeSec": 300 } } ] } ] } } ] }
{ "requestId": "6894439706274654522", "payload": { "commands": [ { "ids": [ "123" ], "status": "SUCCESS", "states": { "online": true, "timerRemainingSec": 300 } } ] } }
टाइमर एडजस्ट करें
कमांड पैरामीटर के बारे में ज़्यादा जानने के लिए,
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": 290 } } ] } }
टाइमर रोकें
कमांड पैरामीटर के बारे में ज़्यादा जानने के लिए,
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": 300, "timerPaused": true } } ] } }
टाइमर फिर से शुरू करें
कमांड पैरामीटर के बारे में ज़्यादा जानने के लिए,
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": 300, "timerPaused": false } } ] } }
टाइमर रद्द करें
कमांड पैरामीटर के बारे में ज़्यादा जानने के लिए,
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 } } ] } }
स्टार्टस्टॉप
कमांड पैरामीटर के बारे में ज़्यादा जानने के लिए,
action.devices.traits.StartStop
रेफ़रंस देखें.
{ "requestId": "6894439706274654532", "inputs": [ { "intent": "action.devices.EXECUTE", "payload": { "commands": [ { "devices": [ { "id": "123" } ], "execution": [ { "command": "action.devices.commands.StartStop", "params": { "start": true } } ] } ] } } ] }
{ "requestId": "6894439706274654532", "payload": { "commands": [ { "ids": [ "123" ], "status": "SUCCESS", "states": { "online": true, "isRunning": true } } ] } }