स्मार्ट होम एयर कूलर गाइड
action.devices.types.AIRCOOLER
- एयर कूलर ऐसे डिवाइस होते हैं जो तापमान को ठंडा करने और नमी को कंट्रोल करने की सुविधा देते हैं. ये डिवाइस आम तौर पर एयर कंडिशनर के मुकाबले कम वज़न के और पोर्टेबल होते हैं. इनमें एक पानी की टंकी भी लगी होती है. ऐसा हो सकता है कि एयर कूलर, गर्म करने या सटीक तापमान सेट करने की सुविधा पर काम न करें. एयर कूलर का इस्तेमाल करने पर, पंखे की रफ़्तार और नमी की सेटिंग में बदलाव हो सकता है.
इस टाइप से पता चलता है कि डिवाइस को Air Cooler का आइकॉन और इससे जुड़े कुछ समानार्थी शब्द और उपनाम मिल चुके हैं.
डिवाइस की क्षमताएं
लागू करने के बारे में जानकारी के लिए, उससे जुड़े Trait दस्तावेज़ देखें. जैसे, एट्रिब्यूट और कहा जाता है कि आपकी सेवा में किन सुविधाओं का इस्तेमाल किया जाना चाहिए. साथ ही, EXECUTE और QUERY रिस्पॉन्स बनाने का तरीका भी देखें.
ज़रूरी traits
अगर आपके डिवाइस पर लागू हो, तो ये विशेषताएं और निर्देश ज़रूरी हैं. अगर आपके डिवाइस पर ये सुविधाएं काम नहीं करती हैं, तो QUERY या EXECUTE रिस्पॉन्स में functionNotSupported
का गड़बड़ी कोड डालें. ज़्यादा जानकारी के लिए
गड़बड़ियां और अपवाद देखें.
-
action.devices.traits.FanSpeed
-
action.devices.traits.HumiditySetting
-
action.devices.traits.OnOff
-
action.devices.traits.TemperatureSetting
क्वालिटी के लिए ज़रूरी शर्तें
- इंतज़ार का समय: 1000 मि.से. या इससे कम होना चाहिए.
- विश्वसनीयता: 97% या इससे ज़्यादा होना चाहिए.
उदाहरण डिवाइस: सामान्य एयर कूलर
इस सेक्शन में, उदाहरण के तौर पर इंटेंट पेलोड दिए गए हैं, जो डिवाइस के टाइप और ऊपर बताई गई विशेषताओं के आधार पर सामान्य "एयर कूलर" को दिखाते हैं. अगर लागू करने की प्रक्रिया में एट्रिब्यूट जोड़े या हटाए जाते हैं, तो उन बदलावों को दिखाने के लिए अपने जवाबों में बदलाव करें.
सिंक के जवाब का नमूना
{ "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" } } ] } }
क्वेरी के जवाब का उदाहरण
{ "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" } } ] } }
SetHumidity
कमांड पैरामीटर के बारे में ज़्यादा जानकारी के लिए,
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 } } ] } }
OnOff
कमांड पैरामीटर के बारे में ज़्यादा जानकारी के लिए,
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 } } ] } }
ThermostatTemperatureSetpoint
कमांड पैरामीटर के बारे में ज़्यादा जानकारी के लिए,
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 } } ] } }
ThermostatSetMode
कमांड पैरामीटर के बारे में ज़्यादा जानकारी के लिए,
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 } } ] } }