[英]Google Assistant responding with “Sorry, I didn't get any response”
I have a smart home action that supports multiple device categories including blinds, doors and windows.我有一个智能家居动作,它支持多种设备类别,包括百叶窗、门和 windows。 The only time this error message comes up is when I say "Close all the windows".
此错误消息出现的唯一一次是当我说“关闭所有窗口”时。 The windows are individually addressable.
windows 可单独寻址。 Google Home responds fine if I say "Close all the blinds".
如果我说“关上所有的百叶窗”,Google Home 的反应很好。 On the backend, they're essentially the same and the only thing that's different is the device category.
在后端,它们本质上是相同的,唯一不同的是设备类别。 Is there something wrong with this particular device category?
这个特定的设备类别有问题吗? This is all in english.
这都是英文的。
This is the sync response:这是同步响应:
{
"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"
]
}
]
}
Here's a screenshot of me saying the commands.这是我说命令的屏幕截图。 As you can see, the window command gets the "didnt get a response" message BUT all the windows do indeed close in real life.
如您所见,window 命令收到“没有得到响应”消息,但所有 windows 在现实生活中确实很接近。 Also I can individually control the windows.
我也可以单独控制 windows。
EDIT: Okay I changed my discovery from WINDOW to AWNING and that made it work.编辑:好的,我将我的发现从 WINDOW 更改为 AWNING 并使其工作。 So it looks like there is something going on with the window device type?
所以看起来 window 设备类型发生了什么事? Again I'll attach the discovery response.
我将再次附上发现响应。
{
"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"
]
}
]
}
So everything is exactly the same, except that I changed the device type and it started to work.所以一切都是一样的,除了我改变了设备类型并且它开始工作了。
Do you see any errors in your project's StackDriver logs corresponding to these request IDs?您是否在项目的 StackDriver 日志中看到与这些请求 ID 对应的任何错误? developers.google.com/actions/smarthome/develop/error-logging Make sure you select "Google Assistant Action" in the resource filter (for me, by default it was "Cloud Function") to see what Google Assistant is complaining about after the command got executed.
developers.google.com/actions/smarthome/develop/error-logging确保你在资源过滤器中 select “Google Assistant Action”(对我来说,默认情况下它是“Cloud Function”)以查看 Google Assistant 之后抱怨的内容命令被执行。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.