欢迎使用 Google Home 开发者中心,您可以在这里学习有关如何开发智能家居 Action 的新平台。注意:你将继续在 Actions 控制台中构建操作。
触摸控件
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
在配有 Google Assistant、Google Assistant app 和 Google Home app (GHA) 的智能显示屏上,用户可以通过图形界面控制家中的设备。此类控件可能是用于控制温控器温度的滑块,也可能是用于开关灯的按钮。这些触控操作对语音指令构成补充。
这些控件会自动启用;你无需进行任何开发工作。
内置 Google 助理的智能显示屏
在具有 Assistant 的智能显示屏上,触控操作取决于设备支持的特征。
全屏视图
图 1:通过智能显示屏的全屏视图控制温控器温度的触控操作。
平铺视图
图 2:使用 Assistant 从智能显示屏的平铺视图中控制温控器温度的触控操作。
支持的特征
支持的设备类型
除“场景”之外,所有设备类型的图标旁边都会显示与相应设备实现的受支持特征相关联的触摸控件。
图 3:内置 Assistant 的智能显示屏上某个温控器设备的图标。
如果设备未实现任何受支持的特征,系统会向用户显示一个占位符,建议用户使用语音控制功能。
图 4:采用 Assistant 的智能显示屏上特征不受支持的设备占位符。
Google 助理应用
图 5:Assistant app 中用于控制温控器温度的触控操作
支持的特征
支持的设备类型
Google Home 应用
图 6:GHA 中用于控制温控器温度的触控操作。
支持的特征
支持的设备类型
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-11-07 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"没有我需要的信息"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"太复杂/步骤太多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"内容需要更新"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻译问题"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/代码问题"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"易于理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"解决了我的问题"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]