簡體   English   中英

Google 助理回復“抱歉,我沒有收到任何回復”

[英]Google Assistant responding with “Sorry, I didn't get any response”

我有一個智能家居動作,它支持多種設備類別,包括百葉窗、門和 windows。 此錯誤消息出現的唯一一次是當我說“關閉所有窗口”時。 windows 可單獨尋址。 如果我說“關上所有的百葉窗”,Google Home 的反應很好。 在后端,它們本質上是相同的,唯一不同的是設備類別。 這個特定的設備類別有問題嗎? 這都是英文的。

這是同步響應:

{
"requestId": "5149816291025266974",
"payload": {
    "agentUserId": "XXXXHOME45",
    "devices": [
        {
            "id": "HOME-34002c000a47363339343638-11",
            "name": {
                "name": "Bedroom 1"
            },
            "willReportState": true,
            "deviceInfo": {
                "manufacturer": "XXXX"
            },
            "customData": {
                "device_class": "XXXX",
                "device_id": "XX",
                "property_id": XX
            },
            "type": "action.devices.types.DOOR",
            "traits": [
                "action.devices.traits.OpenClose"
            ]
        },
        {
            "id": "HOME-34002c000a47363339343638-12",
            "name": {
                "name": "Bedroom 2"
            },
            "willReportState": true,
            "deviceInfo": {
                "manufacturer": "XXXX"
            },
            "customData": {
                "device_class": "XXXX",
                "device_id": "XX",
                "property_id": XX
            },
            "type": "action.devices.types.DOOR",
            "traits": [
                "action.devices.traits.OpenClose"
            ]
        },
        {
            "id": "HOME-34002c000a47363339343638-13",
            "name": {
                "name": "Bathroom"
            },
            "willReportState": true,
            "deviceInfo": {
                "manufacturer": "XXXX"
            },
            "customData": {
                "device_class": "XXXX",
                "device_id": "XX",
                "property_id": XX
            },
            "type": "action.devices.types.DOOR",
            "traits": [
                "action.devices.traits.OpenClose"
            ]
        },
        {
            "id": "HOME-34002c000a47363339343638-14",
            "name": {
                "name": "Balcony"
            },
            "willReportState": true,
            "deviceInfo": {
                "manufacturer": "XXXX"
            },
            "customData": {
                "device_class": "XXXX",
                "device_id": "XX",
                "property_id": XX
            },
            "type": "action.devices.types.DOOR",
            "traits": [
                "action.devices.traits.OpenClose"
            ]
        },
        {
            "id": "HOME-3e0030000b47363339343638-19",
            "name": {
                "name": "Window 1"
            },
            "willReportState": true,
            "deviceInfo": {
                "manufacturer": "XXXX"
            },
            "customData": {
                "device_class": "XXXX",
                "device_id": "XX",
                "property_id": XX
            },
            "type": "action.devices.types.WINDOW",
            "traits": [
                "action.devices.traits.OpenClose"
            ],
            "roomHint": "Living Room"
        },
        {
            "id": "HOME-3e0030000b47363339343638-20",
            "name": {
                "name": "Window 2"
            },
            "willReportState": true,
            "deviceInfo": {
                "manufacturer": "XXXX"
            },
            "customData": {
                "device_class": "XXXX",
                "device_id": "XX",
                "property_id": XX
            },
            "type": "action.devices.types.WINDOW",
            "traits": [
                "action.devices.traits.OpenClose"
            ],
            "roomHint": "Living Room"
        },
        {
            "id": "HOME-3e0030000b47363339343638-21",
            "name": {
                "name": "Window 1"
            },
            "willReportState": true,
            "deviceInfo": {
                "manufacturer": "XXXX"
            },
            "customData": {
                "device_class": "XXXX",
                "device_id": "XX",
                "property_id": XX
            },
            "type": "action.devices.types.WINDOW",
            "traits": [
                "action.devices.traits.OpenClose"
            ],
            "roomHint": "Master Bedroom"
        },
        {
            "id": "HOME-3e0030000b47363339343638-22",
            "name": {
                "name": "Window 2"
            },
            "willReportState": true,
            "deviceInfo": {
                "manufacturer": "XXXX"
            },
            "customData": {
                "device_class": "XXXX",
                "device_id": "XX",
                "property_id": XX
            },
            "type": "action.devices.types.WINDOW",
            "traits": [
                "action.devices.traits.OpenClose"
            ],
            "roomHint": "Master Bedroom"
        },
        {
            "id": "HOME-330035000a47363339343638-17",
            "name": {
                "name": "Blind 1"
            },
            "willReportState": true,
            "deviceInfo": {
                "manufacturer": "XXXX"
            },
            "customData": {
                "device_class": "XXXX",
                "device_id": "XX",
                "property_id": XX
            },
            "type": "action.devices.types.BLINDS",
            "traits": [
                "action.devices.traits.OpenClose"
            ],
            "roomHint": "Master Bedroom"
        },
        {
            "id": "HOME-3c002b000747363339343638-23",
            "name": {
                "name": "Window 1"
            },
            "willReportState": true,
            "deviceInfo": {
                "manufacturer": "XXXX"
            },
            "customData": {
                "device_class": "XXXX",
                "device_id": "XX",
                "property_id": XX
            },
            "type": "action.devices.types.WINDOW",
            "traits": [
                "action.devices.traits.OpenClose"
            ],
            "roomHint": "Second Bedroom"
        },
        {
            "id": "HOME-3c002b000747363339343638-24",
            "name": {
                "name": "Window 2"
            },
            "willReportState": true,
            "deviceInfo": {
                "manufacturer": "XXXX"
            },
            "customData": {
                "device_class": "XXXX",
                "device_id": "XX",
                "property_id": XX
            },
            "type": "action.devices.types.WINDOW",
            "traits": [
                "action.devices.traits.OpenClose"
            ],
            "roomHint": "Second Bedroom"
        },
        {
            "id": "HOME-330035000a47363339343638-28",
            "name": {
                "name": "Blind 1"
            },
            "willReportState": true,
            "deviceInfo": {
                "manufacturer": "XXXX"
            },
            "customData": {
                "device_class": "XXXX",
                "device_id": "XX",
                "property_id": XX
            },
            "type": "action.devices.types.BLINDS",
            "traits": [
                "action.devices.traits.OpenClose"
            ],
            "roomHint": "Second Bedroom"
        },
        {
            "id": "HOME-330035000a47363339343638-18",
            "name": {
                "name": "Blind 2"
            },
            "willReportState": true,
            "deviceInfo": {
                "manufacturer": "XXXX"
            },
            "customData": {
                "device_class": "XXXX",
                "device_id": "XX",
                "property_id": XX
            },
            "type": "action.devices.types.BLINDS",
            "traits": [
                "action.devices.traits.OpenClose"
            ],
            "roomHint": "Second Bedroom"
        },
        {
            "id": "HOME-34002c000a47363339343638-15",
            "name": {
                "name": "Blind 1"
            },
            "willReportState": true,
            "deviceInfo": {
                "manufacturer": "XXXX"
            },
            "customData": {
                "device_class": "XXXX",
                "device_id": "XX",
                "property_id": XX
            },
            "type": "action.devices.types.BLINDS",
            "traits": [
                "action.devices.traits.OpenClose"
            ],
            "roomHint": "Living Room"
        },
        {
            "id": "HOME-34002c000a47363339343638-16",
            "name": {
                "name": "Blind 2"
            },
            "willReportState": true,
            "deviceInfo": {
                "manufacturer": "XXXX"
            },
            "customData": {
                "device_class": "XXXX",
                "device_id": "XX",
                "property_id": XX
            },
            "type": "action.devices.types.BLINDS",
            "traits": [
                "action.devices.traits.OpenClose"
            ],
            "roomHint": "Living Room"
        },
        {
            "id": "HOME-34002c000a47363339343638-10",
            "name": {
                "name": "Front Door"
            },
            "willReportState": true,
            "deviceInfo": {
                "manufacturer": "XXXX"
            },
            "customData": {
                "device_class": "XXXX",
                "device_id": "XX",
                "property_id": XX
            },
            "type": "action.devices.types.DOOR",
            "traits": [
                "action.devices.traits.OpenClose"
            ]
        },
        {
            "id": "HOME-340031000d47363330353437-133",
            "name": {
                "name": "Stove"
            },
            "willReportState": true,
            "deviceInfo": {
                "manufacturer": "XXXX"
            },
            "customData": {
                "device_class": "XXXX",
                "device_id": "XX",
                "property_id": XX
            },
            "type": "action.devices.types.OUTLET",
            "traits": [
                "action.devices.traits.OnOff"
            ]
        }
    ]
}

這是我說命令的屏幕截圖。 如您所見,window 命令收到“沒有得到響應”消息,但所有 windows 在現實生活中確實很接近。 我也可以單獨控制 windows。 谷歌助理

編輯:好的,我將我的發現從 WINDOW 更改為 AWNING 並使其工作。 所以看起來 window 設備類型發生了什么事? 我將再次附上發現響應。

{
"requestId": "5149816291025266974",
"payload": {
    "agentUserId": "XXXXHOME45",
    "devices": [
        {
            "id": "HOME-34002c000a47363339343638-11",
            "name": {
                "name": "Bedroom 1"
            },
            "willReportState": true,
            "deviceInfo": {
                "manufacturer": "XXXX"
            },
            "customData": {
                "device_class": "XXXX",
                "device_id": "XX",
                "property_id": XX
            },
            "type": "action.devices.types.DOOR",
            "traits": [
                "action.devices.traits.OpenClose"
            ]
        },
        {
            "id": "HOME-34002c000a47363339343638-12",
            "name": {
                "name": "Bedroom 2"
            },
            "willReportState": true,
            "deviceInfo": {
                "manufacturer": "XXXX"
            },
            "customData": {
                "device_class": "XXXX",
                "device_id": "XX",
                "property_id": XX
            },
            "type": "action.devices.types.DOOR",
            "traits": [
                "action.devices.traits.OpenClose"
            ]
        },
        {
            "id": "HOME-34002c000a47363339343638-13",
            "name": {
                "name": "Bathroom"
            },
            "willReportState": true,
            "deviceInfo": {
                "manufacturer": "XXXX"
            },
            "customData": {
                "device_class": "XXXX",
                "device_id": "XX",
                "property_id": XX
            },
            "type": "action.devices.types.DOOR",
            "traits": [
                "action.devices.traits.OpenClose"
            ]
        },
        {
            "id": "HOME-34002c000a47363339343638-14",
            "name": {
                "name": "Balcony"
            },
            "willReportState": true,
            "deviceInfo": {
                "manufacturer": "XXXX"
            },
            "customData": {
                "device_class": "XXXX",
                "device_id": "XX",
                "property_id": XX
            },
            "type": "action.devices.types.DOOR",
            "traits": [
                "action.devices.traits.OpenClose"
            ]
        },
        {
            "id": "HOME-3e0030000b47363339343638-19",
            "name": {
                "name": "Window 1"
            },
            "willReportState": true,
            "deviceInfo": {
                "manufacturer": "XXXX"
            },
            "customData": {
                "device_class": "XXXX",
                "device_id": "XX",
                "property_id": XX
            },
            "type": "action.devices.types.AWNING",
            "traits": [
                "action.devices.traits.OpenClose"
            ],
            "roomHint": "Living Room"
        },
        {
            "id": "HOME-3e0030000b47363339343638-20",
            "name": {
                "name": "Window 2"
            },
            "willReportState": true,
            "deviceInfo": {
                "manufacturer": "XXXX"
            },
            "customData": {
                "device_class": "XXXX",
                "device_id": "XX",
                "property_id": XX
            },
            "type": "action.devices.types.AWNING",
            "traits": [
                "action.devices.traits.OpenClose"
            ],
            "roomHint": "Living Room"
        },
        {
            "id": "HOME-3e0030000b47363339343638-21",
            "name": {
                "name": "Window 1"
            },
            "willReportState": true,
            "deviceInfo": {
                "manufacturer": "XXXX"
            },
            "customData": {
                "device_class": "XXXX",
                "device_id": "XX",
                "property_id": XX
            },
            "type": "action.devices.types.AWNING",
            "traits": [
                "action.devices.traits.OpenClose"
            ],
            "roomHint": "Master Bedroom"
        },
        {
            "id": "HOME-3e0030000b47363339343638-22",
            "name": {
                "name": "Window 2"
            },
            "willReportState": true,
            "deviceInfo": {
                "manufacturer": "XXXX"
            },
            "customData": {
                "device_class": "XXXX",
                "device_id": "XX",
                "property_id": XX
            },
            "type": "action.devices.types.AWNING",
            "traits": [
                "action.devices.traits.OpenClose"
            ],
            "roomHint": "Master Bedroom"
        },
        {
            "id": "HOME-330035000a47363339343638-17",
            "name": {
                "name": "Blind 1"
            },
            "willReportState": true,
            "deviceInfo": {
                "manufacturer": "XXXX"
            },
            "customData": {
                "device_class": "XXXX",
                "device_id": "XX",
                "property_id": XX
            },
            "type": "action.devices.types.BLINDS",
            "traits": [
                "action.devices.traits.OpenClose"
            ],
            "roomHint": "Master Bedroom"
        },
        {
            "id": "HOME-3c002b000747363339343638-23",
            "name": {
                "name": "Window 1"
            },
            "willReportState": true,
            "deviceInfo": {
                "manufacturer": "XXXX"
            },
            "customData": {
                "device_class": "XXXX",
                "device_id": "XX",
                "property_id": XX
            },
            "type": "action.devices.types.AWNING",
            "traits": [
                "action.devices.traits.OpenClose"
            ],
            "roomHint": "Second Bedroom"
        },
        {
            "id": "HOME-3c002b000747363339343638-24",
            "name": {
                "name": "Window 2"
            },
            "willReportState": true,
            "deviceInfo": {
                "manufacturer": "XXXX"
            },
            "customData": {
                "device_class": "XXXX",
                "device_id": "XX",
                "property_id": XX
            },
            "type": "action.devices.types.AWNING",
            "traits": [
                "action.devices.traits.OpenClose"
            ],
            "roomHint": "Second Bedroom"
        },
        {
            "id": "HOME-330035000a47363339343638-28",
            "name": {
                "name": "Blind 1"
            },
            "willReportState": true,
            "deviceInfo": {
                "manufacturer": "XXXX"
            },
            "customData": {
                "device_class": "XXXX",
                "device_id": "XX",
                "property_id": XX
            },
            "type": "action.devices.types.BLINDS",
            "traits": [
                "action.devices.traits.OpenClose"
            ],
            "roomHint": "Second Bedroom"
        },
        {
            "id": "HOME-330035000a47363339343638-18",
            "name": {
                "name": "Blind 2"
            },
            "willReportState": true,
            "deviceInfo": {
                "manufacturer": "XXXX"
            },
            "customData": {
                "device_class": "XXXX",
                "device_id": "XX",
                "property_id": XX
            },
            "type": "action.devices.types.BLINDS",
            "traits": [
                "action.devices.traits.OpenClose"
            ],
            "roomHint": "Second Bedroom"
        },
        {
            "id": "HOME-34002c000a47363339343638-15",
            "name": {
                "name": "Blind 1"
            },
            "willReportState": true,
            "deviceInfo": {
                "manufacturer": "XXXX"
            },
            "customData": {
                "device_class": "XXXX",
                "device_id": "XX",
                "property_id": XX
            },
            "type": "action.devices.types.BLINDS",
            "traits": [
                "action.devices.traits.OpenClose"
            ],
            "roomHint": "Living Room"
        },
        {
            "id": "HOME-34002c000a47363339343638-16",
            "name": {
                "name": "Blind 2"
            },
            "willReportState": true,
            "deviceInfo": {
                "manufacturer": "XXXX"
            },
            "customData": {
                "device_class": "XXXX",
                "device_id": "XX",
                "property_id": XX
            },
            "type": "action.devices.types.BLINDS",
            "traits": [
                "action.devices.traits.OpenClose"
            ],
            "roomHint": "Living Room"
        },
        {
            "id": "HOME-34002c000a47363339343638-10",
            "name": {
                "name": "Front Door"
            },
            "willReportState": true,
            "deviceInfo": {
                "manufacturer": "XXXX"
            },
            "customData": {
                "device_class": "XXXX",
                "device_id": "XX",
                "property_id": XX
            },
            "type": "action.devices.types.DOOR",
            "traits": [
                "action.devices.traits.OpenClose"
            ]
        },
        {
            "id": "HOME-340031000d47363330353437-133",
            "name": {
                "name": "Stove"
            },
            "willReportState": true,
            "deviceInfo": {
                "manufacturer": "XXXX"
            },
            "customData": {
                "device_class": "XXXX",
                "device_id": "XX",
                "property_id": XX
            },
            "type": "action.devices.types.OUTLET",
            "traits": [
                "action.devices.traits.OnOff"
            ]
        }
    ]
}

所以一切都是一樣的,除了我改變了設備類型並且它開始工作了。

谷歌助理 2

您是否在項目的 StackDriver 日志中看到與這些請求 ID 對應的任何錯誤? developers.google.com/actions/smarthome/develop/error-logging確保你在資源過濾器中 select “Google Assistant Action”(對我來說,默認情況下它是“Cloud Function”)以查看 Google Assistant 之后抱怨的內容命令被執行。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM