我已经在 Google 上实现了一个智能家居应用,现在想为某些开关类型实现 n-way Modes 特征。我的 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
}]
}