我对 device.trait "Modes" 有疑问
我创建了一台具有特征模式的洗衣机,SYNC.response 看起来像这样
{
"requestId": "ff36a3cc-ec34-11e6-b1a0-64510650abcf",
"payload": {
"agentUserId": "1836.15267389",
"devices": [
{
"id": "311_washer_1",
"type": "action.devices.types.WASHER",
"traits": ["action.devices.traits.Modes","action.devices.traits.OnOff"],
"name": {
"name": "Laboratory Washer 1",
"nicknames": ["Laboratory Washer"]
},
"willReportState": false,
"attributes":{
"availableModes":[{
"name": "speed",
"name_values": [{
"name_synonym": ["speed"],
"lang": "en"
}],
"settings": [{
"setting_name": "fast",
"setting_values": [{
"setting_synonym": ["fast"],
"lang": "en"
}]
},{
"setting_name": "medium",
"setting_values":[{
"setting_synonym":["medium"],
"lang": "en"
}]
},{
"setting_name": "slow",
"setting_values":[{
"setting_synonym":["slow"],
"lang": "en"
}]
}
],
"ordered": true
}]
}
}
]
}
}
我有一个模式叫“速度”
但是当我与助手交谈时,它只会重播我的“该模式不适用于它”
有人可以告诉我哪里出了问题还是与
目前,您必须使用示例 JSON 中的名称;尚不支持自定义名称。
在说明页面
谢谢~~