我在Google上实施了智能家居应用,现在想要为某些交换机类型实现n路模式特性。 我的JSON响应似乎反映了该示例,并且发现有效,但我无法使用模式示例(JSON未完成)与交换机交互 - 任何人都知道我缺少什么?
"attributes": {
"availableModes": [{
"name": "Control",
"name_values": [{
"name_synonym": ["control", "mode"],
"lang": "en"
}],
"settings": [{
"setting_name": "Off",
"setting_values": [{
"setting_synonym": [ "Off"],
"lang": "en"
}]
},{
"setting_name": "Level1",
"setting_values": [{
"setting_synonym": ["Level1"],
"lang": "en"
}]
}],
"ordered": false
}]
}