Created
July 7, 2023 08:16
-
-
Save cristianbica/8b006e11e018e3aa48a76f837b22f636 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"modelId": "000004q1vq", | |
"services": [ | |
{ | |
"actions": [ | |
], | |
"code": "", | |
"description": "", | |
"events": [ | |
], | |
"name": "默认服务", | |
"properties": [ | |
{ | |
"abilityId": 1, | |
"accessMode": "rw", | |
"code": "switch_1", | |
"description": "", | |
"extensions": { | |
"iconName": "icon-dp_power2", | |
"attribute": "1" | |
}, | |
"name": "开关1", | |
"typeSpec": { | |
"type": "bool", | |
"typeDefaultValue": false | |
} | |
}, | |
{ | |
"abilityId": 9, | |
"accessMode": "rw", | |
"code": "countdown_1", | |
"description": "", | |
"extensions": { | |
"iconName": "icon-dp_time2" | |
}, | |
"name": "开关1倒计时", | |
"typeSpec": { | |
"max": 86400, | |
"min": 0, | |
"scale": 0, | |
"step": 1, | |
"type": "value", | |
"typeDefaultValue": 0, | |
"unit": "s" | |
} | |
}, | |
{ | |
"abilityId": 26, | |
"accessMode": "ro", | |
"code": "fault", | |
"description": "过压,欠压,过流,温度超,漏电流超,,漏电自检故障,剩余电量为零,检修锁定", | |
"extensions": { | |
"iconName": "icon-baojing", | |
"scope": "fault" | |
}, | |
"name": "故障告警", | |
"typeSpec": { | |
"label": [ | |
"OverVoltage", | |
"UnderVoltage", | |
"OverCurrent", | |
"Temperature", | |
"leakage", | |
"LeakageFault", | |
"ZeroCharge", | |
"Maintenance" | |
], | |
"maxlen": 8, | |
"type": "bitmap", | |
"typeDefaultValue": 0 | |
} | |
}, | |
{ | |
"abilityId": 38, | |
"accessMode": "rw", | |
"code": "relay_status", | |
"description": "0表示上电分闸,1表示上电合闸,2表示上电保持", | |
"extensions": { | |
"iconName": "icon-zhuangtai" | |
}, | |
"name": "上电状态设置", | |
"typeSpec": { | |
"range": [ | |
"0", | |
"1", | |
"2" | |
], | |
"type": "enum", | |
"typeDefaultValue": "0" | |
} | |
}, | |
{ | |
"abilityId": 40, | |
"accessMode": "rw", | |
"code": "child_lock", | |
"description": "", | |
"extensions": { | |
"iconName": "icon-dp_lock" | |
}, | |
"name": "童锁开关", | |
"typeSpec": { | |
"type": "bool", | |
"typeDefaultValue": false | |
} | |
}, | |
{ | |
"abilityId": 101, | |
"accessMode": "ro", | |
"code": "Voltage", | |
"description": "A,B,C电压,每路电压单位0.1V,2字节hex值,共6字节\n高字节在前,举例 08 80 08 81 08 82 表示 A相217.6V,B相217.7V\nC相 217.8V", | |
"name": "电压", | |
"typeSpec": { | |
"maxlen": 128, | |
"type": "raw" | |
} | |
}, | |
{ | |
"abilityId": 102, | |
"accessMode": "ro", | |
"code": "Current", | |
"description": "A,B,C每相电流,每相3字节,hex,单位 0.001A\n高字节在前,举例 00 03 E8 00 03 E9 00 03 EA 表示A相 1.000A,B相\n1.001A,C相1.002A", | |
"name": "电流", | |
"typeSpec": { | |
"maxlen": 128, | |
"type": "raw" | |
} | |
}, | |
{ | |
"abilityId": 103, | |
"accessMode": "ro", | |
"code": "ActivePower", | |
"description": "总及A,B,C共4路有功功率,每路3字节,hex,单位0.0001kW\n举例 00 27 10 00 27 11 00 27 12 00 27 13 \n表示总功率 1.0000kW,A相功率 1.0001kW,B相功率1.0002kW,C相功率1.0003kW", | |
"name": "有功功率", | |
"typeSpec": { | |
"maxlen": 128, | |
"type": "raw" | |
} | |
}, | |
{ | |
"abilityId": 104, | |
"accessMode": "ro", | |
"code": "LeakageCurrent", | |
"description": "漏电流(0~3000)", | |
"name": "剩余电流", | |
"typeSpec": { | |
"max": 3000, | |
"min": 0, | |
"scale": 0, | |
"step": 1, | |
"type": "value", | |
"typeDefaultValue": 0, | |
"unit": "mA" | |
} | |
}, | |
{ | |
"abilityId": 105, | |
"accessMode": "ro", | |
"code": "Temperature", | |
"description": "共1路 每路1字节,值-40~127度", | |
"name": "设备温度", | |
"typeSpec": { | |
"max": 127, | |
"min": -40, | |
"scale": 0, | |
"step": 1, | |
"type": "value", | |
"typeDefaultValue": -40, | |
"unit": "度" | |
} | |
}, | |
{ | |
"abilityId": 107, | |
"accessMode": "ro", | |
"code": "RemainingEnergy", | |
"description": "剩余电量", | |
"name": "剩余电量", | |
"typeSpec": { | |
"max": 100000000, | |
"min": 0, | |
"scale": 2, | |
"step": 1, | |
"type": "value", | |
"typeDefaultValue": 0, | |
"unit": "kWh" | |
} | |
}, | |
{ | |
"abilityId": 108, | |
"accessMode": "wr", | |
"code": "RechargeEnergy", | |
"description": "充电量用", | |
"name": "充电量", | |
"typeSpec": { | |
"max": 1000000, | |
"min": 0, | |
"scale": 2, | |
"step": 1, | |
"type": "value", | |
"typeDefaultValue": 0, | |
"unit": "kWh" | |
} | |
}, | |
{ | |
"abilityId": 109, | |
"accessMode": "rw", | |
"code": "CostParameters", | |
"description": "电费单价 单位0.0001元,2字节hex,剩余电量为零跳闸使能1字节,值为1使能,其他不使能\n举例 27 10 01 电费单价 1.0000元,剩余电量为零跳闸使能。\n电费单价范围 0.0000元~6.5535元", | |
"name": "费控参数", | |
"typeSpec": { | |
"maxlen": 128, | |
"type": "raw" | |
} | |
}, | |
{ | |
"abilityId": 110, | |
"accessMode": "rw", | |
"code": "LeakageParameters", | |
"description": "1字节漏电定时自检日(hex 值1~28,)1字节漏电定时自检小时(hex值,0~23)\n漏电定时自检使能(1字节值为1使能,其他不使能),\n漏电阈值(2字节,hex,单位mA),\n漏电超限分闸使能(1字节,值为1使能,其他不使能),,漏电超限报警使能(1字节,值为1使能,其他不使能),\n1字节漏电立即自检(点击一次,发值1)\n举例 02 01 01 1E 00 01 01 01 表示 每月2日1时定时漏电自检,定时漏电自检使能,漏电阈值30mA,漏电超分闸使能,漏电超限报警使能,立即漏电自检一次\n漏电阈值范围 1mA~300mA", | |
"name": "剩余电流参数", | |
"typeSpec": { | |
"maxlen": 128, | |
"type": "raw" | |
} | |
}, | |
{ | |
"abilityId": 111, | |
"accessMode": "rw", | |
"code": "VoltageThreshold", | |
"description": "过压阈值(共4字节,2字节电压值,单位0.1V,1字节分闸使能,值为1使能,其他值不使能,1字节报警使能,值为1使能,其他值不使能)\n欠压阈值(共4字节,2字节电压值,单位0.1V,1字节分闸使能,值为1使能,其他值不使能,1字节报警使能,值为1使能,其他值不使能)\n举例 08 98 01 01 08 98 01 01表示 过压阈值 220.0v,过压分闸使能,过压报警使能,欠压阈值 220.0v,欠压分闸使能,欠压报警使能\n过压阈值范围 50V~380V(实际值 500~3800)\n欠压阈值范围 0V~380V(实际值0~3800)", | |
"name": "电压阈值", | |
"typeSpec": { | |
"maxlen": 128, | |
"type": "raw" | |
} | |
}, | |
{ | |
"abilityId": 112, | |
"accessMode": "rw", | |
"code": "CurrentThreshold", | |
"description": "共5字节,3字节电流值,hex,单位0.001A;1字节分闸使能,值为1使能,其他值不使能;1字节报警使能,值为1使能,其他值不使能,\n举例 00 07 D0 01 01 过流阈值2.000A,过流分闸使能,过流报警使能。\n电流阈值范围 0~999A(实际值 0~999000)", | |
"name": "电流阈值", | |
"typeSpec": { | |
"maxlen": 128, | |
"type": "raw" | |
} | |
}, | |
{ | |
"abilityId": 113, | |
"accessMode": "rw", | |
"code": "TemperatureThreshold", | |
"description": "共3字节\n1字节温度阈值(范围-40~127);\n1字节分闸使能,值为1使能,其他值不使能;\n1字节报警使能,值为1使能,其他值不使能。\n举例30 01 01 温度阈值 48度,高温分闸使能,高温报警使能 ", | |
"name": "温度阈值", | |
"typeSpec": { | |
"maxlen": 128, | |
"type": "raw" | |
} | |
}, | |
{ | |
"abilityId": 114, | |
"accessMode": "ro", | |
"code": "KWH", | |
"description": "有功总电量", | |
"name": "有功电量", | |
"typeSpec": { | |
"max": 100000000, | |
"min": 0, | |
"scale": 2, | |
"step": 1, | |
"type": "value", | |
"typeDefaultValue": 0, | |
"unit": "kWh" | |
} | |
}, | |
{ | |
"abilityId": 115, | |
"accessMode": "ro", | |
"code": "NumberAndType", | |
"description": "最多20个可显示的ASCII字符\n举例 MCB2P123456789011\n表示 型号 MCB2P 设备编号 123456789011", | |
"name": "设备编号及类型", | |
"typeSpec": { | |
"maxlen": 255, | |
"type": "string", | |
"typeDefaultValue": "" | |
} | |
}, | |
{ | |
"abilityId": 116, | |
"accessMode": "wr", | |
"code": "ClearEnergy", | |
"description": "清电量", | |
"extensions": { | |
"iconName": "icon-Ele" | |
}, | |
"name": "电量清零", | |
"typeSpec": { | |
"type": "bool", | |
"typeDefaultValue": false | |
} | |
}, | |
{ | |
"abilityId": 117, | |
"accessMode": "rw", | |
"code": "locking", | |
"description": "设备由于漏电跳闸,短路跳闸等原因,远程应该提示,操作者解除锁定后才能合闸,防止安全隐患。", | |
"extensions": { | |
"iconName": "icon-tcl_function_hs" | |
}, | |
"name": "设备机械锁定", | |
"typeSpec": { | |
"type": "bool", | |
"typeDefaultValue": false | |
} | |
}, | |
{ | |
"abilityId": 118, | |
"accessMode": "ro", | |
"code": "RKWH", | |
"description": "反向有功总电量,范围0~1000000.00kWh", | |
"name": "反向有功总电量", | |
"typeSpec": { | |
"max": 100000000, | |
"min": 0, | |
"scale": 2, | |
"step": 1, | |
"type": "value", | |
"typeDefaultValue": 0, | |
"unit": "kWh" | |
} | |
}, | |
{ | |
"abilityId": 119, | |
"accessMode": "ro", | |
"code": "VRecording", | |
"description": "A,B,C电压,每路电压单位0.1V,2字节hex值,共6字节\n高字节在前,举例 08 80 08 81 08 82 表示 A相217.6V,B相217.7V\nC相 217.8V", | |
"name": "历史电压", | |
"typeSpec": { | |
"maxlen": 128, | |
"type": "raw" | |
} | |
}, | |
{ | |
"abilityId": 120, | |
"accessMode": "ro", | |
"code": "IRecording", | |
"description": "A,B,C每相电流,每相3字节,hex,单位 0.001A\n高字节在前,举例 00 03 E8 00 03 E9 00 03 EA 表示A相 1.000A,B相\n1.001A,C相1.002A", | |
"name": "历史电流", | |
"typeSpec": { | |
"maxlen": 128, | |
"type": "raw" | |
} | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment