स्मार्ट होम एयर कूलर गाइड
action.devices.types.AIRCOOLER
- एयर कूलर ऐसे डिवाइस होते हैं जो तापमान को ठंडा और नमी को कंट्रोल करने की सुविधा देते हैं. ये डिवाइस आम तौर पर हल्के होते हैं और एयर कंडीशनर के मुकाबले पोर्टेबल होते हैं. इन पर पानी का टैंक लगा होता है. हो सकता है कि एयर कूलर को गर्म या सटीक तापमान पर सेट नहीं किया जा सकता. एयर कूलर के साथ इंटरैक्ट करने में पंखे की रफ़्तार और नमी की सेटिंग बदलना शामिल हो सकता है.
यह टाइप बताता है कि डिवाइस को एयर कूलर आइकॉन और इससे जुड़े कुछ समानार्थी शब्द और उपनाम मिल गए हैं.
डिवाइस की क्षमताएं
लागू करने से जुड़ी विशेषताओं के दस्तावेज़ देखें, जैसे कि एट्रिब्यूट और स्थितियां जिनमें आपकी सेवा को काम करना चाहिए और EXECUTE और QUERY रिस्पॉन्स बनाने का तरीका भी देखें.
ज़रूरी विशेषताएं
अगर ये एट्रिब्यूट और निर्देश आपके डिवाइस पर लागू होते हैं, तो वे ज़रूरी हैं.
-
action.devices.traits.FanSpeed
-
action.devices.traits.HumiditySetting
-
action.devices.traits.OnOff
-
action.devices.traits.TemperatureSetting
क्वालिटी के लिए ज़रूरी शर्तें
- इंतज़ार का समय: 1000 मि.से. से कम या उसके बराबर होना चाहिए.
- विश्वसनीयता: 97% से ज़्यादा या उसके बराबर होना चाहिए.
उदाहरण डिवाइस: साधारण एयर कूलर
इस सेक्शन में, उदाहरण के तौर पर ऐसे इंटेंट पेलोड शामिल हैं जो ऊपर बताए गए, डिवाइस टाइप और विशेषताओं के आधार पर, एक सामान्य "Air Cooler" को दिखाते हैं. अगर लागू करने की प्रक्रिया में विशेषताओं को जोड़ा या हटाया जाता है, तो उसी हिसाब से अपने जवाबों में बदलाव करें.
SYNC जवाब का नमूना
{ "requestId": "6894439706274654512", "inputs": [ { "intent": "action.devices.SYNC" } ] }
{ "requestId": "6894439706274654512", "payload": { "agentUserId": "user123", "devices": [ { "id": "123", "type": "action.devices.types.AIRCOOLER", "traits": [ "action.devices.traits.FanSpeed", "action.devices.traits.HumiditySetting", "action.devices.traits.OnOff", "action.devices.traits.TemperatureSetting" ], "name": { "name": "Simple air cooler" }, "willReportState": true, "attributes": { "humiditySetpointRange": { "minPercent": 0, "maxPercent": 50 }, "availableFanSpeeds": { "speeds": [ { "speed_name": "off_key", "speed_values": [ { "speed_synonym": [ "Off", "0" ], "lang": "en" } ] }, { "speed_name": "low_key", "speed_values": [ { "speed_synonym": [ "Low", "1" ], "lang": "en" } ] }, { "speed_name": "medium_key", "speed_values": [ { "speed_synonym": [ "Medium", "2" ], "lang": "en" } ] }, { "speed_name": "high_key", "speed_values": [ { "speed_synonym": [ "High", "3" ], "lang": "en" } ] } ], "ordered": true }, "availableThermostatModes": [ "off", "cool", "on", "fan-only", "eco" ], "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, "on": true, "currentFanSpeedSetting": "low_key", "thermostatMode": "cool", "thermostatTemperatureAmbient": 25, "thermostatTemperatureSetpoint": 20, "humiditySetpointPercent": 15, "humidityAmbientPercent": 10 } } } }
EXECUTE निर्देशों का नमूना
SetFanspeed
कमांड पैरामीटर से जुड़ी ज़्यादा जानकारी के लिए,
action.devices.traits.FanSpeed
रेफ़रंस देखें.
{ "requestId": "6894439706274654518", "inputs": [ { "intent": "action.devices.EXECUTE", "payload": { "commands": [ { "devices": [ { "id": "123" } ], "execution": [ { "command": "action.devices.commands.SetFanSpeed", "params": { "fanSpeed": "high_key" } } ] } ] } } ] }
{ "requestId": "6894439706274654518", "payload": { "commands": [ { "ids": [ "123" ], "status": "SUCCESS", "states": { "online": true, "currentFanSpeedSetting": "high_key" } } ] } }
सेमिड्युडिटी
कमांड पैरामीटर से जुड़ी ज़्यादा जानकारी के लिए,
action.devices.traits.HumiditySetting
रेफ़रंस देखें.
{ "requestId": "6894439706274654520", "inputs": [ { "intent": "action.devices.EXECUTE", "payload": { "commands": [ { "devices": [ { "id": "123" } ], "execution": [ { "command": "action.devices.commands.SetHumidity", "params": { "humidity": 20 } } ] } ] } } ] }
{ "requestId": "6894439706274654520", "payload": { "commands": [ { "ids": [ "123" ], "status": "SUCCESS", "states": { "online": true, "humiditySetpointPercent": 20, "humidityAmbientPercent": 10 } } ] } }
बंद है
कमांड पैरामीटर से जुड़ी ज़्यादा जानकारी के लिए,
action.devices.traits.OnOff
रेफ़रंस देखें.
{ "requestId": "6894439706274654516", "inputs": [ { "intent": "action.devices.EXECUTE", "payload": { "commands": [ { "devices": [ { "id": "123" } ], "execution": [ { "command": "action.devices.commands.OnOff", "params": { "on": true } } ] } ] } } ] }
{ "requestId": "6894439706274654516", "payload": { "commands": [ { "ids": [ "123" ], "status": "SUCCESS", "states": { "online": true, "on": true } } ] } }
थर्मोस्टैट का तापमानसेटपॉइंट
कमांड पैरामीटर से जुड़ी ज़्यादा जानकारी के लिए,
action.devices.traits.TemperatureSetting
रेफ़रंस देखें.
{ "requestId": "6894439706274654522", "inputs": [ { "intent": "action.devices.EXECUTE", "payload": { "commands": [ { "devices": [ { "id": "123" } ], "execution": [ { "command": "action.devices.commands.ThermostatTemperatureSetpoint", "params": { "thermostatTemperatureSetpoint": 22 } } ] } ] } } ] }
{ "requestId": "6894439706274654522", "payload": { "commands": [ { "ids": [ "123" ], "status": "SUCCESS", "states": { "online": true, "thermostatMode": "cool", "thermostatTemperatureSetpoint": 22, "thermostatTemperatureAmbient": 25.1 } } ] } }
थर्मोस्टैटसेट मोड
कमांड पैरामीटर से जुड़ी ज़्यादा जानकारी के लिए,
action.devices.traits.TemperatureSetting
रेफ़रंस देखें.
{ "requestId": "6894439706274654524", "inputs": [ { "intent": "action.devices.EXECUTE", "payload": { "commands": [ { "devices": [ { "id": "123" } ], "execution": [ { "command": "action.devices.commands.ThermostatSetMode", "params": { "thermostatMode": "cool" } } ] } ] } } ] }
{ "requestId": "6894439706274654524", "payload": { "commands": [ { "ids": [ "123" ], "status": "SUCCESS", "states": { "online": true, "thermostatMode": "cool", "thermostatTemperatureSetpoint": 22, "thermostatTemperatureAmbient": 25.1 } } ] } }