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