![](/img/trans.png)
[英]action.devices.commands.OpenClose trait in Google Smart Home actions does not work properly
[英]How does Google Smart Home determine channelNumber for action.devices.commands.selectChannel?
{ "requestId": "[RequestId GUID]", "inputs": [{ "intent": "action.devices.EXECUTE", "payload": { "commands": [{ "devices": [{ "id": "[SettopBox device Id]" }], "execution": [{ "command": "action.devices.commands.selectChannel", "params": { "channelCode": "espn", "channelName": "ESPN", "channelNumber": "206" } }] }] } }] }
问题:
SYNC 请求中提供了Channel trait的通道编号以及任何相关标签。
{
"availableChannels": [
{
"key": "ktvu2",
"names": [
"Fox",
"KTVU"
],
"number": "2"
},
{
"key": "abc1",
"names": [
"ABC",
"ABC East"
],
"number": "4-11"
}
]
}
如代码片段所示,频道号来自服务。 这可能取决于集成开发人员如何确定这些数字,无论是来自有线电视提供商还是无线。 该字段是可选的,因此没有频道号的服务仍然可以通过说出其名称来工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.