Özellikleri Kaydet
Google Asistan'ın cihazınıza gönderebilmek için bir sorguyu bir komutla ilişkilendirebilmesi gerekir. Bunun işe yaraması için cihazınızın ne tür yetenekleri
desteklediğini bildirmeniz gerekir. Bu yetenekler, özellikler olarak bilinir. Bu özellikleri cihaz modelinizin içinde beyan etmeniz gerekir.
Google, halihazırda birçok cihazda bulunan çok çeşitli ortak özellikler oluşturmuştur. Bu özellikler tek bir cihaz türüne bağlı değildir. Bunları dilediğiniz gibi kullanabilirsiniz.
Özellik ekle
Daha önce bir model tanımlamıştınız. Şimdi bu modeli özellik ekleyerek güncelleyin. Bu durumda, cihazınıza takılı bir LED'i kontrol etmek için açma/kapatma özelliği ekleyin.
Projeyi Actions Console'da açın.
Sol gezinme çubuğundan Cihaz kaydı sekmesini seçin.
Listeden bir modeli tıklayarak düzenleyebilirsiniz.
Desteklenen özellikler kutusundaki kalemi tıklayarak özelliği ekleyin.
OnOff onay kutusunu seçin. KAYDET'i tıklayın.
Modelde yapılan değişiklikleri kaydettiğinizden emin olun. KAYDET'i tekrar tıklayın.
Sonraki adım
İşleyici Komutları
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2023-12-02 UTC.
[null,null,["Son güncelleme tarihi: 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"]]