简体   繁体   English

是否可以创建Home控制动作来控制非Android TV?

[英]Is it possible to create a Home control Actions to control Non-Android TV?

Is it possible to create a Home control Actions to control Non-Android TV? 是否可以创建Home控制动作来控制非Android TV? Just like Amazon Smart Home Skills for Entertainment Devices to turn on/off TV, change channel, switch input source, change volume, control playback... 就像娱乐设备的亚马逊智能家居技能可以打开/关闭电视,更改频道,切换输入源,更改音量,控制播放...

I did not found these types associated with TV in smart home device types. 我没有在智能家居设备类型中找到与电视相关的这些类型。 This is described in the document: 在文档中对此进行了描述:

The functionality for device types comes from the traits that you add to each one. 设备类型的功能来自您添加到每种特性中的特征。 Each device type has a number of recommended traits, but you can add whichever ones you want. 每种设备类型都有许多建议的特征,但是您可以添加任何所需的特征。

How do I add it? 如何添加?

If you watched the smart home talk at I/O , you will see that supporting media devices and traits are currently in development. 如果您在I / O上观看了智能家居讲座 ,您将看到支持媒体设备和特性正在开发中。 Although they are not ready for every developer yet, you will see the content show up in the documentation when it is available. 尽管尚未为每个开发人员准备就绪,但您会在文档可用时看到其内容。

In the short-term, you can assign a different device type for your TV, like LIGHT . 在短期内,您可以为电视分配其他设备类型,例如LIGHT The types are used primarily for semantics, like "turn off my lights". 这些类型主要用于语义,例如“关灯”。 You may be able to use some of the traits as they currently exist. 您可能可以使用当前存在的某些特征。 For example, a handful of modes are designed for media-type devices. 例如,针对媒体类型的设备设计了几种模式

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM