स्मार्ट होम मीडिया रिमोट की गाइड
action.devices.types.REMOTECONTROL
- मीडिया रिमोट का इस्तेमाल, मीडिया डिवाइसों को कंट्रोल करने के लिए किया जाता है. इस तरह के डिवाइसों के उदाहरणों में हब, यूनिवर्सल रिमोट, और मीडिया कंट्रोलर शामिल हैं.
इस टाइप से पता चलता है कि डिवाइस पर मीडिया रिमोट आइकॉन और उससे मिलते-जुलते कुछ शब्द और उपनाम दिखते हैं.
डिवाइस की सुविधाएं
लागू करने से जुड़ी जानकारी के लिए, उस ट्रेट का दस्तावेज़ देखें. जैसे, एट्रिब्यूट और स्थितियां जिनके साथ आपकी सेवा काम करनी चाहिए. साथ ही, EXECUTE और QUERY रिस्पॉन्स बनाने का तरीका.
ज़रूरी विशेषताएं
अगर आपके डिवाइस पर ये सुविधाएं काम करती हैं, तो इन विशेषताओं और निर्देशों की ज़रूरत होती है. अगर आपके डिवाइस पर ये ट्रैट काम नहीं करते, तो QUERY या EXECUTE रिस्पॉन्स में functionNotSupported
का गड़बड़ी कोड डालें. ज़्यादा जानकारी के लिए, गड़बड़ियां और अपवाद देखें.
विशेषता | निर्देश |
---|---|
action.devices.traits.AppSelector |
|
action.devices.traits.InputSelector |
|
action.devices.traits.MediaState |
|
action.devices.traits.OnOff |
|
action.devices.traits.TransportControl |
|
action.devices.traits.Volume |
|
सुझाई गई विशेषताएं
अगर आपके डिवाइस पर ये सुविधाएं काम करती हैं, तो इनका सुझाव दिया जाता है. हालांकि, अपने मौजूदा प्रॉडक्ट की सुविधाओं के हिसाब से, उपलब्ध सभी ट्रैट को आपस में मिलाया जा सकता है.
action.devices.traits.Channel
action.devices.traits.Modes
- टीवी मोड (जैसे, सिनेमा या स्पोर्ट्स)
action.devices.traits.Toggles
क्वालिटी के लिए ज़रूरी शर्तें
- इंतज़ार का समय: यह 3000 मि॰से॰ से कम या इसके बराबर होना चाहिए.
- भरोसेमंदता: यह 97% से ज़्यादा या उसके बराबर होनी चाहिए.
डिवाइस का उदाहरण: आसान मीडिया रिमोट
इस सेक्शन में, डिवाइस टाइप और ऊपर बताए गए ट्रैट के आधार पर, सामान्य "मीडिया रिमोट" के उदाहरण के तौर पर इंटेंट पेलोड दिए गए हैं. अगर आपने लागू करने के दौरान कोई विशेषता जोड़ी या हटाई है, तो उन बदलावों को दिखाने के लिए, अपने जवाबों में बदलाव करें.
सिंक के रिस्पॉन्स का सैंपल
{ "requestId": "6894439706274654512", "inputs": [ { "intent": "action.devices.SYNC" } ] }
{ "requestId": "6894439706274654512", "payload": { "agentUserId": "user123", "devices": [ { "id": "123", "type": "action.devices.types.REMOTECONTROL", "traits": [ "action.devices.traits.Channel", "action.devices.traits.AppSelector", "action.devices.traits.InputSelector", "action.devices.traits.MediaState", "action.devices.traits.OnOff", "action.devices.traits.TransportControl", "action.devices.traits.Volume" ], "name": { "name": "Simple media remote" }, "willReportState": true, "attributes": { "transportControlSupportedCommands": [ "NEXT", "PREVIOUS", "PAUSE", "STOP", "RESUME", "CAPTION_CONTROL" ], "availableApplications": [ { "key": "youtube", "names": [ { "name_synonym": [ "Youtube", "Youtube_en" ], "lang": "en" } ] } ], "availableChannels": [ { "key": "ktvu2", "names": [ "Fox", "KTVU" ], "number": "2" }, { "key": "abc1", "names": [ "ABC", "ABC East" ], "number": "702.4-11" } ], "availableInputs": [ { "key": "hdmi_1", "names": [ { "name_synonym": [ "HDMI 1", "DVD Player" ], "lang": "en" } ] }, { "key": "hdmi_2", "names": [ { "name_synonym": [ "HDMI 2", "TV" ], "lang": "en" } ] } ], "orderedInputs": false, "volumeMaxLevel": 11, "volumeCanMuteAndUnmute": true, "volumeDefaultPercentage": 6, "levelStepSize": 2, "commandOnlyVolume": false, "supportActivityState": true, "supportPlaybackState": true }, "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, "currentApplication": "youtube", "currentInput": "hdmi_1", "currentVolume": 10, "isMuted": false, "activityState": "ACTIVE", "playbackState": "PAUSED" } } } }
EXECUTE कमांड के सैंपल
appInstall
कमांड पैरामीटर के बारे में ज़्यादा जानकारी के लिए,
action.devices.traits.AppSelector
रेफ़रंस देखें.
{ "requestId": "6894439706274654522", "inputs": [ { "intent": "action.devices.EXECUTE", "payload": { "commands": [ { "devices": [ { "id": "123" } ], "execution": [ { "command": "action.devices.commands.appInstall", "params": { "newApplication": "youtube" } } ] } ] } } ] }
{ "requestId": "6894439706274654522", "payload": { "commands": [ { "ids": [ "123" ], "status": "SUCCESS", "states": { "online": true, "currentApplication": "youtube" } } ] } }
appSearch
कमांड पैरामीटर के बारे में ज़्यादा जानकारी के लिए,
action.devices.traits.AppSelector
रेफ़रंस देखें.
{ "requestId": "6894439706274654524", "inputs": [ { "intent": "action.devices.EXECUTE", "payload": { "commands": [ { "devices": [ { "id": "123" } ], "execution": [ { "command": "action.devices.commands.appSearch", "params": { "newApplication": "youtube" } } ] } ] } } ] }
{ "requestId": "6894439706274654524", "payload": { "commands": [ { "ids": [ "123" ], "status": "SUCCESS", "states": { "online": true, "currentApplication": "youtube" } } ] } }
appSelect
कमांड पैरामीटर के बारे में ज़्यादा जानकारी के लिए,
action.devices.traits.AppSelector
रेफ़रंस देखें.
{ "requestId": "6894439706274654526", "inputs": [ { "intent": "action.devices.EXECUTE", "payload": { "commands": [ { "devices": [ { "id": "123" } ], "execution": [ { "command": "action.devices.commands.appSelect", "params": { "newApplication": "youtube" } } ] } ] } } ] }
{ "requestId": "6894439706274654526", "payload": { "commands": [ { "ids": [ "123" ], "status": "SUCCESS", "states": { "online": true, "currentApplication": "youtube" } } ] } }
SetInput
कमांड पैरामीटर के बारे में ज़्यादा जानकारी के लिए,
action.devices.traits.InputSelector
रेफ़रंस देखें.
{ "requestId": "6894439706274654528", "inputs": [ { "intent": "action.devices.EXECUTE", "payload": { "commands": [ { "devices": [ { "id": "123" } ], "execution": [ { "command": "action.devices.commands.SetInput", "params": { "newInput": "hdmi_2" } } ] } ] } } ] }
{ "requestId": "6894439706274654528", "payload": { "commands": [ { "ids": [ "123" ], "status": "SUCCESS", "states": { "online": true, "currentInput": "hdmi_2" } } ] } }
PreviousInput
कमांड पैरामीटर के बारे में ज़्यादा जानकारी के लिए,
action.devices.traits.InputSelector
रेफ़रंस देखें.
{ "requestId": "6894439706274654532", "inputs": [ { "intent": "action.devices.EXECUTE", "payload": { "commands": [ { "devices": [ { "id": "123" } ], "execution": [ { "command": "action.devices.commands.PreviousInput" } ] } ] } } ] }
{ "requestId": "6894439706274654532", "payload": { "commands": [ { "ids": [ "123" ], "status": "SUCCESS", "states": { "online": true, "currentInput": "hdmi_2" } } ] } }
NextInput
कमांड पैरामीटर के बारे में ज़्यादा जानकारी के लिए,
action.devices.traits.InputSelector
रेफ़रंस देखें.
{ "requestId": "6894439706274654530", "inputs": [ { "intent": "action.devices.EXECUTE", "payload": { "commands": [ { "devices": [ { "id": "123" } ], "execution": [ { "command": "action.devices.commands.NextInput" } ] } ] } } ] }
{ "requestId": "6894439706274654530", "payload": { "commands": [ { "ids": [ "123" ], "status": "SUCCESS", "states": { "online": true, "currentInput": "hdmi_2" } } ] } }
OnOff
कमांड पैरामीटर के बारे में ज़्यादा जानकारी के लिए,
action.devices.traits.OnOff
रेफ़रंस देखें.
{ "requestId": "6894439706274654534", "inputs": [ { "intent": "action.devices.EXECUTE", "payload": { "commands": [ { "devices": [ { "id": "123" } ], "execution": [ { "command": "action.devices.commands.OnOff", "params": { "on": true } } ] } ] } } ] }
{ "requestId": "6894439706274654534", "payload": { "commands": [ { "ids": [ "123" ], "status": "SUCCESS", "states": { "online": true, "on": true } } ] } }
mediaClosedCaptioningOff
कमांड पैरामीटर के बारे में ज़्यादा जानकारी के लिए,
action.devices.traits.TransportControl
रेफ़रंस देखें.
{ "requestId": "6894439706274654536", "inputs": [ { "intent": "action.devices.EXECUTE", "payload": { "commands": [ { "devices": [ { "id": "123" } ], "execution": [ { "command": "action.devices.commands.mediaClosedCaptioningOff" } ] } ] } } ] }
{ "requestId": "6894439706274654536", "payload": { "commands": [ { "ids": [ "123" ], "status": "SUCCESS", "states": { "online": true, "playbackState": "PLAYING" } } ] } }
mediaClosedCaptioningOn
कमांड पैरामीटर के बारे में ज़्यादा जानकारी के लिए,
action.devices.traits.TransportControl
रेफ़रंस देखें.
{ "requestId": "6894439706274654538", "inputs": [ { "intent": "action.devices.EXECUTE", "payload": { "commands": [ { "devices": [ { "id": "123" } ], "execution": [ { "command": "action.devices.commands.mediaClosedCaptioningOn", "params": { "closedCaptioningLanguage": "en" } } ] } ] } } ] }
{ "requestId": "6894439706274654538", "payload": { "commands": [ { "ids": [ "123" ], "status": "SUCCESS", "states": { "online": true, "playbackState": "PLAYING" } } ] } }
mediaNext
कमांड पैरामीटर के बारे में ज़्यादा जानकारी के लिए,
action.devices.traits.TransportControl
रेफ़रंस देखें.
{ "requestId": "6894439706274654540", "inputs": [ { "intent": "action.devices.EXECUTE", "payload": { "commands": [ { "devices": [ { "id": "123" } ], "execution": [ { "command": "action.devices.commands.mediaNext" } ] } ] } } ] }
{ "requestId": "6894439706274654540", "payload": { "commands": [ { "ids": [ "123" ], "status": "SUCCESS", "states": { "online": true, "playbackState": "FAST_FORWARDING" } } ] } }
mediaPause
कमांड पैरामीटर के बारे में ज़्यादा जानकारी के लिए,
action.devices.traits.TransportControl
रेफ़रंस देखें.
{ "requestId": "6894439706274654542", "inputs": [ { "intent": "action.devices.EXECUTE", "payload": { "commands": [ { "devices": [ { "id": "123" } ], "execution": [ { "command": "action.devices.commands.mediaPause" } ] } ] } } ] }
{ "requestId": "6894439706274654542", "payload": { "commands": [ { "ids": [ "123" ], "status": "SUCCESS", "states": { "online": true, "playbackState": "PAUSED" } } ] } }
mediaPrevious
कमांड पैरामीटर के बारे में ज़्यादा जानकारी के लिए,
action.devices.traits.TransportControl
रेफ़रंस देखें.
{ "requestId": "6894439706274654544", "inputs": [ { "intent": "action.devices.EXECUTE", "payload": { "commands": [ { "devices": [ { "id": "123" } ], "execution": [ { "command": "action.devices.commands.mediaPrevious" } ] } ] } } ] }
{ "requestId": "6894439706274654544", "payload": { "commands": [ { "ids": [ "123" ], "status": "SUCCESS", "states": { "online": true, "playbackState": "REWINDING" } } ] } }
mediaResume
कमांड पैरामीटर के बारे में ज़्यादा जानकारी के लिए,
action.devices.traits.TransportControl
रेफ़रंस देखें.
{ "requestId": "6894439706274654546", "inputs": [ { "intent": "action.devices.EXECUTE", "payload": { "commands": [ { "devices": [ { "id": "123" } ], "execution": [ { "command": "action.devices.commands.mediaResume" } ] } ] } } ] }
{ "requestId": "6894439706274654546", "payload": { "commands": [ { "ids": [ "123" ], "status": "SUCCESS", "states": { "online": true, "playbackState": "PLAYING" } } ] } }
mediaStop
कमांड पैरामीटर के बारे में ज़्यादा जानकारी के लिए,
action.devices.traits.TransportControl
रेफ़रंस देखें.
{ "requestId": "6894439706274654548", "inputs": [ { "intent": "action.devices.EXECUTE", "payload": { "commands": [ { "devices": [ { "id": "123" } ], "execution": [ { "command": "action.devices.commands.mediaStop" } ] } ] } } ] }
{ "requestId": "6894439706274654548", "payload": { "commands": [ { "ids": [ "123" ], "status": "SUCCESS", "states": { "online": true, "playbackState": "STOPPED" } } ] } }
म्यूट करें
कमांड पैरामीटर के बारे में ज़्यादा जानकारी के लिए,
action.devices.traits.Volume
रेफ़रंस देखें.
{ "requestId": "6894439706274654552", "inputs": [ { "intent": "action.devices.EXECUTE", "payload": { "commands": [ { "devices": [ { "id": "123" } ], "execution": [ { "command": "action.devices.commands.mute", "params": { "mute": true } } ] } ] } } ] }
{ "requestId": "6894439706274654552", "payload": { "commands": [ { "ids": [ "123" ], "status": "SUCCESS", "states": { "online": true, "currentVolume": 10, "isMuted": true } } ] } }
setVolume
कमांड पैरामीटर के बारे में ज़्यादा जानकारी के लिए,
action.devices.traits.Volume
रेफ़रंस देखें.
{ "requestId": "6894439706274654550", "inputs": [ { "intent": "action.devices.EXECUTE", "payload": { "commands": [ { "devices": [ { "id": "123" } ], "execution": [ { "command": "action.devices.commands.setVolume", "params": { "volumeLevel": 11 } } ] } ] } } ] }
{ "requestId": "6894439706274654550", "payload": { "commands": [ { "ids": [ "123" ], "status": "SUCCESS", "states": { "online": true, "currentVolume": 11, "isMuted": false } } ] } }