[英]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.