我有一个物联网设备,需要支持各种操作,其中之一是来自
next
的 Alexa.PlaybackController
。我的设备是多媒体设备,还需要许多其他控制器。我将 Alexa.PlaybackController
添加到我的设备的发现响应中,如下所示:
{
"type": "AlexaInterface",
"interface": "Alexa.PlaybackController",
"version": "3",
"supportedOperations": ["Next"],
}
我也尝试过:
{
"type": "AlexaInterface",
"interface": "Alexa.PlaybackController",
"version": "3",
"properties": {
"supported": [
{"name": "next"}
]
},
}
但是都不起作用。我在 CloudWatch 上遇到架构错误:
is not valid under any of the given schemas
查看下面的架构,我发现
PlaybackController
确实不包含在架构内。然而,所有的文档都使得这看起来应该是微不足道的。我想知道是否需要添加其他内容来表明我需要播放。
PlaybackController
是否在某些方面很特殊并且无法与其他控制器结合使用?我尝试用谷歌搜索这个架构错误,但它太模糊了,什么也没有出现。
任何帮助将不胜感激!
__
编辑:
我现在看到视频设备似乎有一组不同的可用控制器,但在娱乐设备的常规智能家居技能周围的很多地方仍然提到使用
PlaybackController
。真心希望这是可能的!
所以应该早点弄清楚这一点。我正在使用 Amazon 提供的 python 验证类。事实证明,同一存储库中的架构根本不包含对 Alexa.PlaybackController
的任何引用。因此,验证每次都会失败,并出现架构不匹配的错误。也许他们最近添加了一些控制器,但忘记更新架构。
我在这里向智能家居存储库提交了一个问题:https://github.com/alexa/alexa-smarthome/issues/62