发现设备里面没有卧室灯带,可是语音播报:...你可以说:打开卧室灯带..
C****X · C****X 发布于2018-07-10 14:56 浏览:1614 回复:1

发现设备里面没有卧室灯带,可是语音播报:...你可以说:打开卧室灯带..

{
    "header":{
        "payloadVersion":"1",
        "namespace":"DuerOS.ConnectedHome.Discovery",
        "messageId":"0816d2fbc6124416aee4698b0917c43a_0_Smarthome_5b44209c1790b0.22976600",
        "name":"DiscoverAppliancesResponse"
    },
    "payload":{
        "discoveredAppliances":[
            {
                "applianceTypes":[
                    "4352"
                ],
                "actions":[
                    "turnOn",
                    "turnOff",
                    "getTurnOnState"
                ],
                "applianceId":"1",
                "modelName":"1",
                "version":"1.0",
                "friendlyName":"1",
                "friendlyDescription":"",
                "isReachable":"true",
                "additionalApplianceDetails":{

                },
                "manufacturerName":"HZX",
                "attributes":[

                ]
            },
            {
                "applianceTypes":[
                    "516"
                ],
                "actions":[
                    "turnOn",
                    "turnOff",
                    "getTurnOnState",
                    "pause"
                ],
                "applianceId":"2",
                "modelName":"7",
                "version":"1.0",
                "friendlyName":"7",
                "friendlyDescription":"",
                "isReachable":"true",
                "additionalApplianceDetails":{

                },
                "manufacturerName":"HZX",
                "attributes":[

                ]
            },
            {
                "applianceTypes":[
                    "256"
                ],
                "actions":[
                    "turnOn",
                    "turnOff",
                    "getTurnOnState"
                ],
                "applianceId":"3",
                "modelName":"8",
                "version":"1.0",
                "friendlyName":"8",
                "friendlyDescription":"",
                "isReachable":"true",
                "additionalApplianceDetails":{

                },
                "manufacturerName":"HZX",
                "attributes":[

                ]
            },
            {
                "applianceTypes":[
                    "3344"
                ],
                "actions":[
                    "turnOn",
                    "turnOff",
                    "getTurnOnState"
                ],
                "applianceId":"4",
                "modelName":"8",
                "version":"1.0",
                "friendlyName":"8",
                "friendlyDescription":"",
                "isReachable":"true",
                "additionalApplianceDetails":{

                },
                "manufacturerName":"HZX",
                "attributes":[

                ]
            }
        ],
        "discoveredGroups":[

        ]
    },
    "func":"receiveDuerosData"
}

 

还有个问题:applianceTypes可以根据自己定义的类型可以吗?会产生什么影响?

点赞  ( 0 )
收藏
评论(1)
共1条回复 最后由D****狸回复于2018-07-11 11:44
#2D****狸回复于2018-07-11 11:44:08

棒棒哒

0
TOP