विशेषताएं रजिस्टर करें
Google Assistant के लिए यह ज़रूरी है कि वह क्वेरी को आपके डिवाइस पर भेजने के लिए,
कमांड से जोड़ सके. यह काम करे, इसके लिए आपको यह बताना होगा कि आपका डिवाइस
किस तरह की क्षमताओं पर काम करता है. इन क्षमताओं को Traits कहा जाता है. आपको
इन विशेषताओं के बारे में अपने डिवाइस मॉडल में बताना होता है.
Google ने पहले ही कई डिवाइसों पर मिलने वाली कई तरह की सामान्य विशेषताएं तैयार की हैं. ये विशेषताएं सिर्फ़ एक तरह के डिवाइस से जुड़ी नहीं होती हैं, आप
उन्हें अपनी पसंद के मुताबिक इस्तेमाल कर सकते हैं.
कोई Trait जोड़ें
आपने पहले एक मॉडल तय किया था. अब Trait जोड़कर इसे अपडेट करें. ऐसे मामले में, अपने डिवाइस से जुड़ी एलईडी को कंट्रोल करने के लिए, चालू/बंद वाला trait जोड़ें.
प्रोजेक्ट को Actions कंसोल में खोलें.
बाएं नेविगेशन बार से डिवाइस रजिस्ट्रेशन टैब चुनें.
सूची में से किसी मॉडल पर क्लिक करके उसमें बदलाव करें.
सुविधा जोड़ने के लिए, काम करने वाले traits बॉक्स में पेंसिल के निशान पर क्लिक करें.
OnOff चेकबॉक्स को चुनें. सेव करें पर क्लिक करें.
मॉडल में किए गए बदलावों को सेव करना न भूलें. सेव करें पर फिर से क्लिक करें.
अगला कदम
निर्देश मैनेज करें
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2023-12-02 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2023-12-02 (UTC) को अपडेट किया गया."],[[["Google Assistant utilizes \"traits\" to link user queries to device commands, requiring developers to define device capabilities within their device model."],["Google provides pre-built traits for common device functionalities, offering flexibility in implementation across various device types."],["To add a trait, developers can access their device model through the Actions Console, select the desired trait from the available options, and save the changes."],["The example demonstrates adding an On/Off trait for controlling an LED, illustrating the process of extending device functionality."]]],["Device functionality is enabled by declaring supported abilities, known as traits, within a device model. These traits, provided by Google, are reusable across various devices. To add a trait, users must access the Actions Console, navigate to Device Registration, select a model, and edit its Supported traits. For instance, to add On/Off control for an LED, the OnOff trait is selected and saved in the device's model, with another save step to finalize.\n"]]