fix:物模型枚举类型修改为字符串类型

V0.5.x
tangfudong 2024-04-10 11:36:09 +08:00
parent 2824872421
commit 6fb56c3f28
1 changed files with 66 additions and 60 deletions

View File

@ -988,70 +988,76 @@
"productKey": "bGdZt8ffBETtsirm", "productKey": "bGdZt8ffBETtsirm",
"model": { "model": {
"properties": [ "properties": [
{ {
"identifier": "temp", "identifier": "temp",
"dataType": { "dataType": {
"type": "int32", "type": "int32",
"specs": { "specs": {
"min": "17", "min": "17",
"max": "32" "max": "32"
} }
},
"name": "温度",
"accessMode": "rw",
"description": "温度",
"unit": "℃"
}, },
"name": "温度", {
"accessMode": "rw" "identifier": "swing_modes",
}, "dataType": {
{ "type": "enum",
"identifier": "swing_modes", "specs": {
"dataType": { "off": "关",
"type": "bool", "on": "开"
"specs": { }
"0": "关", },
"1": "开" "name": "扫风开关",
} "accessMode": "rw",
"description": "扫风开关"
}, },
"name": "扫风开关", {
"accessMode": "rw" "identifier": "modes",
}, "dataType": {
{ "type": "enum",
"identifier": "modes", "specs": {
"dataType": { "heat": "制热",
"type": "enum", "off": "关闭",
"specs": { "cool": "制冷",
"0": "制热", "fan_only": "送风"
"1": "关闭", }
"2": "制冷", },
"3": "送风" "name": "模式",
} "accessMode": "rw",
"description": "模式"
}, },
"name": "模式", {
"accessMode": "rw" "identifier": "fan_modes",
}, "dataType": {
{ "type": "enum",
"identifier": "fan_modes", "specs": {
"dataType": { "high": "高",
"type": "enum", "medium": "中",
"specs": { "low": "低"
"0": "高", }
"1": "中", },
"2": "低" "name": "风模式",
} "accessMode": "rw",
"description": "风模式"
}, },
"name": "风模式", {
"accessMode": "rw" "identifier": "preset_modes",
}, "dataType": {
{ "type": "enum",
"identifier": "presets_modes", "specs": {
"dataType": { "eco": "节能",
"type": "enum", "sleep": "睡眠",
"specs": { "activity": "活动"
"0": "节能", }
"1": "睡眠", },
"2": "活动" "name": "预设模式",
} "accessMode": "rw",
}, "description": "预设模式"
"name": "预设模式", }
"accessMode": "rw"
}
], ],
"services": [ "services": [
], ],