स्मार्ट होम हीटर गाइड
action.devices.types.HEATER
- हीटर, थर्मोस्टैट से मिलते-जुलते हैं. हालांकि, वे कूलिंग के साथ काम नहीं करते और हो सकता है कि इनसे तापमान के टारगेट सेट न किए जा सकें.
यह प्रकार बताता है कि डिवाइस को हीटर आइकॉन और कुछ मिलते-जुलते समानार्थी शब्द और उपनाम मिलते हैं.
डिवाइस की क्षमताएं
लागू करने से जुड़ी विशेषताओं के दस्तावेज़ देखें, जैसे कि एट्रिब्यूट और स्थितियां जिनमें आपकी सेवा को काम करना चाहिए और EXECUTE और QUERY रिस्पॉन्स बनाने का तरीका भी देखें.
ज़रूरी विशेषताएं
अगर ये एट्रिब्यूट और निर्देश आपके डिवाइस पर लागू होते हैं, तो वे ज़रूरी हैं.
सुझाए गए लक्षण
अगर ये एट्रिब्यूट डिवाइस पर लागू होते हैं, तो इनका सुझाव दिया जाता है. हालांकि, आप अपने प्रॉडक्ट की मौजूदा सुविधाओं के हिसाब से, काम करने के लिए मौजूद सभी एट्रिब्यूट को मिलाकर उनका मिलान कर सकते हैं.
क्वालिटी के लिए ज़रूरी शर्तें
- इंतज़ार का समय: 1000 मि.से. से कम या उसके बराबर होना चाहिए.
- विश्वसनीयता: 97% से ज़्यादा या उसके बराबर होना चाहिए.
उदाहरण डिवाइस: सामान्य हीटर
इस सेक्शन में, उदाहरण के तौर पर ऐसे इंटेंट पेलोड शामिल हैं जो ऊपर दिए गए डिवाइस टाइप और विशेषताओं के आधार पर, एक आम "हीटर" का प्रतिनिधित्व करते हैं. अगर लागू करने की प्रक्रिया में विशेषताओं को जोड़ा या हटाया जाता है, तो उसी हिसाब से अपने जवाबों में बदलाव करें.
SYNC जवाब का नमूना
{ "requestId": "6894439706274654512", "inputs": [ { "intent": "action.devices.SYNC" } ] }
{ "requestId": "6894439706274654512", "payload": { "agentUserId": "user123", "devices": [ { "id": "123", "type": "action.devices.types.HEATER", "traits": [ "action.devices.traits.FanSpeed", "action.devices.traits.TemperatureSetting" ], "name": { "name": "Simple heater" }, "willReportState": true, "attributes": { "availableFanSpeeds": { "speeds": [ { "speed_name": "low_key", "speed_values": [ { "speed_synonym": [ "Low", "Slow" ], "lang": "en" } ] }, { "speed_name": "high_key", "speed_values": [ { "speed_synonym": [ "High" ], "lang": "en" } ] } ], "ordered": true }, "availableThermostatModes": [ "off", "heat", "fan-only", "on" ], "thermostatTemperatureUnit": "C" }, "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, "currentFanSpeedSetting": "low_key", "thermostatMode": "heat", "thermostatTemperatureSetpoint": 30, "thermostatTemperatureAmbient": 25 } } } }
EXECUTE निर्देशों का नमूना
SetFanspeed
कमांड पैरामीटर से जुड़ी ज़्यादा जानकारी के लिए, action.devices.traits.FanSpeed
रेफ़रंस देखें.
{ "requestId": "6894439706274654516", "inputs": [ { "intent": "action.devices.EXECUTE", "payload": { "commands": [ { "devices": [ { "id": "123" } ], "execution": [ { "command": "action.devices.commands.SetFanSpeed", "params": { "fanSpeed": "high_key" } } ] } ] } } ] }
{ "requestId": "6894439706274654516", "payload": { "commands": [ { "ids": [ "123" ], "status": "SUCCESS", "states": { "online": true, "currentFanSpeedSetting": "high_key" } } ] } }
थर्मोस्टैट का तापमानसेटपॉइंट
कमांड पैरामीटर से जुड़ी ज़्यादा जानकारी के लिए, action.devices.traits.TemperatureSetting
रेफ़रंस देखें.
{ "requestId": "6894439706274654518", "inputs": [ { "intent": "action.devices.EXECUTE", "payload": { "commands": [ { "devices": [ { "id": "123" } ], "execution": [ { "command": "action.devices.commands.ThermostatTemperatureSetpoint", "params": { "thermostatTemperatureSetpoint": 28 } } ] } ] } } ] }
{ "requestId": "6894439706274654518", "payload": { "commands": [ { "ids": [ "123" ], "status": "SUCCESS", "states": { "online": true, "thermostatMode": "heat", "thermostatTemperatureSetpoint": 28, "thermostatTemperatureAmbient": 25 } } ] } }
थर्मोस्टैटसेट मोड
कमांड पैरामीटर से जुड़ी ज़्यादा जानकारी के लिए, action.devices.traits.TemperatureSetting
रेफ़रंस देखें.
{ "requestId": "6894439706274654520", "inputs": [ { "intent": "action.devices.EXECUTE", "payload": { "commands": [ { "devices": [ { "id": "123" } ], "execution": [ { "command": "action.devices.commands.ThermostatSetMode", "params": { "thermostatMode": "heat" } } ] } ] } } ] }
{ "requestId": "6894439706274654520", "payload": { "commands": [ { "ids": [ "123" ], "status": "SUCCESS", "states": { "online": true, "thermostatMode": "heat", "thermostatTemperatureSetpoint": 30, "thermostatTemperatureAmbient": 25 } } ] } }