對話動作已於 2023 年 6 月 13 日淘汰。詳情請參閱「
對話動作已淘汰」。
裝置特徵
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
裝置類型的功能來自您為每個類型新增的特性。每種裝置類型都有幾種建議特性,但您也可以新增任何偏好的屬性。
姓名 |
裝置特色 |
說明 |
建議裝置類型 |
亮度 |
action.devices.traits.Brightness |
絕對亮度設定在正規化值到 0 到 100 之間 (個別燈具可能不支援根據 LED 設定範圍中的每個點)。 |
淺色指南 |
色彩規格 |
action.devices.traits.ColorSpectrum |
這適用於採用 RGB 顏色範圍的「全彩」燈泡。燈具可包含 ColorSpectrum 和 ColorTemperature 的組合,強調光源和 LED 條紋可能只能有 Spectrum,而部分讀取燈泡的溫度只有溫度。基本燈泡或智慧型插座的燈泡都沒有。 |
淺色指南 |
色溫 |
action.devices.traits.ColorTemperature |
這適用於在 Kelvin 會上色顏色的「暖」燈泡。這通常與 ColorSpectrum 的獨立型態,也可能有透過 Spectrum 無法到達的溫度。視可用特徵而定,Google 可能會根據要求和光源類型選擇適當的模式 (例如,將客廳的燈光變成白色,可能會將溫度指令傳送至部分燈泡,以及指定 Spectrum 指令)。 |
淺色指南 |
座架 |
action.devices.traits.Dock |
這項特性是針對自助式行動裝置所設計,能夠指示裝置回傳資料以進行充電。 |
多種設備 |
關閉 |
action.devices.traits.OnOff |
針對任何開啟及關閉二進位檔的裝置,包括電源和外接切換裝置,以及許多日後的裝置,都包括基本和關閉功能。 |
淺色指南 |
啟動 |
action.devices.traits.StartStop |
啟動及停止裝置提供了類似的功能,讓使用者在開啟及啟動裝置時開啟或關閉這項功能。有些裝置只是直接開啟和關閉狀態,部分裝置在啟動作業後也可以暫停。 |
任何 - 主要是電器、吸塵器,以及其他具有特定活動行為的電池 |
溫度設定 |
action.devices.traits.TemperatureSetting |
這項特性涵蓋處理溫度點和模式的情況。 |
溫度控制器 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2023-12-02 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2023-12-02 (世界標準時間)。"],[[["Device functionality is determined by assigned traits."],["Each device type has suggested traits, but you can customize them."],["Traits control actions like brightness, color, on/off state, and temperature."],["Some traits are recommended for specific device types, like lights or thermostats."]]],["Device functionality is defined by added traits. Available traits include `Brightness` (0-100 range), `ColorSpectrum` (RGB), and `ColorTemperature` (Kelvin). `Dock` is for self-mobile devices returning for charging. `OnOff` provides basic on/off, while `StartStop` allows starting, stopping, and pausing. `TemperatureSetting` handles temperature points and modes. Each trait has recommended device types, but any combination can be used.\n"]]