स्मार्ट होम थर्मोस्टैट की गाइड
action.devices.types.THERMOSTAT
- थर्मोस्टैट, तापमान को मैनेज करने वाले डिवाइस हैं. इनमें सेट किए गए पॉइंट और मोड भी शामिल हैं. यह उन्हें हीटर और एसी यूनिट से अलग करता है. इनमें सिर्फ़ मोड और सेटिंग (उदाहरण के लिए, ज़्यादा/कम) के मुकाबले, तापमान का टारगेट हो सकता है.
इस टाइप से पता चलता है कि डिवाइस को थर्मोस्टैट का आइकॉन मिलता है. साथ ही, इससे मिलते-जुलते समानार्थी शब्द और उपनाम भी मिलते हैं.
इस तरह के डिवाइस तापमान को कंट्रोल करते हैं, जबकि हीटिंग/कूलिंग रूम की कुछ यूनिट के लिए अलग-अलग कंट्रोल और ज़्यादा/कम मोड होते हैं. हालांकि, इनमें तापमान को कंट्रोल नहीं किया जाता.डिवाइस की क्षमताएं
लागू करने से जुड़ी विशेषताओं के दस्तावेज़ देखें, जैसे कि एट्रिब्यूट और स्थितियां जिनमें आपकी सेवा को काम करना चाहिए और EXECUTE और QUERY रिस्पॉन्स बनाने का तरीका भी देखें.
ज़रूरी विशेषताएं
अगर ये एट्रिब्यूट और निर्देश आपके डिवाइस पर लागू होते हैं, तो वे ज़रूरी हैं.
थर्मोस्टैट के निर्देशों को अक्सर EXECUTE
इंटेंट के साथ बांटा जाता है. जब कोई उपयोगकर्ता
कहता है कि *हीट को 72 पर सेट करो*, तो मोड मोड जनरेट होगा और उसके बाद तापमान सेट किया जाएगा.
क्वालिटी के लिए ज़रूरी शर्तें
- इंतज़ार का समय: 700 मि.से. से कम या इसके बराबर होना चाहिए.
- विश्वसनीयता: 97% से ज़्यादा या उसके बराबर होना चाहिए.
उदाहरण डिवाइस: साधारण थर्मोस्टैट
इस सेक्शन में उदाहरण के तौर पर दिए गए पेलोड शामिल हैं, जो ऊपर दिए गए डिवाइस टाइप और विशेषताओं के आधार पर, एक सामान्य "थर्मोस्टैट" दिखाते हैं. अगर लागू करने की प्रक्रिया में विशेषताओं को जोड़ा या हटाया जाता है, तो उसी हिसाब से अपने जवाबों में बदलाव करें.
SYNC जवाब का नमूना
{ "requestId": "6894439706274654512", "inputs": [ { "intent": "action.devices.SYNC" } ] }
{ "requestId": "6894439706274654512", "payload": { "agentUserId": "user123", "devices": [ { "id": "123", "type": "action.devices.types.THERMOSTAT", "traits": [ "action.devices.traits.TemperatureSetting" ], "name": { "name": "Simple thermostat" }, "willReportState": true, "attributes": { "availableThermostatModes": [ "off", "heat", "cool", "heatcool", "on" ], "thermostatTemperatureRange": { "minThresholdCelsius": 15, "maxThresholdCelsius": 30 }, "thermostatTemperatureUnit": "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, "thermostatMode": "cool", "thermostatTemperatureSetpoint": 23, "thermostatTemperatureAmbient": 25.1, "thermostatHumidityAmbient": 45.3 } } } }
EXECUTE निर्देशों का नमूना
थर्मोस्टैट का तापमानसेटपॉइंट
कमांड पैरामीटर से जुड़ी ज़्यादा जानकारी के लिए,
action.devices.traits.TemperatureSetting
रेफ़रंस देखें.
{ "requestId": "6894439706274654516", "inputs": [ { "intent": "action.devices.EXECUTE", "payload": { "commands": [ { "devices": [ { "id": "123" } ], "execution": [ { "command": "action.devices.commands.ThermostatTemperatureSetpoint", "params": { "thermostatTemperatureSetpoint": 22 } } ] } ] } } ] }
{ "requestId": "6894439706274654516", "payload": { "commands": [ { "ids": [ "123" ], "status": "SUCCESS", "states": { "online": true, "thermostatMode": "cool", "thermostatTemperatureSetpoint": 22, "thermostatTemperatureAmbient": 25.1 } } ] } }
थर्मोस्टैट का तापमानसेट रेंज
कमांड पैरामीटर से जुड़ी ज़्यादा जानकारी के लिए,
action.devices.traits.TemperatureSetting
रेफ़रंस देखें.
{ "requestId": "6894439706274654518", "inputs": [ { "intent": "action.devices.EXECUTE", "payload": { "commands": [ { "devices": [ { "id": "123" } ], "execution": [ { "command": "action.devices.commands.ThermostatTemperatureSetRange", "params": { "thermostatTemperatureSetpointHigh": 26, "thermostatTemperatureSetpointLow": 22 } } ] } ] } } ] }
{ "requestId": "6894439706274654518", "payload": { "commands": [ { "ids": [ "123" ], "status": "SUCCESS", "states": { "online": true, "thermostatMode": "heatcool", "thermostatTemperatureSetpointHigh": 26, "thermostatTemperatureSetpointLow": 22, "thermostatTemperatureAmbient": 25.1 } } ] } }
थर्मोस्टैटसेट मोड
कमांड पैरामीटर से जुड़ी ज़्यादा जानकारी के लिए,
action.devices.traits.TemperatureSetting
रेफ़रंस देखें.
{ "requestId": "6894439706274654520", "inputs": [ { "intent": "action.devices.EXECUTE", "payload": { "commands": [ { "devices": [ { "id": "123" } ], "execution": [ { "command": "action.devices.commands.ThermostatSetMode", "params": { "thermostatMode": "heatcool" } } ] } ] } } ] }
{ "requestId": "6894439706274654520", "payload": { "commands": [ { "ids": [ "123" ], "status": "SUCCESS", "states": { "online": true, "thermostatMode": "heatcool", "thermostatTemperatureSetpointHigh": 26, "thermostatTemperatureSetpointLow": 22, "thermostatTemperatureAmbient": 25.1 } } ] } }
डिवाइस की गड़बड़ियां
गड़बड़ियों और अपवादों की पूरी सूची देखें.inHeatOrCool
- हीट/ठंडा/रेंज के निर्देश नहीं पाए जा सके, क्योंकि डिवाइस गर्म या ठंडा है.inHeatCool
- गर्म या ठंडा करने के निर्देश इस वजह से काम नहीं कर रहे हैं, क्योंकि डिवाइस गर्म या ठंडा है.lockedToRange
- डिवाइस को तापमान की सीमा या मोड में लॉक किया गया है. इस बदलाव के लिए अनुरोध नहीं किया जा सकता.rangeTooClose
- हीटकूल की रेंज में मौजूद तापमान, एक-दूसरे के काफ़ी करीब है.