管理员过来看看,设备发现提示未发现新设备,不知道问题出在哪里
易康智能科技 发布于2019-02-11 16:41 浏览:69 回复:1
0
收藏

这是我的返回的数据:

{
    "header": {
        "namespace": "DuerOS.ConnectedHome.Discovery",
        "name": "DiscoverAppliancesResponse",
        "messageId": "b010b2aa-1c19-49a8-aefe-35452702560d",
        "payloadVersion": 1
    },
    "payload": {
        "discoveredAppliances": [{
                "applianceTypes": ["LIGHT"],
                "applianceId": "0666FF515754727567172626_SPL_18",
                "modelName": "",
                "version": "1.0.0",
                "friendlyName": "测试灯",
                "friendlyDescription": "卧室的测试灯",
                "isReachable": true,
                "actions": [
                    "turnOn",
                    "turnOff",
                    "getTurnOnState"],
                "additionalApplianceDetails": {},
                "manufacturerName": "智能科技",
                "attributes": [
                ]
            }
        ],
        "discoveredGroups": [{
                "groupName": "卧室",
                "applianceIds": [
                    "0666FF515754727567172626_SPL_18"],
                "groupNotes": "卧室",
                "additionalGroupDetails": {}
            }
        ]
    }
}

 

这是模拟测试的响应

 

{
  "debug": {
    "bot": {
      "id": "ai.dueros.bot.smarthome",
      "smarthome": [
        {
          "request": "{\"header\":{\"payloadVersion\":\"1\",\"name\":\"DiscoverAppliancesRequest\",\"namespace\":\"DuerOS.ConnectedHome.Discovery\",\"messageId\":\"fd3c3f64dcc64c38817563b9fb4478a6_DCSsnrvqm1llawz5m_0#1_0_Smarthome_5c6132541b7853.54140462\"},\"payload\":{\"accessToken\":\"26a946448de1a0ea9b45a4db54e90786\",\"openUid\":\"8620373961af239ffa2bea379a68ef81\"}}",
          "response": "{\n    \"header\": {\n        \"namespace\": \"DuerOS.ConnectedHome.Discovery\",\n        \"name\": \"DiscoverAppliancesResponse\",\n        \"messageId\": \"b010b2aa-1c19-49a8-aefe-35452702560d\",\n        \"payloadVersion\": 1\n    },\n    \"payload\": {\n        \"discoveredAppliances\": [{\n                \"applianceTypes\": [\"LIGHT\"],\n                \"applianceId\": \"0666FF515754727567172626_SPL_18\",\n                \"modelName\": \"\",\n                \"version\": \"1.0.0\",\n                \"friendlyName\": \"测试灯\",\n                \"friendlyDescription\": \"卧室的测试灯\",\n                \"isReachable\": true,\n                \"actions\": [\n                    \"turnOn\",\n                    \"turnOff\",\n                    \"getTurnOnState\"],\n                \"additionalApplianceDetails\": {},\n                \"manufacturerName\": \"eKong科技\",\n                \"attributes\": [\n                ]\n            }\n        ],\n        \"discoveredGroups\": [{\n                \"groupName\": \"卧室\",\n                \"applianceIds\": [\n                    \"0666FF515754727567172626_SPL_18\"],\n                \"groupNotes\": \"卧室\",\n                \"additionalGroupDetails\": {}\n            }\n        ]\n    }\n}"
        }
      ],
      "request": null,
      "response": null
    }
  },
  "directive": {
    "header": {
      "namespace": "ai.dueros.device_interface.system",
      "name": "Nop",
      "messageId": "NWM2MTMyNTQ3YTU3OTc3NQ==",
      "dialogRequestId": "65f08f8a-e4d0-4eec-9662-1d7d997e47ef"
    },
    "payload": {
      "time": 1549873748,
      "logid": "fd3c3f64dcc64c38817563b9fb4478a6_DCSsnrvqm1llawz5m_0"
    }
  }
}
收藏
点赞
0
个赞
共1条回复 最后由易康智能科技回复于2019-02-12 12:15
#2易康智能科技回复于2019-02-12

0
TOP