[英]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" } }] }] } }] }
Questions:问题:
The number of a channel for the Channel trait is provided in the SYNC request along with any relevant labels. SYNC 请求中提供了Channel trait的通道编号以及任何相关标签。
{
"availableChannels": [
{
"key": "ktvu2",
"names": [
"Fox",
"KTVU"
],
"number": "2"
},
{
"key": "abc1",
"names": [
"ABC",
"ABC East"
],
"number": "4-11"
}
]
}
As shown in the snippet, the channel number comes from the service.如代码片段所示,频道号来自服务。 This may be up to the developer of the integration how these numbers may be determined, whether from a cable provider or over-the-air.这可能取决于集成开发人员如何确定这些数字,无论是来自有线电视提供商还是无线。 The field is optional, so a service without channel numbers may still work by saying its name.该字段是可选的,因此没有频道号的服务仍然可以通过说出其名称来工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.