Google Assistant отвечает "Извините, я не получил ответа" - PullRequest
0 голосов
/ 19 сентября 2019

У меня есть умный дом, который поддерживает несколько категорий устройств, включая жалюзи, двери и окна.Единственное время, когда появляется это сообщение об ошибке, это когда я говорю «Закройте все окна».Окна индивидуально адресуемы.Главная страница Google отвечает хорошо, если я говорю "Закройте все жалюзи".С другой стороны, они по сути одинаковы, и единственное, что отличается, - это категория устройств.Что-то не так с этой категорией устройств?Это все на английском.

Ответы [ 2 ]

0 голосов
/ 20 сентября 2019

Это ответ на синхронизацию:

{
"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"
            ]
        }
    ]
}

Вот скриншот того, как я произносил команды.Как видите, команда окна получает сообщение «не получил ответ», НО все окна действительно закрываются в реальной жизни.Также я могу индивидуально контролировать окна.Google Assistant

РЕДАКТИРОВАТЬ: Хорошо, я изменил свое открытие с WINDOW на AWNING, и это заставило его работать.Похоже, что-то происходит с типом оконного устройства?Я снова прикреплю ответ об обнаружении.

{
"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"
            ]
        }
    ]
}

Так что все точно так же, за исключением того, что я изменил тип устройства, и он начал работать.

Google Assistant 2

0 голосов
/ 19 сентября 2019

Возможно, ваш Google Home не подключен к вашим окнам, поэтому вы не можете перемещать свои окна вместе с ним.Попробуйте как-нибудь подключить его к своим окнам.

...