设备特征
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
设备类型的功能取决于您为每种设备类型添加的特征。每种设备类型都有许多建议的特征,但您可以根据需要添加任意特征。
名称 |
设备特征 |
说明 |
推荐的设备类型 |
Brightness |
action.devices.traits.Brightness |
绝对亮度设置为 0 到 100 之间的标准化范围(根据光源的配置,单个灯可能不支持范围内的每个点)。 |
Light Guide |
ColorSpectrum |
action.devices.traits.ColorSpectrum |
这适用于采用 RGB 颜色范围的“完整”颜色灯泡。灯可能包含 ColorSpectrum 和 ColorTemperature 的任意组合;强调光和 LED 灯条可能只有光谱,而某些阅读灯泡只有温度。基本灯泡或智能插座上的哑光灯也没有。 |
Light Guide |
ColorTemperature(色温) |
action.devices.traits.ColorTemperature |
这适用于以开尔文作为颜色点的“温暖”灯泡。这通常与 ColorSpectrum 是一个单独的模态,并且可能具有 Spectrum 无法到达的通过温度可用的白色点。Google 可能会根据可用的特征,根据请求和灯类型选择合适的模式(例如,把客厅的灯设为白色)。 |
Light Guide |
Dock |
action.devices.traits.Dock |
此特征专为可指示返回充电的移动设备而设计。 |
各种电器 |
OnOff |
action.devices.traits.OnOff |
适用于具有二进制文件开启或关闭的任何设备的基本开启和关闭功能,包括插头和开关以及许多未来的设备。 |
Light Guide |
StartStop |
action.devices.traits.StartStop |
启动和停止设备的功能与开启和关闭设备的功能类似。开启和启动时沿用此特征功能的设备会有所不同。与仅具有开启和关闭状态的设备不同,某些可以启动和停止的设备在执行操作时也可以暂停。 |
任何设备 - 主要是电器和吸尘器,以及具有特定活动行为的高级性能及其他 |
TemperatureSetting |
action.devices.traits.TemperatureSetting |
此特征涵盖处理温度点和模式。 |
温控器指南 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):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"]],["最后更新时间 (UTC):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"]]