Commit 27670917 authored by 陈伟灿's avatar 陈伟灿

Merge branch 'cwc' into 'master'

【修改内容】更新物模型

See merge request chenweican/k-sdk!64
parents 794c20f6 cbbf8dcf
{
"schema": "https://iot-ap.ikonke.com/model/ccu_12.json",
"productType": "ccu",
"profile": {
"productCode": "12",
"productName": "主机"
},
"properties": [{
"identifier": "SN",
"dataType": {
"specs": {
"length": "50"
},
"type": "text"
},
"name": "设备SN",
"accessMode": "r",
"required": false
}, {
"identifier": "MACAddress",
"dataType": {
"specs": {
"length": "128"
},
"type": "text"
},
"name": "MAC地址",
"accessMode": "r",
"required": false
}, {
"identifier": "LanIPAddress",
"dataType": {
"specs": {
"length": "255"
},
"type": "text"
},
"name": "内网IP地址",
"accessMode": "r",
"required": false
}, {
"identifier": "WanIPAddress",
"dataType": {
"specs": {
"length": "255"
},
"type": "text"
},
"name": "内网IP地址",
"accessMode": "r",
"required": false
}, {
"identifier": "WanState",
"dataType": {
"specs": {
"0": "无外网",
"1": "有外网"
},
"type": "bool"
},
"name": "外网链路状态",
"accessMode": "r",
"required": false
}, {
"identifier": "IOTCloudState",
"dataType": {
"specs": {
"0": "无服务",
"1": "有服务"
},
"type": "bool"
},
"name": "云服务状态",
"accessMode": "r",
"required": false
}, {
"identifier": "Version",
"dataType": {
"specs": {
"length": "255"
},
"type": "text"
},
"name": "版本",
"accessMode": "r",
"required": false
}],
"services": [{
"outputData": [],
"identifier": "set",
"inputData": [],
"method": "thing.service.property.set",
"name": "set",
"required": true,
"callType": "async",
"desc": "属性设置"
}, {
"outputData": [{
"identifier": "SN",
"dataType": {
"specs": {
"length": "50"
},
"type": "text"
},
"name": "设备SN"
}, {
"identifier": "MACAddress",
"dataType": {
"specs": {
"length": "128"
},
"type": "text"
},
"name": "MAC地址"
}, {
"identifier": "LanIPAddress",
"dataType": {
"specs": {
"length": "255"
},
"type": "text"
},
"name": "内网IP地址"
}, {
"identifier": "WanIPAddress",
"dataType": {
"specs": {
"length": "255"
},
"type": "text"
},
"name": "内网IP地址"
}, {
"identifier": "WanState",
"dataType": {
"specs": {
"0": "无外网",
"1": "有外网"
},
"type": "bool"
},
"name": "外网链路状态"
}, {
"identifier": "IOTCloudState",
"dataType": {
"specs": {
"0": "无服务",
"1": "有服务"
},
"type": "bool"
},
"name": "云服务状态"
}, {
"identifier": "Version",
"dataType": {
"specs": {
"length": "255"
},
"type": "text"
},
"name": "版本"
}],
"identifier": "get",
"inputData": ["SN", "MACAddress", "LanIPAddress", "WanIPAddress", "IOTCloudState", "Version"],
"method": "thing.service.property.get",
"name": "get",
"required": true,
"callType": "async",
"desc": "属性获取"
}, {
"outputData": [],
"identifier": "reboot",
"inputData": [],
"method": "thing.service.reboot",
"name": "reboot",
"required": false,
"callType": "async",
"desc": "重启"
}, {
"outputData": [],
"identifier": "addRoom",
"inputData": [{
"identifier": "roomName",
"dataType": {
"specs": {
"length": "256"
},
"type": "text"
},
"name": "房间名字"
}],
"method": "thing.service.addRoom",
"name": "addRoom",
"required": true,
"callType": "async",
"desc": "添加房间"
}, {
"outputData": [],
"identifier": "addDeviceToRoom",
"inputData": [{
"identifier": "roomId",
"dataType": {
"specs": {
"length": "256"
},
"type": "text"
},
"name": "房间id"
}, {
"identifier": "deviceCode",
"dataType": {
"specs": {
"length": "256"
},
"type": "text"
},
"name": "设备编码"
}, {
"identifier": "epNum",
"dataType": {
"specs": {
"length": "10"
},
"type": "text"
},
"name": "设备路数"
}],
"method": "thing.service.addDeviceToRoom",
"name": "addDeviceToRoom",
"required": true,
"callType": "async",
"desc": "添加设备到房间"
}, {
"outputData": [],
"identifier": "removeDeviceFromRoom",
"inputData": [{
"identifier": "deviceCode",
"dataType": {
"specs": {
"length": "256"
},
"type": "text"
},
"name": "设备编码"
}, {
"identifier": "epNum",
"dataType": {
"specs": {
"length": "10"
},
"type": "text"
},
"name": "设备路数"
}],
"method": "thing.service.removeDeviceFromRoom",
"name": "removeDeviceFromRoom",
"required": true,
"callType": "async",
"desc": "移除设备从房间"
}, {
"outputData": [],
"identifier": "deleteRoom",
"inputData": [{
"identifier": "roomId",
"dataType": {
"specs": {
"length": "256"
},
"type": "text"
},
"name": "房间id"
}],
"method": "thing.service.deleteRoom",
"name": "deleteRoom",
"required": true,
"callType": "async",
"desc": "删除房间"
}, {
"outputData": [],
"identifier": "executeRoom",
"inputData": [{
"identifier": "roomId",
"dataType": {
"specs": {
"length": "256"
},
"type": "text"
},
"name": "房间id"
}, {
"identifier": "productType",
"dataType": {
"specs": {
"length": "256"
},
"type": "text"
},
"name": "产品类别"
}, {
"identifier": "action",
"dataType": {
"type": "struct",
"specs": [{
"identifier": "PowerSwitch",
"dataType": {
"specs": {
"0": "关闭",
"1": "打开"
},
"type": "bool"
},
"name": "电源开关"
}]
},
"name": "动作"
}],
"method": "thing.service.executeRoom",
"name": "executeRoom",
"required": true,
"callType": "async",
"desc": "批量执行房间设备"
}],
"events": [{
"outputData": [{
"identifier": "SN",
"dataType": {
"specs": {
"length": "50"
},
"type": "text"
},
"name": "设备SN"
}, {
"identifier": "MACAddress",
"dataType": {
"specs": {
"length": "128"
},
"type": "text"
},
"name": "MAC地址"
}, {
"identifier": "LanIPAddress",
"dataType": {
"specs": {
"length": "255"
},
"type": "text"
},
"name": "内网IP地址"
}, {
"identifier": "WanIPAddress",
"dataType": {
"specs": {
"length": "255"
},
"type": "text"
},
"name": "内网IP地址"
}, {
"identifier": "WanState",
"dataType": {
"specs": {
"0": "无外网",
"1": "有外网"
},
"type": "bool"
},
"name": "外网链路状态"
}, {
"identifier": "IOTCloudState",
"dataType": {
"specs": {
"0": "无服务",
"1": "有服务"
},
"type": "bool"
},
"name": "云服务状态"
}, {
"identifier": "Version",
"dataType": {
"specs": {
"length": "255"
},
"type": "text"
},
"name": "版本"
}],
"identifier": "property",
"method": "thing.event.property.post",
"name": "property",
"type": "info",
"required": true,
"desc": "属性上报"
}, {
"outputData": [],
"identifier": "rebootNotification",
"method": "thing.event.rebootNotification.post",
"name": "重启通知消息",
"type": "info",
"required": true
}, {
"outputData": [{
"identifier": "roomId",
"dataType": {
"specs": {
"length": "256"
},
"type": "text"
},
"name": "房间id"
}],
"identifier": "addRoomNotification",
"method": "thing.event.addRoomNotification.post",
"name": "房间添加通知消息",
"type": "info",
"required": true
}, {
"outputData": [{
"identifier": "ErrorCode",
"dataType": {
"specs": {
"0": "正常"
},
"type": "enum"
},
"name": "故障代码"
}],
"identifier": "error",
"method": "thing.event.error.post",
"name": "故障上报",
"type": "error",
"required": true
}]
}
\ No newline at end of file
{
"schema": "https://iot-ap.ikonke.com/model/ccu_15.json",
"productType": "ccu",
"profile": {
"productCode": "15",
"productName": "主机"
},
"properties": [{
"identifier": "SN",
"dataType": {
"specs": {
"length": "50"
},
"type": "text"
},
"name": "设备SN",
"accessMode": "r",
"required": false
}, {
"identifier": "MACAddress",
"dataType": {
"specs": {
"length": "128"
},
"type": "text"
},
"name": "MAC地址",
"accessMode": "r",
"required": false
}, {
"identifier": "LanIPAddress",
"dataType": {
"specs": {
"length": "255"
},
"type": "text"
},
"name": "内网IP地址",
"accessMode": "r",
"required": false
}, {
"identifier": "WanIPAddress",
"dataType": {
"specs": {
"length": "255"
},
"type": "text"
},
"name": "内网IP地址",
"accessMode": "r",
"required": false
}, {
"identifier": "WanState",
"dataType": {
"specs": {
"0": "无外网",
"1": "有外网"
},
"type": "bool"
},
"name": "外网链路状态",
"accessMode": "r",
"required": false
}, {
"identifier": "IOTCloudState",
"dataType": {
"specs": {
"0": "无服务",
"1": "有服务"
},
"type": "bool"
},
"name": "云服务状态",
"accessMode": "r",
"required": false
}, {
"identifier": "Version",
"dataType": {
"specs": {
"length": "255"
},
"type": "text"
},
"name": "版本",
"accessMode": "r",
"required": false
}],
"services": [{
"outputData": [],
"identifier": "set",
"inputData": [],
"method": "thing.service.property.set",
"name": "set",
"required": true,
"callType": "async",
"desc": "属性设置"
}, {
"outputData": [{
"identifier": "SN",
"dataType": {
"specs": {
"length": "50"
},
"type": "text"
},
"name": "设备SN"
}, {
"identifier": "MACAddress",
"dataType": {
"specs": {
"length": "128"
},
"type": "text"
},
"name": "MAC地址"
}, {
"identifier": "LanIPAddress",
"dataType": {
"specs": {
"length": "255"
},
"type": "text"
},
"name": "内网IP地址"
}, {
"identifier": "WanIPAddress",
"dataType": {
"specs": {
"length": "255"
},
"type": "text"
},
"name": "内网IP地址"
}, {
"identifier": "WanState",
"dataType": {
"specs": {
"0": "无外网",
"1": "有外网"
},
"type": "bool"
},
"name": "外网链路状态"
}, {
"identifier": "IOTCloudState",
"dataType": {
"specs": {
"0": "无服务",
"1": "有服务"
},
"type": "bool"
},
"name": "云服务状态"
}, {
"identifier": "Version",
"dataType": {
"specs": {
"length": "255"
},
"type": "text"
},
"name": "版本"
}],
"identifier": "get",
"inputData": ["SN", "MACAddress", "LanIPAddress", "WanIPAddress", "IOTCloudState", "Version"],
"method": "thing.service.property.get",
"name": "get",
"required": true,
"callType": "async",
"desc": "属性获取"
}, {
"outputData": [],
"identifier": "reboot",
"inputData": [],
"method": "thing.service.reboot",
"name": "reboot",
"required": false,
"callType": "async",
"desc": "重启"
}, {
"outputData": [],
"identifier": "addRoom",
"inputData": [{
"identifier": "roomName",
"dataType": {
"specs": {
"length": "256"
},
"type": "text"
},
"name": "房间名字"
}],
"method": "thing.service.addRoom",
"name": "addRoom",
"required": true,
"callType": "async",
"desc": "添加房间"
}, {
"outputData": [],
"identifier": "addDeviceToRoom",
"inputData": [{
"identifier": "roomId",
"dataType": {
"specs": {
"length": "256"
},
"type": "text"
},
"name": "房间id"
}, {
"identifier": "deviceCode",
"dataType": {
"specs": {
"length": "256"
},
"type": "text"
},
"name": "设备编码"
}, {
"identifier": "epNum",
"dataType": {
"specs": {
"length": "10"
},
"type": "text"
},
"name": "设备路数"
}],
"method": "thing.service.addDeviceToRoom",
"name": "addDeviceToRoom",
"required": true,
"callType": "async",
"desc": "添加设备到房间"
}, {
"outputData": [],
"identifier": "removeDeviceFromRoom",
"inputData": [{
"identifier": "deviceCode",
"dataType": {
"specs": {
"length": "256"
},
"type": "text"
},
"name": "设备编码"
}, {
"identifier": "epNum",
"dataType": {
"specs": {
"length": "10"
},
"type": "text"
},
"name": "设备路数"
}],
"method": "thing.service.removeDeviceFromRoom",
"name": "removeDeviceFromRoom",
"required": true,
"callType": "async",
"desc": "移除设备从房间"
}, {
"outputData": [],
"identifier": "deleteRoom",
"inputData": [{
"identifier": "roomId",
"dataType": {
"specs": {
"length": "256"
},
"type": "text"
},
"name": "房间id"
}],
"method": "thing.service.deleteRoom",
"name": "deleteRoom",
"required": true,
"callType": "async",
"desc": "删除房间"
}, {
"outputData": [],
"identifier": "executeRoom",
"inputData": [{
"identifier": "roomId",
"dataType": {
"specs": {
"length": "256"
},
"type": "text"
},
"name": "房间id"
}, {
"identifier": "productType",
"dataType": {
"specs": {
"length": "256"
},
"type": "text"
},
"name": "产品类别"
}, {
"identifier": "action",
"dataType": {
"type": "struct",
"specs": [{
"identifier": "PowerSwitch",
"dataType": {
"specs": {
"0": "关闭",
"1": "打开"
},
"type": "bool"
},
"name": "电源开关"
}]
},
"name": "动作"
}],
"method": "thing.service.executeRoom",
"name": "executeRoom",
"required": true,
"callType": "async",
"desc": "批量执行房间设备"
}],
"events": [{
"outputData": [{
"identifier": "SN",
"dataType": {
"specs": {
"length": "50"
},
"type": "text"
},
"name": "设备SN"
}, {
"identifier": "MACAddress",
"dataType": {
"specs": {
"length": "128"
},
"type": "text"
},
"name": "MAC地址"
}, {
"identifier": "LanIPAddress",
"dataType": {
"specs": {
"length": "255"
},
"type": "text"
},
"name": "内网IP地址"
}, {
"identifier": "WanIPAddress",
"dataType": {
"specs": {
"length": "255"
},
"type": "text"
},
"name": "内网IP地址"
}, {
"identifier": "WanState",
"dataType": {
"specs": {
"0": "无外网",
"1": "有外网"
},
"type": "bool"
},
"name": "外网链路状态"
}, {
"identifier": "IOTCloudState",
"dataType": {
"specs": {
"0": "无服务",
"1": "有服务"
},
"type": "bool"
},
"name": "云服务状态"
}, {
"identifier": "Version",
"dataType": {
"specs": {
"length": "255"
},
"type": "text"
},
"name": "版本"
}],
"identifier": "property",
"method": "thing.event.property.post",
"name": "property",
"type": "info",
"required": true,
"desc": "属性上报"
}, {
"outputData": [],
"identifier": "rebootNotification",
"method": "thing.event.rebootNotification.post",
"name": "重启通知消息",
"type": "info",
"required": true
}, {
"outputData": [{
"identifier": "roomId",
"dataType": {
"specs": {
"length": "256"
},
"type": "text"
},
"name": "房间id"
}],
"identifier": "addRoomNotification",
"method": "thing.event.addRoomNotification.post",
"name": "房间添加通知消息",
"type": "info",
"required": true
}, {
"outputData": [{
"identifier": "ErrorCode",
"dataType": {
"specs": {
"0": "正常"
},
"type": "enum"
},
"name": "故障代码"
}],
"identifier": "error",
"method": "thing.event.error.post",
"name": "故障上报",
"type": "error",
"required": true
}]
}
\ No newline at end of file
{
"schema": "https://iot-ap.ikonke.com/model/ccu_12.json",
"productType": "ccu",
"profile": {
"heartbeat": "3000",
"productCode": "12",
"productName": "主机"
},
"properties": [
{
"identifier": "SN",
"dataType": {
"specs": {
"length": "50"
},
"type": "text"
},
"name": "设备SN",
"accessMode": "r",
"required": false
},
{
"identifier": "MACAddress",
"dataType": {
"specs": {
"length": "128"
},
"type": "text"
},
"name": "MAC地址",
"accessMode": "r",
"required": false
},
{
"identifier": "LanIPAddress",
"dataType": {
"specs": {
"length": "255"
},
"type": "text"
},
"name": "内网IP地址",
"accessMode": "r",
"required": false
},
{
"identifier": "WanIPAddress",
"dataType": {
"specs": {
"length": "255"
},
"type": "text"
},
"name": "内网IP地址",
"accessMode": "r",
"required": false
},
{
"identifier": "WanState",
"dataType": {
"specs": {
"0": "无外网",
"1": "有外网"
},
"type": "bool"
},
"name": "外网链路状态",
"accessMode": "r",
"required": false
},
{
"identifier": "IOTCloudState",
"dataType": {
"specs": {
"0": "无服务",
"1": "有服务"
},
"type": "bool"
},
"name": "云服务状态",
"accessMode": "r",
"required": false
},
{
"identifier": "Version",
"dataType": {
"specs": {
"length": "255"
},
"type": "text"
},
"name": "版本",
"accessMode": "r",
"required": false
},
{
"identifier": "ArmingState",
"dataType": {
"specs": {
"0": "离家布防",
"1": "撤防",
"2": "在家布防",
"3": "区域布防"
},
"type": "bool"
},
"name": "安防状态",
"accessMode": "rw",
"required": false
}
],
"services": [
{
"outputData": [],
"identifier": "set",
"inputData": [
{
"identifier": "ArmingState",
"dataType": {
"specs": {
"0": "离家布防",
"1": "撤防",
"2": "在家布防",
"3": "区域布防"
},
"type": "bool"
},
"name": "安防状态"
}
],
"method": "thing.service.property.set",
"name": "set",
"required": true,
"callType": "async",
"desc": "属性设置"
},
{
"outputData": [
{
"identifier": "SN",
"dataType": {
"specs": {
"length": "50"
},
"type": "text"
},
"name": "设备SN"
},
{
"identifier": "MACAddress",
"dataType": {
"specs": {
"length": "128"
},
"type": "text"
},
"name": "MAC地址"
},
{
"identifier": "LanIPAddress",
"dataType": {
"specs": {
"length": "255"
},
"type": "text"
},
"name": "内网IP地址"
},
{
"identifier": "WanIPAddress",
"dataType": {
"specs": {
"length": "255"
},
"type": "text"
},
"name": "内网IP地址"
},
{
"identifier": "WanState",
"dataType": {
"specs": {
"0": "无外网",
"1": "有外网"
},
"type": "bool"
},
"name": "外网链路状态"
},
{
"identifier": "IOTCloudState",
"dataType": {
"specs": {
"0": "无服务",
"1": "有服务"
},
"type": "bool"
},
"name": "云服务状态"
},
{
"identifier": "Version",
"dataType": {
"specs": {
"length": "255"
},
"type": "text"
},
"name": "版本"
},
{
"identifier": "ArmingState",
"dataType": {
"specs": {
"0": "离家布防",
"1": "撤防",
"2": "在家布防",
"3": "区域布防"
},
"type": "bool"
},
"name": "安防状态"
}
],
"identifier": "get",
"inputData": [
"SN",
"MACAddress",
"LanIPAddress",
"WanIPAddress",
"IOTCloudState",
"Version",
"ArmingState"
],
"method": "thing.service.property.get",
"name": "get",
"required": true,
"callType": "async",
"desc": "属性获取"
},
{
"outputData": [],
"identifier": "reboot",
"inputData": [],
"method": "thing.service.reboot",
"name": "reboot",
"required": false,
"callType": "async",
"desc": "重启"
},
{
"outputData": [],
"identifier": "addRoom",
"inputData": [
{
"identifier": "roomName",
"dataType": {
"specs": {
"length": "256"
},
"type": "text"
},
"name": "房间名字"
}
],
"method": "thing.service.addRoom",
"name": "addRoom",
"required": true,
"callType": "async",
"desc": "添加房间"
},
{
"outputData": [],
"identifier": "addDeviceToRoom",
"inputData": [
{
"identifier": "roomId",
"dataType": {
"specs": {
"length": "256"
},
"type": "text"
},
"name": "房间id"
},
{
"identifier": "deviceCode",
"dataType": {
"specs": {
"length": "256"
},
"type": "text"
},
"name": "设备编码"
},
{
"identifier": "epNum",
"dataType": {
"specs": {
"length": "10"
},
"type": "text"
},
"name": "设备路数"
}
],
"method": "thing.service.addDeviceToRoom",
"name": "addDeviceToRoom",
"required": true,
"callType": "async",
"desc": "添加设备到房间"
},
{
"outputData": [],
"identifier": "removeDeviceFromRoom",
"inputData": [
{
"identifier": "deviceCode",
"dataType": {
"specs": {
"length": "256"
},
"type": "text"
},
"name": "设备编码"
},
{
"identifier": "epNum",
"dataType": {
"specs": {
"length": "10"
},
"type": "text"
},
"name": "设备路数"
}
],
"method": "thing.service.removeDeviceFromRoom",
"name": "removeDeviceFromRoom",
"required": true,
"callType": "async",
"desc": "移除设备从房间"
},
{
"outputData": [],
"identifier": "deleteRoom",
"inputData": [
{
"identifier": "roomId",
"dataType": {
"specs": {
"length": "256"
},
"type": "text"
},
"name": "房间id"
}
],
"method": "thing.service.deleteRoom",
"name": "deleteRoom",
"required": true,
"callType": "async",
"desc": "删除房间"
},
{
"outputData": [],
"identifier": "executeRoom",
"inputData": [
{
"identifier": "roomId",
"dataType": {
"specs": {
"length": "256"
},
"type": "text"
},
"name": "房间id"
},
{
"identifier": "productType",
"dataType": {
"specs": {
"length": "256"
},
"type": "text"
},
"name": "产品类别"
},
{
"identifier": "action",
"dataType": {
"type": "struct",
"specs": [
{
"identifier": "PowerSwitch",
"dataType": {
"specs": {
"0": "关闭",
"1": "打开"
},
"type": "bool"
},
"name": "电源开关"
}
]
},
"name": "动作"
}
],
"method": "thing.service.executeRoom",
"name": "executeRoom",
"required": true,
"callType": "async",
"desc": "批量执行房间设备"
}
],
"events": [
{
"outputData": [
{
"identifier": "SN",
"dataType": {
"specs": {
"length": "50"
},
"type": "text"
},
"name": "设备SN"
},
{
"identifier": "MACAddress",
"dataType": {
"specs": {
"length": "128"
},
"type": "text"
},
"name": "MAC地址"
},
{
"identifier": "LanIPAddress",
"dataType": {
"specs": {
"length": "255"
},
"type": "text"
},
"name": "内网IP地址"
},
{
"identifier": "WanIPAddress",
"dataType": {
"specs": {
"length": "255"
},
"type": "text"
},
"name": "内网IP地址"
},
{
"identifier": "WanState",
"dataType": {
"specs": {
"0": "无外网",
"1": "有外网"
},
"type": "bool"
},
"name": "外网链路状态"
},
{
"identifier": "IOTCloudState",
"dataType": {
"specs": {
"0": "无服务",
"1": "有服务"
},
"type": "bool"
},
"name": "云服务状态"
},
{
"identifier": "Version",
"dataType": {
"specs": {
"length": "255"
},
"type": "text"
},
"name": "版本"
}
],
"identifier": "property",
"method": "thing.event.property.post",
"name": "property",
"type": "info",
"required": true,
"desc": "属性上报"
},
{
"outputData": [],
"identifier": "rebootNotification",
"method": "thing.event.rebootNotification.post",
"name": "重启通知消息",
"type": "info",
"required": true
},
{
"outputData": [
{
"identifier": "roomId",
"dataType": {
"specs": {
"length": "256"
},
"type": "text"
},
"name": "房间id"
}
],
"identifier": "addRoomNotification",
"method": "thing.event.addRoomNotification.post",
"name": "房间添加通知消息",
"type": "info",
"required": true
},
{
"outputData": [
{
"identifier": "ErrorCode",
"dataType": {
"specs": {
"0": "正常"
},
"type": "enum"
},
"name": "故障代码"
}
],
"identifier": "error",
"method": "thing.event.error.post",
"name": "故障上报",
"type": "error",
"required": true
}
]
}
\ No newline at end of file
{
"schema": "https://iot-ap.ikonke.com/model/ccu_12_scene.json",
"productType": "ccu",
"profile": {
"heartbeat": "3000",
"productCode": "12",
"productName": "主机"
},
"properties": [{
"identifier": "Scene",
"name": "场景",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "struct",
"specs": [{
"identifier": "sceneId",
"name": "场景id",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "name",
"name": "场景名字",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "sceneType",
"name": "场景类型",
"dataType": {
"type": "enum",
"specs": {
"0": "情景模式",
"1": "IFTTT",
"2": "定时",
"3": "多控"
}
}
}, {
"identifier": "enable",
"name": "启用",
"dataType": {
"type": "bool",
"specs": {
"0": "关闭",
"1": "启用"
}
}
}, {
"identifier": "triggers",
"name": "触发条件",
"dataType": {
"type": "struct",
"specs": {}
}
}, {
"identifier": "conditions",
"name": "限制条件",
"dataType": {
"type": "struct",
"specs": {}
}
}, {
"identifier": "actions",
"name": "动作",
"dataType": {
"type": "struct",
"specs": {}
}
}]
}
}, {
"identifier": "triggers",
"name": "触发场景",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "struct",
"specs": [{
"identifier": "items",
"name": "记录",
"dataType": {
"type": "array",
"specs": {
"size": "128",
"item": {
"type": "struct",
"specs": [{
"identifier": "type",
"name": "触发类型",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "deviceCode",
"name": "设备唯一标识",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "epNum",
"name": "端点号",
"dataType": {
"type": "int",
"specs": {
"min": "1",
"max": "100"
}
}
}, {
"identifier": "propertyName",
"name": "属性名",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "compareType",
"name": "标记类型",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "compareValue",
"name": "比较值",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}]
},
"item1": {
"name": "定时时间",
"type": "struct",
"specs": [{
"identifier": "type",
"name": "限制类型 trigger/timing",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "time",
"name": "定时时间",
"dataType": {
"type": "int",
"specs": {}
}
}, {
"identifier": "week",
"name": "重复的周期",
"dataType": {
"type": "array",
"specs": {
"size": "7",
"item": {
"type": "int",
"specs": [1, 2, 3, 4, 5, 6, 7]
}
}
}
}]
}
}
}
}]
}
}, {
"identifier": "conditions",
"name": "限制条件",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "struct",
"specs": [{
"identifier": "items",
"name": "记录",
"dataType": {
"type": "array",
"specs": {
"size": "128",
"item": {
"name": "时间限制条件",
"type": "struct",
"specs": [{
"identifier": "type",
"name": "限制类型",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "startTime",
"name": "开始时间 UTC时间 秒",
"dataType": {
"type": "int",
"specs": {}
}
}, {
"identifier": "endTime",
"name": "结束时间 UTC时间 秒",
"dataType": {
"type": "int",
"specs": {}
}
}, {
"identifier": "crossDay",
"name": "是否垮天",
"dataType": {
"type": "enum",
"specs": {
"0": "非跨天",
"1": "垮天"
}
}
}, {
"identifier": "repeat_days",
"name": "重复的天 为空是不重复",
"dataType": {
"type": "array",
"specs": {
"size": "7",
"item": {
"type": "int",
"specs": [1, 2, 3, 4, 5, 6, 7]
}
}
}
}]
},
"item1": {
"name": "设备属性限制条件",
"type": "struct",
"specs": [{
"identifier": "type",
"name": "触发类型",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "deviceCode",
"name": "设备唯一标识",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "epNum",
"name": "端点号",
"dataType": {
"type": "int",
"specs": {
"min": "1",
"max": "100"
}
}
}, {
"identifier": "propertyName",
"name": "属性名",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "compareType",
"name": "标记类型",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "compareValue",
"name": "比较值",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}]
}
}
}
}]
}
}, {
"identifier": "actions",
"name": "执行动作",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "array",
"specs": {
"size": "128",
"item": {
"name": "设置属性",
"type": "struct",
"specs": [{
"identifier": "type",
"name": "动作类型",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "deviceCode",
"name": "设备唯一标识",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "epNum",
"name": "端点号",
"dataType": {
"type": "int",
"specs": {
"min": "1",
"max": "100"
}
}
}, {
"identifier": "propertyName",
"name": "属性名",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "propertyValue",
"name": "属性值",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "delay",
"name": "延迟时间 单位s",
"dataType": {
"type": "int",
"specs": {
"min": "1",
"max": "86400"
}
}
}]
},
"item1": {
"name": "批量动作",
"type": "struct",
"specs": [{
"identifier": "type",
"name": "动作类型 action/thing/setProperty",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "productType",
"name": "批量执行的产品品类",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "propertyName",
"name": "属性名",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "propertyValue",
"name": "属性值",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}]
},
"item2": {
"name": "嵌套场景",
"type": "struct",
"specs": [{
"identifier": "type",
"name": "动作类型 action/scene",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "sceneId",
"name": "场景id",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "delay",
"name": "延迟时间 单位s",
"dataType": {
"type": "int",
"specs": {
"min": "1",
"max": "86400"
}
}
}]
},
"item3": {
"name": "多控",
"type": "struct",
"specs": [{
"identifier": "type",
"name": "动作类型 action/thing/group",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "deviceCode",
"name": "设备唯一标识",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "epNum",
"name": "端点号",
"dataType": {
"type": "int",
"specs": {
"min": "1",
"max": "100"
}
}
}]
}
}
}
}],
"events": [{
"identifier": "addSceneNotification",
"name": "添加场景通知",
"type": "info",
"required": true,
"method": "thing.event.addSceneNotification.post",
"outputData": [{
"identifier": "sceneId",
"name": "场景id",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}]
}, {
"identifier": "updateSceneNotification",
"name": "修改场景通知",
"type": "info",
"required": true,
"method": "thing.event.updateSceneNotification.post",
"outputData": [{
"identifier": "sceneId",
"name": "场景id",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}]
}, {
"identifier": "deleteSceneNotification",
"name": "删除场景通知",
"type": "info",
"required": true,
"method": "thing.event.deleteSceneNotification.post",
"outputData": [{
"identifier": "sceneId",
"name": "场景id",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}]
}, {
"identifier": "executeSceneNotification",
"name": "执行场景通知",
"type": "info",
"required": true,
"method": "thing.event.executeSceneNotification.post",
"outputData": [{
"identifier": "sceneId",
"name": "场景id",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}]
}],
"services": [{
"identifier": "addScene",
"name": "addScene",
"required": true,
"callType": "async",
"desc": "添加场景",
"method": "thing.service.addScene",
"inputData": [{
"identifier": "name",
"name": "场景名字",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "sceneType",
"name": "场景类型",
"dataType": {
"type": "enum",
"specs": {
"0": "情景模式",
"1": "IFTTT",
"2": "定时"
}
}
}, {
"identifier": "enable",
"name": "启用",
"dataType": {
"type": "bool",
"specs": {
"0": "关闭",
"1": "启用"
}
}
}, {
"identifier": "triggers",
"name": "触发条件",
"dataType": {
"type": "struct",
"specs": {}
}
}, {
"identifier": "conditions",
"name": "限制条件",
"dataType": {
"type": "struct",
"specs": {}
}
}, {
"identifier": "actions",
"name": "动作",
"dataType": {
"type": "struct",
"specs": {}
}
}],
"outputData": []
}, {
"identifier": "updateScene",
"name": "updateScene",
"required": true,
"callType": "async",
"desc": "修改场景",
"method": "thing.service.updateScene",
"inputData": [{
"identifier": "sceneId",
"name": "场景id",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "name",
"name": "场景名字",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "sceneType",
"name": "场景类型",
"dataType": {
"type": "enum",
"specs": {
"0": "情景模式",
"1": "IFTTT",
"2": "定时"
}
}
}, {
"identifier": "enable",
"name": "启用",
"dataType": {
"type": "bool",
"specs": {
"0": "关闭",
"1": "启用"
}
}
}, {
"identifier": "triggers",
"name": "触发条件",
"dataType": {
"type": "struct",
"specs": {}
}
}, {
"identifier": "conditions",
"name": "限制条件",
"dataType": {
"type": "struct",
"specs": {}
}
}, {
"identifier": "actions",
"name": "动作",
"dataType": {
"type": "struct",
"specs": {}
}
}],
"outputData": []
}, {
"identifier": "deleteScene",
"name": "deleteScene",
"required": true,
"callType": "async",
"desc": "删除场景",
"method": "thing.service.deleteScene",
"inputData": [{
"identifier": "sceneId",
"name": "场景id",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}],
"outputData": []
}, {
"identifier": "executeScene",
"name": "executeScene",
"required": true,
"callType": "async",
"desc": "执行场景",
"method": "thing.service.executeScene",
"inputData": [{
"identifier": "sceneId",
"name": "场景id",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}],
"outputData": []
}]
}
\ No newline at end of file
{
"schema": "https://iot-ap.ikonke.com/model/ccu_15.json",
"productType": "ccu",
"profile": {
"heartbeat": "3000",
"productCode": "15",
"productName": "主机"
},
"properties": [
{
"identifier": "SN",
"dataType": {
"specs": {
"length": "50"
},
"type": "text"
},
"name": "设备SN",
"accessMode": "r",
"required": false
},
{
"identifier": "MACAddress",
"dataType": {
"specs": {
"length": "128"
},
"type": "text"
},
"name": "MAC地址",
"accessMode": "r",
"required": false
},
{
"identifier": "LanIPAddress",
"dataType": {
"specs": {
"length": "255"
},
"type": "text"
},
"name": "内网IP地址",
"accessMode": "r",
"required": false
},
{
"identifier": "WanIPAddress",
"dataType": {
"specs": {
"length": "255"
},
"type": "text"
},
"name": "内网IP地址",
"accessMode": "r",
"required": false
},
{
"identifier": "WanState",
"dataType": {
"specs": {
"0": "无外网",
"1": "有外网"
},
"type": "bool"
},
"name": "外网链路状态",
"accessMode": "r",
"required": false
},
{
"identifier": "IOTCloudState",
"dataType": {
"specs": {
"0": "无服务",
"1": "有服务"
},
"type": "bool"
},
"name": "云服务状态",
"accessMode": "r",
"required": false
},
{
"identifier": "Version",
"dataType": {
"specs": {
"length": "255"
},
"type": "text"
},
"name": "版本",
"accessMode": "r",
"required": false
},
{
"identifier": "ArmingState",
"dataType": {
"specs": {
"0": "离家布防",
"1": "撤防",
"2": "在家布防",
"3": "区域布防"
},
"type": "bool"
},
"name": "安防状态",
"accessMode": "rw",
"required": false
}
],
"services": [
{
"outputData": [],
"identifier": "set",
"inputData": [
{
"identifier": "ArmingState",
"dataType": {
"specs": {
"0": "离家布防",
"1": "撤防",
"2": "在家布防",
"3": "区域布防"
},
"type": "bool"
},
"name": "安防状态"
}
],
"method": "thing.service.property.set",
"name": "set",
"required": true,
"callType": "async",
"desc": "属性设置"
},
{
"outputData": [
{
"identifier": "SN",
"dataType": {
"specs": {
"length": "50"
},
"type": "text"
},
"name": "设备SN"
},
{
"identifier": "MACAddress",
"dataType": {
"specs": {
"length": "128"
},
"type": "text"
},
"name": "MAC地址"
},
{
"identifier": "LanIPAddress",
"dataType": {
"specs": {
"length": "255"
},
"type": "text"
},
"name": "内网IP地址"
},
{
"identifier": "WanIPAddress",
"dataType": {
"specs": {
"length": "255"
},
"type": "text"
},
"name": "内网IP地址"
},
{
"identifier": "WanState",
"dataType": {
"specs": {
"0": "无外网",
"1": "有外网"
},
"type": "bool"
},
"name": "外网链路状态"
},
{
"identifier": "IOTCloudState",
"dataType": {
"specs": {
"0": "无服务",
"1": "有服务"
},
"type": "bool"
},
"name": "云服务状态"
},
{
"identifier": "Version",
"dataType": {
"specs": {
"length": "255"
},
"type": "text"
},
"name": "版本"
},
{
"identifier": "ArmingState",
"dataType": {
"specs": {
"0": "离家布防",
"1": "撤防",
"2": "在家布防",
"3": "区域布防"
},
"type": "bool"
},
"name": "安防状态"
}
],
"identifier": "get",
"inputData": [
"SN",
"MACAddress",
"LanIPAddress",
"WanIPAddress",
"IOTCloudState",
"Version",
"ArmingState"
],
"method": "thing.service.property.get",
"name": "get",
"required": true,
"callType": "async",
"desc": "属性获取"
},
{
"outputData": [],
"identifier": "reboot",
"inputData": [],
"method": "thing.service.reboot",
"name": "reboot",
"required": false,
"callType": "async",
"desc": "重启"
},
{
"outputData": [],
"identifier": "addRoom",
"inputData": [
{
"identifier": "roomName",
"dataType": {
"specs": {
"length": "256"
},
"type": "text"
},
"name": "房间名字"
}
],
"method": "thing.service.addRoom",
"name": "addRoom",
"required": true,
"callType": "async",
"desc": "添加房间"
},
{
"outputData": [],
"identifier": "addDeviceToRoom",
"inputData": [
{
"identifier": "roomId",
"dataType": {
"specs": {
"length": "256"
},
"type": "text"
},
"name": "房间id"
},
{
"identifier": "deviceCode",
"dataType": {
"specs": {
"length": "256"
},
"type": "text"
},
"name": "设备编码"
},
{
"identifier": "epNum",
"dataType": {
"specs": {
"length": "10"
},
"type": "text"
},
"name": "设备路数"
}
],
"method": "thing.service.addDeviceToRoom",
"name": "addDeviceToRoom",
"required": true,
"callType": "async",
"desc": "添加设备到房间"
},
{
"outputData": [],
"identifier": "removeDeviceFromRoom",
"inputData": [
{
"identifier": "deviceCode",
"dataType": {
"specs": {
"length": "256"
},
"type": "text"
},
"name": "设备编码"
},
{
"identifier": "epNum",
"dataType": {
"specs": {
"length": "10"
},
"type": "text"
},
"name": "设备路数"
}
],
"method": "thing.service.removeDeviceFromRoom",
"name": "removeDeviceFromRoom",
"required": true,
"callType": "async",
"desc": "移除设备从房间"
},
{
"outputData": [],
"identifier": "deleteRoom",
"inputData": [
{
"identifier": "roomId",
"dataType": {
"specs": {
"length": "256"
},
"type": "text"
},
"name": "房间id"
}
],
"method": "thing.service.deleteRoom",
"name": "deleteRoom",
"required": true,
"callType": "async",
"desc": "删除房间"
},
{
"outputData": [],
"identifier": "executeRoom",
"inputData": [
{
"identifier": "roomId",
"dataType": {
"specs": {
"length": "256"
},
"type": "text"
},
"name": "房间id"
},
{
"identifier": "productType",
"dataType": {
"specs": {
"length": "256"
},
"type": "text"
},
"name": "产品类别"
},
{
"identifier": "action",
"dataType": {
"type": "struct",
"specs": [
{
"identifier": "PowerSwitch",
"dataType": {
"specs": {
"0": "关闭",
"1": "打开"
},
"type": "bool"
},
"name": "电源开关"
}
]
},
"name": "动作"
}
],
"method": "thing.service.executeRoom",
"name": "executeRoom",
"required": true,
"callType": "async",
"desc": "批量执行房间设备"
}
],
"events": [
{
"outputData": [
{
"identifier": "SN",
"dataType": {
"specs": {
"length": "50"
},
"type": "text"
},
"name": "设备SN"
},
{
"identifier": "MACAddress",
"dataType": {
"specs": {
"length": "128"
},
"type": "text"
},
"name": "MAC地址"
},
{
"identifier": "LanIPAddress",
"dataType": {
"specs": {
"length": "255"
},
"type": "text"
},
"name": "内网IP地址"
},
{
"identifier": "WanIPAddress",
"dataType": {
"specs": {
"length": "255"
},
"type": "text"
},
"name": "内网IP地址"
},
{
"identifier": "WanState",
"dataType": {
"specs": {
"0": "无外网",
"1": "有外网"
},
"type": "bool"
},
"name": "外网链路状态"
},
{
"identifier": "IOTCloudState",
"dataType": {
"specs": {
"0": "无服务",
"1": "有服务"
},
"type": "bool"
},
"name": "云服务状态"
},
{
"identifier": "Version",
"dataType": {
"specs": {
"length": "255"
},
"type": "text"
},
"name": "版本"
}
],
"identifier": "property",
"method": "thing.event.property.post",
"name": "property",
"type": "info",
"required": true,
"desc": "属性上报"
},
{
"outputData": [],
"identifier": "rebootNotification",
"method": "thing.event.rebootNotification.post",
"name": "重启通知消息",
"type": "info",
"required": true
},
{
"outputData": [
{
"identifier": "roomId",
"dataType": {
"specs": {
"length": "256"
},
"type": "text"
},
"name": "房间id"
}
],
"identifier": "addRoomNotification",
"method": "thing.event.addRoomNotification.post",
"name": "房间添加通知消息",
"type": "info",
"required": true
},
{
"outputData": [
{
"identifier": "ErrorCode",
"dataType": {
"specs": {
"0": "正常"
},
"type": "enum"
},
"name": "故障代码"
}
],
"identifier": "error",
"method": "thing.event.error.post",
"name": "故障上报",
"type": "error",
"required": true
}
]
}
\ No newline at end of file
{
"schema": "https://iot-ap.ikonke.com/model/ccu_15_scene.json",
"productType": "ccu",
"profile": {
"heartbeat": "3000",
"productCode": "15",
"productName": "主机"
},
"properties": [{
"identifier": "Scene",
"name": "场景",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "struct",
"specs": [{
"identifier": "sceneId",
"name": "场景id",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "name",
"name": "场景名字",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "sceneType",
"name": "场景类型",
"dataType": {
"type": "enum",
"specs": {
"0": "情景模式",
"1": "IFTTT",
"2": "定时",
"3": "多控"
}
}
}, {
"identifier": "enable",
"name": "启用",
"dataType": {
"type": "bool",
"specs": {
"0": "关闭",
"1": "启用"
}
}
}, {
"identifier": "triggers",
"name": "触发条件",
"dataType": {
"type": "struct",
"specs": {}
}
}, {
"identifier": "conditions",
"name": "限制条件",
"dataType": {
"type": "struct",
"specs": {}
}
}, {
"identifier": "actions",
"name": "动作",
"dataType": {
"type": "struct",
"specs": {}
}
}]
}
}, {
"identifier": "triggers",
"name": "触发场景",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "struct",
"specs": [{
"identifier": "items",
"name": "记录",
"dataType": {
"type": "array",
"specs": {
"size": "128",
"item": {
"type": "struct",
"specs": [{
"identifier": "type",
"name": "触发类型",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "deviceCode",
"name": "设备唯一标识",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "epNum",
"name": "端点号",
"dataType": {
"type": "int",
"specs": {
"min": "1",
"max": "100"
}
}
}, {
"identifier": "propertyName",
"name": "属性名",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "compareType",
"name": "标记类型",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "compareValue",
"name": "比较值",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}]
},
"item1": {
"name": "定时时间",
"type": "struct",
"specs": [{
"identifier": "type",
"name": "限制类型 trigger/timing",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "time",
"name": "定时时间",
"dataType": {
"type": "int",
"specs": {}
}
}, {
"identifier": "week",
"name": "重复的周期",
"dataType": {
"type": "array",
"specs": {
"size": "7",
"item": {
"type": "int",
"specs": [1, 2, 3, 4, 5, 6, 7]
}
}
}
}]
}
}
}
}]
}
}, {
"identifier": "conditions",
"name": "限制条件",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "struct",
"specs": [{
"identifier": "items",
"name": "记录",
"dataType": {
"type": "array",
"specs": {
"size": "128",
"item": {
"name": "时间限制条件",
"type": "struct",
"specs": [{
"identifier": "type",
"name": "限制类型",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "startTime",
"name": "开始时间 UTC时间 秒",
"dataType": {
"type": "int",
"specs": {}
}
}, {
"identifier": "endTime",
"name": "结束时间 UTC时间 秒",
"dataType": {
"type": "int",
"specs": {}
}
}, {
"identifier": "crossDay",
"name": "是否垮天",
"dataType": {
"type": "enum",
"specs": {
"0": "非跨天",
"1": "垮天"
}
}
}, {
"identifier": "repeat_days",
"name": "重复的天 为空是不重复",
"dataType": {
"type": "array",
"specs": {
"size": "7",
"item": {
"type": "int",
"specs": [1, 2, 3, 4, 5, 6, 7]
}
}
}
}]
},
"item1": {
"name": "设备属性限制条件",
"type": "struct",
"specs": [{
"identifier": "type",
"name": "触发类型",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "deviceCode",
"name": "设备唯一标识",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "epNum",
"name": "端点号",
"dataType": {
"type": "int",
"specs": {
"min": "1",
"max": "100"
}
}
}, {
"identifier": "propertyName",
"name": "属性名",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "compareType",
"name": "标记类型",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "compareValue",
"name": "比较值",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}]
}
}
}
}]
}
}, {
"identifier": "actions",
"name": "执行动作",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "array",
"specs": {
"size": "128",
"item": {
"name": "设置属性",
"type": "struct",
"specs": [{
"identifier": "type",
"name": "动作类型",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "deviceCode",
"name": "设备唯一标识",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "epNum",
"name": "端点号",
"dataType": {
"type": "int",
"specs": {
"min": "1",
"max": "100"
}
}
}, {
"identifier": "propertyName",
"name": "属性名",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "propertyValue",
"name": "属性值",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "delay",
"name": "延迟时间 单位s",
"dataType": {
"type": "int",
"specs": {
"min": "1",
"max": "86400"
}
}
}]
},
"item1": {
"name": "批量动作",
"type": "struct",
"specs": [{
"identifier": "type",
"name": "动作类型 action/thing/setProperty",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "productType",
"name": "批量执行的产品品类",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "propertyName",
"name": "属性名",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "propertyValue",
"name": "属性值",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}]
},
"item2": {
"name": "嵌套场景",
"type": "struct",
"specs": [{
"identifier": "type",
"name": "动作类型 action/scene",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "sceneId",
"name": "场景id",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "delay",
"name": "延迟时间 单位s",
"dataType": {
"type": "int",
"specs": {
"min": "1",
"max": "86400"
}
}
}]
},
"item3": {
"name": "多控",
"type": "struct",
"specs": [{
"identifier": "type",
"name": "动作类型 action/thing/group",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "deviceCode",
"name": "设备唯一标识",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "epNum",
"name": "端点号",
"dataType": {
"type": "int",
"specs": {
"min": "1",
"max": "100"
}
}
}]
}
}
}
}],
"events": [{
"identifier": "addSceneNotification",
"name": "添加场景通知",
"type": "info",
"required": true,
"method": "thing.event.addSceneNotification.post",
"outputData": [{
"identifier": "sceneId",
"name": "场景id",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}]
}, {
"identifier": "updateSceneNotification",
"name": "修改场景通知",
"type": "info",
"required": true,
"method": "thing.event.updateSceneNotification.post",
"outputData": [{
"identifier": "sceneId",
"name": "场景id",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}]
}, {
"identifier": "deleteSceneNotification",
"name": "删除场景通知",
"type": "info",
"required": true,
"method": "thing.event.deleteSceneNotification.post",
"outputData": [{
"identifier": "sceneId",
"name": "场景id",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}]
}, {
"identifier": "executeSceneNotification",
"name": "执行场景通知",
"type": "info",
"required": true,
"method": "thing.event.executeSceneNotification.post",
"outputData": [{
"identifier": "sceneId",
"name": "场景id",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}]
}],
"services": [{
"identifier": "addScene",
"name": "addScene",
"required": true,
"callType": "async",
"desc": "添加场景",
"method": "thing.service.addScene",
"inputData": [{
"identifier": "name",
"name": "场景名字",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "sceneType",
"name": "场景类型",
"dataType": {
"type": "enum",
"specs": {
"0": "情景模式",
"1": "IFTTT",
"2": "定时"
}
}
}, {
"identifier": "enable",
"name": "启用",
"dataType": {
"type": "bool",
"specs": {
"0": "关闭",
"1": "启用"
}
}
}, {
"identifier": "triggers",
"name": "触发条件",
"dataType": {
"type": "struct",
"specs": {}
}
}, {
"identifier": "conditions",
"name": "限制条件",
"dataType": {
"type": "struct",
"specs": {}
}
}, {
"identifier": "actions",
"name": "动作",
"dataType": {
"type": "struct",
"specs": {}
}
}],
"outputData": []
}, {
"identifier": "updateScene",
"name": "updateScene",
"required": true,
"callType": "async",
"desc": "修改场景",
"method": "thing.service.updateScene",
"inputData": [{
"identifier": "sceneId",
"name": "场景id",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "name",
"name": "场景名字",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "sceneType",
"name": "场景类型",
"dataType": {
"type": "enum",
"specs": {
"0": "情景模式",
"1": "IFTTT",
"2": "定时"
}
}
}, {
"identifier": "enable",
"name": "启用",
"dataType": {
"type": "bool",
"specs": {
"0": "关闭",
"1": "启用"
}
}
}, {
"identifier": "triggers",
"name": "触发条件",
"dataType": {
"type": "struct",
"specs": {}
}
}, {
"identifier": "conditions",
"name": "限制条件",
"dataType": {
"type": "struct",
"specs": {}
}
}, {
"identifier": "actions",
"name": "动作",
"dataType": {
"type": "struct",
"specs": {}
}
}],
"outputData": []
}, {
"identifier": "deleteScene",
"name": "deleteScene",
"required": true,
"callType": "async",
"desc": "删除场景",
"method": "thing.service.deleteScene",
"inputData": [{
"identifier": "sceneId",
"name": "场景id",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}],
"outputData": []
}, {
"identifier": "executeScene",
"name": "executeScene",
"required": true,
"callType": "async",
"desc": "执行场景",
"method": "thing.service.executeScene",
"inputData": [{
"identifier": "sceneId",
"name": "场景id",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}],
"outputData": []
}]
}
\ No newline at end of file
{
"schema":"https://iotx-tsl.oss-ap-southeast-1.aliyuncs.com/schema.json",
"schema": "https://iot-ap.ikonke.com/model/gateway_2.json",
"productType":"gw",
"profile":{
"type":"KONKE_ZIGBEE_Gateway"
"heartbeat": "3000",
"productCode": "2",
"productName": "网关"
},
"properties":[
{
......
{
"schema": "https://iot.ikonke.com/schema.json",
"schema": "https://iot-ap.ikonke.com/model/product_1002.json",
"productType": "switch",
"profile": {
"heartbeat": "3000",
"productCode": "1002",
"productName": "铂金系列一路灯控"
},
......@@ -43,6 +44,24 @@
"required": true,
"callType": "async",
"desc": "属性获取"
}, {
"outputData": [],
"identifier": "negativeProperty",
"inputData": [{
"identifier": "PropertyName",
"dataType": {
"specs": {
"length": "50"
},
"type": "text"
},
"name": "属性名字"
}],
"method": "thing.service.negativeProperty",
"name": "negativeProperty",
"required": true,
"callType": "async",
"desc": "属性值取反"
}],
"properties": [{
"identifier": "PowerSwitch",
......
{
"schema": "https://iot.ikonke.com/schema.json",
"schema": "https://iot-ap.ikonke.com/model/product_1003.json",
"productType": "switch",
"profile": {
"heartbeat": "3000",
"productCode": "1003",
"productName": "铂金系列二路灯控"
},
......@@ -63,6 +64,24 @@
"required": true,
"callType": "async",
"desc": "属性获取"
}, {
"outputData": [],
"identifier": "negativeProperty",
"inputData": [{
"identifier": "PropertyName",
"dataType": {
"specs": {
"length": "50"
},
"type": "text"
},
"name": "属性名字"
}],
"method": "thing.service.negativeProperty",
"name": "negativeProperty",
"required": true,
"callType": "async",
"desc": "属性值取反"
}],
"properties": [{
"identifier": "PowerSwitch_1",
......
{
"schema": "https://iot.ikonke.com/schema.json",
"schema": "https://iot-ap.ikonke.com/model/product_1004.json",
"productType": "switch",
"profile": {
"heartbeat": "3000",
"productCode": "1004",
"productName": "铂金系列三路灯控 "
},
......@@ -83,6 +84,24 @@
"required": true,
"callType": "async",
"desc": "属性获取"
}, {
"outputData": [],
"identifier": "negativeProperty",
"inputData": [{
"identifier": "PropertyName",
"dataType": {
"specs": {
"length": "50"
},
"type": "text"
},
"name": "属性名字"
}],
"method": "thing.service.negativeProperty",
"name": "negativeProperty",
"required": true,
"callType": "async",
"desc": "属性值取反"
}],
"properties": [{
"identifier": "PowerSwitch_1",
......
{
"schema": "https://iot.ikonke.com/schema.json",
"schema": "https://iot-ap.ikonke.com/model/product_1007.json",
"productType": "curtain",
"profile": {
"heartbeat": "3000",
"productCode": "1007",
"productName": "铂金系列推窗面板"
},
......
......@@ -30,9 +30,19 @@
"step": "0.01"
}
}
}, {
"identifier": "DismantleState",
"name": "拆卸状态",
"dataType": {
"type": "enum",
"specs": {
"0": "正常",
"1": "被拆卸"
}
}
}],
"identifier": "get",
"inputData": ["SosState", "Battery"],
"inputData": ["SosState", "Battery", "DismantleState"],
"method": "thing.service.property.get",
"name": "get",
"required": true,
......@@ -66,6 +76,18 @@
"step": "0.01"
}
}
}, {
"identifier": "DismantleState",
"name": "拆卸状态",
"accessMode": "r",
"required": false,
"dataType": {
"type": "enum",
"specs": {
"0": "正常",
"1": "被拆卸"
}
}
}],
"events": [{
"outputData": [{
......@@ -91,6 +113,16 @@
"step": "0.01"
}
}
}, {
"identifier": "DismantleState",
"name": "拆卸状态",
"dataType": {
"type": "enum",
"specs": {
"0": "正常",
"1": "被拆卸"
}
}
}],
"identifier": "property",
"method": "thing.event.property.post",
......@@ -111,7 +143,7 @@
}
}],
"identifier": "sosAlarm",
"method": "thing.event.alarm.post",
"method": "thing.event.sosAlarm.post",
"name": "sosAlarm",
"type": "alarm",
"required": true,
......@@ -132,7 +164,7 @@
}
}],
"identifier": "BatteryAlarm",
"method": "thing.event.alarm.post",
"method": "thing.event.BatteryAlarm.post",
"name": "BatteryAlarm",
"type": "alarm",
"required": true,
......@@ -143,6 +175,16 @@
"type": "alert",
"required": true,
"method": "thing.event.TamperAlarm.post",
"outputData": []
"outputData": [{
"identifier": "DismantleState",
"name": "拆卸状态",
"dataType": {
"type": "enum",
"specs": {
"0": "正常",
"1": "被拆卸"
}
}
}]
}]
}
\ No newline at end of file
......@@ -30,9 +30,19 @@
"step": "0.01"
}
}
}, {
"identifier": "DismantleState",
"name": "拆卸状态",
"dataType": {
"type": "enum",
"specs": {
"0": "正常",
"1": "被拆卸"
}
}
}],
"identifier": "get",
"inputData": ["SosState", "Battery"],
"inputData": ["SosState", "Battery", "DismantleState"],
"method": "thing.service.property.get",
"name": "get",
"required": true,
......@@ -66,6 +76,18 @@
"step": "0.01"
}
}
}, {
"identifier": "DismantleState",
"name": "拆卸状态",
"accessMode": "r",
"required": false,
"dataType": {
"type": "enum",
"specs": {
"0": "正常",
"1": "被拆卸"
}
}
}],
"events": [{
"outputData": [{
......@@ -91,6 +113,16 @@
"step": "0.01"
}
}
}, {
"identifier": "DismantleState",
"name": "拆卸状态",
"dataType": {
"type": "enum",
"specs": {
"0": "正常",
"1": "被拆卸"
}
}
}],
"identifier": "property",
"method": "thing.event.property.post",
......@@ -111,7 +143,7 @@
}
}],
"identifier": "sosAlarm",
"method": "thing.event.alarm.post",
"method": "thing.event.sosAlarm.post",
"name": "sosAlarm",
"type": "alarm",
"required": true,
......@@ -132,7 +164,7 @@
}
}],
"identifier": "BatteryAlarm",
"method": "thing.event.alarm.post",
"method": "thing.event.BatteryAlarm.post",
"name": "BatteryAlarm",
"type": "alarm",
"required": true,
......@@ -143,6 +175,16 @@
"type": "alert",
"required": true,
"method": "thing.event.TamperAlarm.post",
"outputData": []
"outputData": [{
"identifier": "DismantleState",
"name": "拆卸状态",
"dataType": {
"type": "enum",
"specs": {
"0": "正常",
"1": "被拆卸"
}
}
}]
}]
}
\ No newline at end of file
......@@ -30,9 +30,19 @@
"step": "0.01"
}
}
}, {
"identifier": "DismantleState",
"name": "拆卸状态",
"dataType": {
"type": "enum",
"specs": {
"0": "正常",
"1": "被拆卸"
}
}
}],
"identifier": "get",
"inputData": ["GasSensorState", "Battery"],
"inputData": ["GasSensorState", "Battery", "DismantleState"],
"method": "thing.service.property.get",
"name": "get",
"required": true,
......@@ -66,6 +76,18 @@
"step": "0.01"
}
}
}, {
"identifier": "DismantleState",
"name": "拆卸状态",
"accessMode": "r",
"required": false,
"dataType": {
"type": "enum",
"specs": {
"0": "正常",
"1": "被拆卸"
}
}
}],
"events": [{
"outputData": [{
......@@ -91,6 +113,16 @@
"step": "0.01"
}
}
}, {
"identifier": "DismantleState",
"name": "拆卸状态",
"dataType": {
"type": "enum",
"specs": {
"0": "正常",
"1": "被拆卸"
}
}
}],
"identifier": "property",
"method": "thing.event.property.post",
......@@ -111,7 +143,7 @@
}
}],
"identifier": "gasAlarm",
"method": "thing.event.alarm.post",
"method": "thing.event.gasAlarm.post",
"name": "gasAlarm",
"type": "alarm",
"required": true,
......@@ -132,7 +164,7 @@
}
}],
"identifier": "BatteryAlarm",
"method": "thing.event.alarm.post",
"method": "thing.event.BatteryAlarm.post",
"name": "batteryAlarm",
"type": "alarm",
"required": true,
......@@ -143,6 +175,16 @@
"type": "alert",
"required": true,
"method": "thing.event.TamperAlarm.post",
"outputData": []
"outputData": [{
"identifier": "DismantleState",
"name": "拆卸状态",
"dataType": {
"type": "enum",
"specs": {
"0": "正常",
"1": "被拆卸"
}
}
}]
}]
}
\ No newline at end of file
{
"schema": "https://iot-ap.ikonke.com/model/product_1016.json",
"productType": "IRRC",
"profile": {
"heartbeat": "3000",
"productCode": "1016",
"productName": "红外遥控器"
},
"services": [{
"identifier": "set",
"name": "set",
"required": true,
"callType": "async",
"desc": "属性设置",
"method": "thing.service.property.set",
"inputData": [],
"outputData": []
}, {
"identifier": "get",
"name": "get",
"required": true,
"callType": "async",
"desc": "属性获取",
"method": "thing.service.property.get",
"inputData": [],
"outputData": []
}, {
"identifier": "sendCode",
"name": "发送红外码",
"required": false,
"callType": "async",
"method": "thing.service.sendCode",
"inputData": [{
"identifier": "ButtonId",
"name": "按键id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}],
"outputData": []
}, {
"identifier": "learnCode",
"name": "学习红外码",
"required": false,
"callType": "async",
"method": "thing.service.learnCode",
"inputData": [{
"identifier": "ButtonId",
"name": "按键id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}],
"outputData": []
}, {
"identifier": "saveCode",
"name": "保存红外码",
"required": false,
"callType": "async",
"method": "thing.service.saveCode",
"inputData": [{
"identifier": "ButtonId",
"name": "按键id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}],
"outputData": []
}, {
"identifier": "saveRC",
"name": "保存遥控器",
"required": false,
"callType": "async",
"method": "thing.service.saveRC",
"inputData": [{
"identifier": "rcs",
"name": "遥控器数组",
"dataType": {
"type": "array",
"specs": {
"size": "128",
"item": {
"type": "struct",
"specs": [{
"identifier": "ButtonId",
"name": "按键id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}, {
"identifier": "ButtonName",
"name": "按键名字",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}]
}
}
}
}],
"outputData": []
}, {
"identifier": "getRC",
"name": "获取遥控器",
"required": false,
"callType": "sync",
"method": "thing.service.getRC",
"inputData": [],
"outputData": [{
"identifier": "rcs",
"name": "遥控器数组",
"dataType": {
"type": "array",
"specs": {
"size": "128",
"item": {
"type": "struct",
"specs": [{
"identifier": "ButtonId",
"name": "按键id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}, {
"identifier": "ButtonName",
"name": "按键名字",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "ButtonIcon",
"name": "按键图标",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "ButtonStatus",
"name": "按键图标",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}]
}
}
}
}]
}, {
"identifier": "getBindCodeLib",
"name": "获取绑定的码库",
"required": false,
"callType": "sync",
"method": "thing.service.getBindCodeLib",
"inputData": [],
"outputData": [{
"identifier": "codeLibs",
"name": "码库数组",
"dataType": {
"type": "array",
"specs": {
"size": "128",
"item": {
"type": "struct",
"specs": [{
"identifier": "CodeLibId",
"name": "码库id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}, {
"identifier": "codeLibType",
"name": "码库类型",
"dataType": {
"type": "enum",
"specs": {
"0": "无码库",
"1": "手动学习码库",
"2": "云端码库",
"3": "私有码库"
}
}
}, {
"identifier": "CodeLibName",
"name": "码库名字",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceType",
"name": "设备类型",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceBrand",
"name": "设备设备品牌",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceModel",
"name": "设备型号",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "pCode",
"name": "匹配码",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}]
}
}
}
}]
}, {
"identifier": "getCodeLibButtons",
"name": "获取码库下的遥控器",
"required": false,
"callType": "sync",
"method": "thing.service.getCodeLibButtons",
"inputData": [{
"identifier": "CodeLibId",
"name": "码库id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}],
"outputData": [{
"identifier": "rcs",
"name": "遥控器数组",
"dataType": {
"type": "array",
"specs": {
"size": "128",
"item": {
"type": "struct",
"specs": [{
"identifier": "ButtonId",
"name": "按键id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}, {
"identifier": "ButtonName",
"name": "按键名字",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "ButtonIcon",
"name": "按键图标",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "ButtonStatus",
"name": "按键图标",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}]
}
}
}
}]
}, {
"identifier": "getLocalCodeLibs",
"name": "获取本地私有的码库",
"required": false,
"callType": "sync",
"method": "thing.service.getLocalCodeLibs",
"inputData": [{
"identifier": "DeviceType",
"name": "设备类型",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}],
"outputData": [{
"identifier": "codeLibs",
"name": "码库数组",
"dataType": {
"type": "array",
"specs": {
"size": "128",
"item": {
"type": "struct",
"specs": [{
"identifier": "CodeLibId",
"name": "码库id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}, {
"identifier": "codeLibType",
"name": "码库类型",
"dataType": {
"type": "enum",
"specs": {
"0": "无码库",
"1": "手动学习码库",
"2": "云端码库",
"3": "私有码库"
}
}
}, {
"identifier": "CodeLibName",
"name": "码库名字",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceType",
"name": "设备类型",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceBrand",
"name": "设备设备品牌",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceModel",
"name": "设备型号",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "pCode",
"name": "匹配码",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}]
}
}
}
}]
}, {
"identifier": "saveCodeLib",
"name": "保存本地私有的码库",
"required": false,
"callType": "sync",
"method": "thing.service.saveCodeLib",
"inputData": [{
"identifier": "codeLibType",
"name": "码库类型",
"dataType": {
"type": "enum",
"specs": {
"0": "无码库",
"1": "手动学习码库",
"2": "云端码库",
"3": "私有码库"
}
}
}, {
"identifier": "CodeLibName",
"name": "码库名字",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceType",
"name": "设备类型",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceBrand",
"name": "设备设备品牌",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceModel",
"name": "设备型号",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "pCode",
"name": "匹配码",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}],
"outputData": [{
"identifier": "CodeLibId",
"name": "码库id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}]
}, {
"identifier": "deleteCodeLib",
"name": "删除本地私有的码库",
"required": false,
"callType": "sync",
"method": "thing.service.deleteCodeLib",
"inputData": [{
"identifier": "CodeLibId",
"name": "码库id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}],
"outputData": []
}, {
"identifier": "matchCodeLib",
"name": "匹配码库",
"required": false,
"callType": "sync",
"method": "thing.service.matchCodeLib",
"inputData": [{
"identifier": "DeviceType",
"name": "设备类型",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}],
"outputData": [{
"identifier": "CodeLibId",
"name": "码库id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}, {
"identifier": "codeLibType",
"name": "码库类型",
"dataType": {
"type": "enum",
"specs": {
"0": "无码库",
"1": "手动学习码库",
"2": "云端码库",
"3": "私有码库"
}
}
}, {
"identifier": "CodeLibName",
"name": "码库名字",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceType",
"name": "设备类型",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceBrand",
"name": "设备设备品牌",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceModel",
"name": "设备型号",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "pCode",
"name": "匹配码",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}]
}, {
"identifier": "downloadLibCode",
"name": "下载红外码库到设备",
"required": false,
"callType": "sync",
"method": "thing.service.downloadLibCode",
"inputData": [{
"identifier": "CodeLibId",
"name": "码库id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}, {
"identifier": "codeLibType",
"name": "码库类型",
"dataType": {
"type": "enum",
"specs": {
"0": "无码库",
"1": "手动学习码库",
"2": "云端码库",
"3": "私有码库"
}
}
}, {
"identifier": "CodeLibName",
"name": "码库名字",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceType",
"name": "设备类型",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceBrand",
"name": "设备设备品牌",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceModel",
"name": "设备型号",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "pCode",
"name": "匹配码",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}],
"outputData": []
}, {
"identifier": "testLibCode",
"name": "测试红外码库",
"required": false,
"callType": "sync",
"method": "thing.service.testLibCode",
"inputData": [{
"identifier": "CodeLibId",
"name": "码库id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}, {
"identifier": "ButtonId",
"name": "按键id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}],
"outputData": []
}, {
"identifier": "resetBindCodeLib",
"name": "重置红外码库",
"required": false,
"callType": "sync",
"method": "thing.service.resetBindCodeLib",
"inputData": [],
"outputData": []
}],
"properties": [{
"identifier": "ButtonId",
"name": "按键id",
"accessMode": "r",
"required": true,
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}, {
"identifier": "ButtonName",
"name": "按键名字",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "ButtonIcon",
"name": "按键图标",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "ButtonStatus",
"name": "按键学习状态",
"accessMode": "rw",
"required": false,
"dataType": {
"type": "enum",
"specs": {
"0": "未学习",
"1": "已学习"
}
}
}, {
"identifier": "CodeLibId",
"name": "码库id",
"accessMode": "r",
"required": true,
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}, {
"identifier": "codeLibType",
"name": "码库类型",
"accessMode": "rw",
"required": false,
"dataType": {
"type": "enum",
"specs": {
"0": "无码库",
"1": "手动学习码库",
"2": "云端码库",
"3": "私有码库"
}
}
}, {
"identifier": "CodeLibName",
"name": "码库名字",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceType",
"name": "设备类型",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceBrand",
"name": "设备设备品牌",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceModel",
"name": "设备型号",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "pCode",
"name": "匹配码",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}],
"events": [{
"identifier": "post",
"name": "post",
"type": "info",
"required": true,
"desc": "属性上报",
"method": "thing.event.property.post",
"outputData": []
}, {
"identifier": "LearnCodeNotify",
"name": "学习码库通知消息",
"type": "info",
"required": true,
"method": "thing.event.LearnCodeNotify.post",
"outputData": [{
"identifier": "ButtonId",
"name": "按键id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}]
}, {
"identifier": "DownloadLibCodeNotify",
"name": "下载码库通知消息",
"type": "info",
"required": true,
"method": "thing.event.DownloadLibCodeNotify.post",
"outputData": [{
"identifier": "CodeLibId",
"name": "红外码库id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}]
}]
}
\ No newline at end of file
{
"schema": "https://iot-ap.ikonke.com/model/product_1018.json",
"productType": "curtain",
"profile": {
"heartbeat": "3000",
"productCode": "1018",
"productName": "杜亚窗帘电机"
},
"services": [{
"outputData": [],
"identifier": "set",
"inputData": [{
"identifier": "OperationMode",
"dataType": {
"specs": {
"0": "关闭",
"1": "开启",
"2": "暂停"
},
"type": "enum"
},
"name": "窗帘操作模式"
}, {
"identifier": "Position",
"dataType": {
"specs": {
"unit": "%",
"min": "0",
"unitName": "百分比",
"max": "100",
"step": "1"
},
"type": "int"
},
"name": "窗帘打开位置"
}, {
"identifier": "WorkMode",
"dataType": {
"specs": {
"0": "正转",
"1": "反转",
"2": "校验"
},
"type": "enum"
},
"name": "窗帘工作模式"
}, {
"identifier": "RouteState",
"dataType": {
"specs": {
"0": "未设置",
"1": "已设置"
},
"type": "enum"
},
"name": "行程设置"
}],
"method": "thing.service.property.set",
"name": "set",
"required": true,
"callType": "async",
"desc": "属性设置"
}, {
"outputData": [{
"identifier": "OperationMode",
"dataType": {
"specs": {
"0": "关闭",
"1": "开启",
"2": "暂停"
},
"type": "enum"
},
"name": "窗帘操作模式"
}, {
"identifier": "Position",
"dataType": {
"specs": {
"unit": "%",
"min": "0",
"unitName": "百分比",
"max": "100",
"step": "1"
},
"type": "int"
},
"name": "窗帘打开位置"
}, {
"identifier": "WorkMode",
"dataType": {
"specs": {
"0": "正转",
"1": "反转",
"2": "校验"
},
"type": "enum"
},
"name": "窗帘工作模式"
}, {
"identifier": "RouteState",
"dataType": {
"specs": {
"0": "未设置",
"1": "已设置"
},
"type": "enum"
},
"name": "行程设置"
}],
"identifier": "get",
"inputData": ["OperationMode", "Position", "WorkMode", "RouteState"],
"method": "thing.service.property.get",
"name": "get",
"required": true,
"callType": "async",
"desc": "属性获取"
}],
"properties": [{
"identifier": "OperationMode",
"dataType": {
"specs": {
"0": "关闭",
"1": "开启",
"2": "暂停"
},
"type": "enum"
},
"name": "窗帘操作模式",
"accessMode": "rw",
"required": true
}, {
"identifier": "WorkMode",
"dataType": {
"specs": {
"0": "正转",
"1": "反转",
"2": "校验"
},
"type": "enum"
},
"name": "窗帘工作模式",
"accessMode": "rw",
"required": true
}, {
"identifier": "Position",
"dataType": {
"specs": {
"unit": "%",
"min": "0",
"unitName": "百分比",
"max": "100",
"step": "1"
},
"type": "int"
},
"name": "窗帘打开位置",
"accessMode": "rw",
"required": true
}, {
"identifier": "RouteState",
"dataType": {
"specs": {
"0": "未设置",
"1": "已设置"
},
"type": "enum"
},
"accessMode": "rw",
"required": true,
"name": "行程设置"
}],
"events": [{
"outputData": [{
"identifier": "OperationMode",
"dataType": {
"specs": {
"0": "关闭",
"1": "开启",
"2": "暂停"
},
"type": "enum"
},
"name": "窗帘操作模式"
}, {
"identifier": "Position",
"dataType": {
"specs": {
"unit": "%",
"min": "0",
"unitName": "百分比",
"max": "100",
"step": "1"
},
"type": "int"
},
"name": "窗帘打开位置"
}, {
"identifier": "WorkMode",
"dataType": {
"specs": {
"0": "正转",
"1": "反转",
"2": "校验"
},
"type": "enum"
},
"name": "窗帘工作模式"
}, {
"identifier": "RouteState",
"dataType": {
"specs": {
"0": "未设置",
"1": "已设置"
},
"type": "enum"
},
"name": "行程设置"
}],
"identifier": "property",
"method": "thing.event.property.post",
"name": "property",
"type": "info",
"required": true,
"desc": "属性上报"
}]
}
\ No newline at end of file
{
"schema": "https://iot.ikonke.com/schema.json",
"schema": "https://iot-ap.ikonke.com/model/product_102.json",
"productType": "switch",
"profile": {
"heartbeat": "3000",
"productCode": "102",
"productName": "一路零火面板(肖邦系列)定制版"
},
......@@ -43,6 +44,24 @@
"required": true,
"callType": "async",
"desc": "属性获取"
}, {
"outputData": [],
"identifier": "negativeProperty",
"inputData": [{
"identifier": "PropertyName",
"dataType": {
"specs": {
"length": "50"
},
"type": "text"
},
"name": "属性名字"
}],
"method": "thing.service.negativeProperty",
"name": "negativeProperty",
"required": true,
"callType": "async",
"desc": "属性值取反"
}],
"properties": [{
"identifier": "PowerSwitch",
......
......@@ -8,48 +8,45 @@
},
"services": [{
"outputData": [{
"identifier": "Temperature",
"name": "温度",
"dataType": {
"type": "double",
"specs": {
"min": "-40",
"max": "100",
"unit": "°C",
"unitName": "摄氏度",
"step": "0.01"
}
"identifier": "Temperature",
"name": "温度",
"dataType": {
"type": "double",
"specs": {
"min": "-40",
"max": "100",
"unit": "°C",
"unitName": "摄氏度",
"step": "0.01"
}
},
{
"identifier": "Humidity",
"name": "当前湿度",
"dataType": {
"type": "double",
"specs": {
"min": "0",
"max": "100",
"unit": "%",
"unitName": "百分比",
"step": "0.01"
}
}
}, {
"identifier": "Humidity",
"name": "当前湿度",
"dataType": {
"type": "double",
"specs": {
"min": "0",
"max": "100",
"unit": "%",
"unitName": "百分比",
"step": "0.01"
}
},
{
"identifier": "Illuminance",
"name": "光照度检测值",
"dataType": {
"type": "double",
"specs": {
"min": "0",
"max": "65535",
"unit": "Lux",
"unitName": "照度",
"step": "0.01"
}
}
}, {
"identifier": "Illuminance",
"name": "光照度检测值",
"dataType": {
"type": "double",
"specs": {
"min": "0",
"max": "65535",
"unit": "Lux",
"unitName": "照度",
"step": "0.01"
}
}
],
}],
"identifier": "get",
"inputData": ["Temperature", "Humidity", "Illuminance"],
"method": "thing.service.property.get",
......@@ -57,28 +54,79 @@
"required": true,
"callType": "async",
"desc": "属性获取"
}, {
"outputData": [],
"inputData": [],
"identifier": "PositioningDevice",
"method": "thing.service.PositioningDevice",
"name": "PositioningDevice",
"required": true,
"callType": "async",
"desc": "设备定位"
}],
"properties": [{
"identifier": "CurrentTemperature",
"name": "当前温度",
"accessMode": "r",
"required": false,
"identifier": "CurrentTemperature",
"name": "当前温度",
"accessMode": "r",
"required": false,
"dataType": {
"type": "double",
"specs": {
"min": "-40",
"max": "80",
"unit": "°C",
"unitName": "摄氏度",
"step": "0.01"
}
}
}, {
"identifier": "CurrentHumidity",
"name": "当前湿度",
"accessMode": "r",
"required": false,
"dataType": {
"type": "double",
"specs": {
"min": "0",
"max": "100",
"unit": "%",
"unitName": "百分比",
"step": "0.01"
}
}
}, {
"identifier": "Illuminance",
"name": "光照度检测值",
"accessMode": "r",
"required": true,
"dataType": {
"type": "double",
"specs": {
"min": "0",
"max": "65535",
"unit": "Lux",
"unitName": "照度",
"step": "0.01"
}
}
}],
"events": [{
"outputData": [{
"identifier": "Temperature",
"name": "温度",
"dataType": {
"type": "double",
"specs": {
"min": "-40",
"max": "80",
"max": "100",
"unit": "°C",
"unitName": "摄氏度",
"step": "0.01"
}
}
},
{
"identifier": "CurrentHumidity",
}, {
"identifier": "Humidity",
"name": "当前湿度",
"accessMode": "r",
"required": false,
"dataType": {
"type": "double",
"specs": {
......@@ -92,8 +140,6 @@
}, {
"identifier": "Illuminance",
"name": "光照度检测值",
"accessMode": "r",
"required": true,
"dataType": {
"type": "double",
"specs": {
......@@ -104,52 +150,7 @@
"step": "0.01"
}
}
}
],
"events": [{
"outputData": [{
"identifier": "Temperature",
"name": "温度",
"dataType": {
"type": "double",
"specs": {
"min": "-40",
"max": "100",
"unit": "°C",
"unitName": "摄氏度",
"step": "0.01"
}
}
},
{
"identifier": "Humidity",
"name": "当前湿度",
"dataType": {
"type": "double",
"specs": {
"min": "0",
"max": "100",
"unit": "%",
"unitName": "百分比",
"step": "0.01"
}
}
},
{
"identifier": "Illuminance",
"name": "光照度检测值",
"dataType": {
"type": "double",
"specs": {
"min": "0",
"max": "65535",
"unit": "Lux",
"unitName": "照度",
"step": "0.01"
}
}
}
],
}],
"identifier": "property",
"method": "thing.event.property.post",
"name": "property",
......
{
"schema": "https://iot.ikonke.com/schema.json",
"schema": "https://iot-ap.ikonke.com/model/product_1022.json",
"productType": "light",
"profile": {
"heartbeat": "3000",
"productCode": "1022",
"productName": "RGBW灯带"
},
......
......@@ -30,9 +30,19 @@
"step": "0.01"
}
}
}, {
"identifier": "DismantleState",
"name": "拆卸状态",
"dataType": {
"type": "enum",
"specs": {
"0": "正常",
"1": "被拆卸"
}
}
}],
"identifier": "get",
"inputData": ["ContactState", "Battery"],
"inputData": ["ContactState", "Battery", "DismantleState"],
"method": "thing.service.property.get",
"name": "get",
"required": true,
......@@ -66,6 +76,18 @@
"step": "0.01"
}
}
}, {
"identifier": "DismantleState",
"name": "拆卸状态",
"accessMode": "r",
"required": false,
"dataType": {
"type": "enum",
"specs": {
"0": "正常",
"1": "被拆卸"
}
}
}],
"events": [{
"outputData": [{
......@@ -91,6 +113,16 @@
"step": "0.01"
}
}
}, {
"identifier": "DismantleState",
"name": "拆卸状态",
"dataType": {
"type": "enum",
"specs": {
"0": "正常",
"1": "被拆卸"
}
}
}],
"identifier": "property",
"method": "thing.event.property.post",
......@@ -111,7 +143,7 @@
}
}],
"identifier": "contactAlarm",
"method": "thing.event.alarm.post",
"method": "thing.event.contactAlarm.post",
"name": "contactAlarm",
"type": "alarm",
"required": true,
......@@ -132,7 +164,7 @@
}
}],
"identifier": "BatteryAlarm",
"method": "thing.event.alarm.post",
"method": "thing.event.BatteryAlarm.post",
"name": "BatteryAlarm",
"type": "alarm",
"required": true,
......@@ -143,6 +175,16 @@
"type": "alert",
"required": true,
"method": "thing.event.TamperAlarm.post",
"outputData": []
"outputData": [{
"identifier": "DismantleState",
"name": "拆卸状态",
"dataType": {
"type": "enum",
"specs": {
"0": "正常",
"1": "被拆卸"
}
}
}]
}]
}
\ No newline at end of file
......@@ -30,9 +30,19 @@
"step": "0.01"
}
}
}, {
"identifier": "DismantleState",
"name": "拆卸状态",
"dataType": {
"type": "enum",
"specs": {
"0": "正常",
"1": "被拆卸"
}
}
}],
"identifier": "get",
"inputData": ["WaterSensorState", "Battery"],
"inputData": ["WaterSensorState", "Battery", "DismantleState"],
"method": "thing.service.property.get",
"name": "get",
"required": true,
......@@ -66,6 +76,18 @@
"step": "0.01"
}
}
}, {
"identifier": "DismantleState",
"name": "拆卸状态",
"accessMode": "r",
"required": false,
"dataType": {
"type": "enum",
"specs": {
"0": "正常",
"1": "被拆卸"
}
}
}],
"events": [{
"outputData": [{
......@@ -91,6 +113,16 @@
"step": "0.01"
}
}
}, {
"identifier": "DismantleState",
"name": "拆卸状态",
"dataType": {
"type": "enum",
"specs": {
"0": "正常",
"1": "被拆卸"
}
}
}],
"identifier": "property",
"method": "thing.event.property.post",
......@@ -111,7 +143,7 @@
}
}],
"identifier": "waterAlarm",
"method": "thing.event.alarm.post",
"method": "thing.event.waterAlarm.post",
"name": "waterAlarm",
"type": "alarm",
"required": true,
......@@ -132,7 +164,7 @@
}
}],
"identifier": "BatteryAlarm",
"method": "thing.event.alarm.post",
"method": "thing.event.BatteryAlarm.post",
"name": "BatteryAlarm",
"type": "alarm",
"required": true,
......@@ -143,6 +175,16 @@
"type": "alert",
"required": true,
"method": "thing.event.TamperAlarm.post",
"outputData": []
"outputData": [{
"identifier": "DismantleState",
"name": "拆卸状态",
"dataType": {
"type": "enum",
"specs": {
"0": "正常",
"1": "被拆卸"
}
}
}]
}]
}
\ No newline at end of file
{
"schema": "https://iot.ikonke.com/schema.json",
"schema": "https://iot-ap.ikonke.com/model/product_103.json",
"productType": "switch",
"profile": {
"heartbeat": "3000",
"productCode": "103",
"productName": "二路零火面板(肖邦系列)定制版"
},
......@@ -63,6 +64,24 @@
"required": true,
"callType": "async",
"desc": "属性获取"
}, {
"outputData": [],
"identifier": "negativeProperty",
"inputData": [{
"identifier": "PropertyName",
"dataType": {
"specs": {
"length": "50"
},
"type": "text"
},
"name": "属性名字"
}],
"method": "thing.service.negativeProperty",
"name": "negativeProperty",
"required": true,
"callType": "async",
"desc": "属性值取反"
}],
"properties": [{
"identifier": "PowerSwitch_1",
......
......@@ -4,7 +4,8 @@
"profile": {
"heartbeat": "3000",
"productCode": "1030",
"productName": "B1门锁"
"productName": "B1门锁",
"sleepTime": "30000"
},
"services": [{
"identifier": "set",
......
......@@ -30,9 +30,19 @@
"step": "0.01"
}
}
}, {
"identifier": "DismantleState",
"name": "拆卸状态",
"dataType": {
"type": "enum",
"specs": {
"0": "正常",
"1": "被拆卸"
}
}
}],
"identifier": "get",
"inputData": ["MotionAlarmState", "Battery"],
"inputData": ["MotionAlarmState", "Battery", "DismantleState"],
"method": "thing.service.property.get",
"name": "get",
"required": true,
......@@ -66,6 +76,18 @@
"step": "0.01"
}
}
}, {
"identifier": "DismantleState",
"name": "拆卸状态",
"accessMode": "r",
"required": false,
"dataType": {
"type": "enum",
"specs": {
"0": "正常",
"1": "被拆卸"
}
}
}],
"events": [{
"outputData": [{
......@@ -91,6 +113,16 @@
"step": "0.01"
}
}
}, {
"identifier": "DismantleState",
"name": "拆卸状态",
"dataType": {
"type": "enum",
"specs": {
"0": "正常",
"1": "被拆卸"
}
}
}],
"identifier": "property",
"method": "thing.event.property.post",
......@@ -111,7 +143,7 @@
}
}],
"identifier": "motionAlarm",
"method": "thing.event.alarm.post",
"method": "thing.event.motionAlarm.post",
"name": "motionAlarm",
"type": "alarm",
"required": true,
......@@ -132,7 +164,7 @@
}
}],
"identifier": "BatteryAlarm",
"method": "thing.event.alarm.post",
"method": "thing.event.BatteryAlarm.post",
"name": "BatteryAlarm",
"type": "alarm",
"required": true,
......@@ -143,6 +175,16 @@
"type": "alert",
"required": true,
"method": "thing.event.TamperAlarm.post",
"outputData": []
"outputData": [{
"identifier": "DismantleState",
"name": "拆卸状态",
"dataType": {
"type": "enum",
"specs": {
"0": "正常",
"1": "被拆卸"
}
}
}]
}]
}
\ No newline at end of file
{
"schema": "https://iot.ikonke.com/schema.json",
"schema": "https://iot-ap.ikonke.com/model/product_104.json",
"productType": "switch",
"profile": {
"heartbeat": "3000",
"productCode": "104",
"productName": "三路零火面板(肖邦系列)定制版"
},
......@@ -83,6 +84,24 @@
"required": true,
"callType": "async",
"desc": "属性获取"
}, {
"outputData": [],
"identifier": "negativeProperty",
"inputData": [{
"identifier": "PropertyName",
"dataType": {
"specs": {
"length": "50"
},
"type": "text"
},
"name": "属性名字"
}],
"method": "thing.service.negativeProperty",
"name": "negativeProperty",
"required": true,
"callType": "async",
"desc": "属性值取反"
}],
"properties": [{
"identifier": "PowerSwitch_1",
......
{
"schema": "https://iot-ap.ikonke.com/model/product_1043.json",
"productType": "IRRC",
"profile": {
"heartbeat": "3000",
"productCode": "1043",
"productName": "二代红外遥控器"
},
"services": [{
"identifier": "set",
"name": "set",
"required": true,
"callType": "async",
"desc": "属性设置",
"method": "thing.service.property.set",
"inputData": [],
"outputData": []
}, {
"identifier": "get",
"name": "get",
"required": true,
"callType": "async",
"desc": "属性获取",
"method": "thing.service.property.get",
"inputData": [],
"outputData": []
}, {
"identifier": "sendCode",
"name": "发送红外码",
"required": false,
"callType": "async",
"method": "thing.service.sendCode",
"inputData": [{
"identifier": "ButtonId",
"name": "按键id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}],
"outputData": []
}, {
"identifier": "learnCode",
"name": "学习红外码",
"required": false,
"callType": "async",
"method": "thing.service.learnCode",
"inputData": [{
"identifier": "ButtonId",
"name": "按键id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}],
"outputData": []
}, {
"identifier": "saveCode",
"name": "保存红外码",
"required": false,
"callType": "async",
"method": "thing.service.saveCode",
"inputData": [{
"identifier": "ButtonId",
"name": "按键id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}],
"outputData": []
}, {
"identifier": "saveRC",
"name": "保存遥控器",
"required": false,
"callType": "async",
"method": "thing.service.saveRC",
"inputData": [{
"identifier": "rcs",
"name": "遥控器数组",
"dataType": {
"type": "array",
"specs": {
"size": "128",
"item": {
"type": "struct",
"specs": [{
"identifier": "ButtonId",
"name": "按键id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}, {
"identifier": "ButtonName",
"name": "按键名字",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}]
}
}
}
}],
"outputData": []
}, {
"identifier": "getRC",
"name": "获取遥控器",
"required": false,
"callType": "sync",
"method": "thing.service.getRC",
"inputData": [],
"outputData": [{
"identifier": "rcs",
"name": "遥控器数组",
"dataType": {
"type": "array",
"specs": {
"size": "128",
"item": {
"type": "struct",
"specs": [{
"identifier": "ButtonId",
"name": "按键id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}, {
"identifier": "ButtonName",
"name": "按键名字",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "ButtonIcon",
"name": "按键图标",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "ButtonStatus",
"name": "按键图标",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}]
}
}
}
}]
}, {
"identifier": "getBindCodeLib",
"name": "获取绑定的码库",
"required": false,
"callType": "sync",
"method": "thing.service.getBindCodeLib",
"inputData": [],
"outputData": [{
"identifier": "codeLibs",
"name": "码库数组",
"dataType": {
"type": "array",
"specs": {
"size": "128",
"item": {
"type": "struct",
"specs": [{
"identifier": "CodeLibId",
"name": "码库id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}, {
"identifier": "codeLibType",
"name": "码库类型",
"dataType": {
"type": "enum",
"specs": {
"0": "无码库",
"1": "手动学习码库",
"2": "云端码库",
"3": "私有码库"
}
}
}, {
"identifier": "CodeLibName",
"name": "码库名字",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceType",
"name": "设备类型",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceBrand",
"name": "设备设备品牌",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceModel",
"name": "设备型号",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "pCode",
"name": "匹配码",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}]
}
}
}
}]
}, {
"identifier": "getCodeLibButtons",
"name": "获取码库下的遥控器",
"required": false,
"callType": "sync",
"method": "thing.service.getCodeLibButtons",
"inputData": [{
"identifier": "CodeLibId",
"name": "码库id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}],
"outputData": [{
"identifier": "rcs",
"name": "遥控器数组",
"dataType": {
"type": "array",
"specs": {
"size": "128",
"item": {
"type": "struct",
"specs": [{
"identifier": "ButtonId",
"name": "按键id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}, {
"identifier": "ButtonName",
"name": "按键名字",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "ButtonIcon",
"name": "按键图标",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "ButtonStatus",
"name": "按键图标",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}]
}
}
}
}]
}, {
"identifier": "getLocalCodeLibs",
"name": "获取本地私有的码库",
"required": false,
"callType": "sync",
"method": "thing.service.getLocalCodeLibs",
"inputData": [{
"identifier": "DeviceType",
"name": "设备类型",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}],
"outputData": [{
"identifier": "codeLibs",
"name": "码库数组",
"dataType": {
"type": "array",
"specs": {
"size": "128",
"item": {
"type": "struct",
"specs": [{
"identifier": "CodeLibId",
"name": "码库id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}, {
"identifier": "codeLibType",
"name": "码库类型",
"dataType": {
"type": "enum",
"specs": {
"0": "无码库",
"1": "手动学习码库",
"2": "云端码库",
"3": "私有码库"
}
}
}, {
"identifier": "CodeLibName",
"name": "码库名字",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceType",
"name": "设备类型",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceBrand",
"name": "设备设备品牌",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceModel",
"name": "设备型号",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "pCode",
"name": "匹配码",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}]
}
}
}
}]
}, {
"identifier": "saveCodeLib",
"name": "保存本地私有的码库",
"required": false,
"callType": "sync",
"method": "thing.service.saveCodeLib",
"inputData": [{
"identifier": "codeLibType",
"name": "码库类型",
"dataType": {
"type": "enum",
"specs": {
"0": "无码库",
"1": "手动学习码库",
"2": "云端码库",
"3": "私有码库"
}
}
}, {
"identifier": "CodeLibName",
"name": "码库名字",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceType",
"name": "设备类型",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceBrand",
"name": "设备设备品牌",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceModel",
"name": "设备型号",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "pCode",
"name": "匹配码",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}],
"outputData": [{
"identifier": "CodeLibId",
"name": "码库id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}]
}, {
"identifier": "deleteCodeLib",
"name": "删除本地私有的码库",
"required": false,
"callType": "sync",
"method": "thing.service.deleteCodeLib",
"inputData": [{
"identifier": "CodeLibId",
"name": "码库id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}],
"outputData": []
}, {
"identifier": "matchCodeLib",
"name": "匹配码库",
"required": false,
"callType": "sync",
"method": "thing.service.matchCodeLib",
"inputData": [{
"identifier": "DeviceType",
"name": "设备类型",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}],
"outputData": [{
"identifier": "CodeLibId",
"name": "码库id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}, {
"identifier": "codeLibType",
"name": "码库类型",
"dataType": {
"type": "enum",
"specs": {
"0": "无码库",
"1": "手动学习码库",
"2": "云端码库",
"3": "私有码库"
}
}
}, {
"identifier": "CodeLibName",
"name": "码库名字",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceType",
"name": "设备类型",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceBrand",
"name": "设备设备品牌",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceModel",
"name": "设备型号",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "pCode",
"name": "匹配码",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}]
}, {
"identifier": "downloadLibCode",
"name": "下载红外码库到设备",
"required": false,
"callType": "sync",
"method": "thing.service.downloadLibCode",
"inputData": [{
"identifier": "CodeLibId",
"name": "码库id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}, {
"identifier": "codeLibType",
"name": "码库类型",
"dataType": {
"type": "enum",
"specs": {
"0": "无码库",
"1": "手动学习码库",
"2": "云端码库",
"3": "私有码库"
}
}
}, {
"identifier": "CodeLibName",
"name": "码库名字",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceType",
"name": "设备类型",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceBrand",
"name": "设备设备品牌",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceModel",
"name": "设备型号",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "pCode",
"name": "匹配码",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}],
"outputData": []
}, {
"identifier": "testLibCode",
"name": "测试红外码库",
"required": false,
"callType": "sync",
"method": "thing.service.testLibCode",
"inputData": [{
"identifier": "CodeLibId",
"name": "码库id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}, {
"identifier": "ButtonId",
"name": "按键id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}],
"outputData": []
}, {
"identifier": "resetBindCodeLib",
"name": "重置红外码库",
"required": false,
"callType": "sync",
"method": "thing.service.resetBindCodeLib",
"inputData": [],
"outputData": []
}],
"properties": [{
"identifier": "ButtonId",
"name": "按键id",
"accessMode": "r",
"required": true,
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}, {
"identifier": "ButtonName",
"name": "按键名字",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "ButtonIcon",
"name": "按键图标",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "ButtonStatus",
"name": "按键学习状态",
"accessMode": "rw",
"required": false,
"dataType": {
"type": "enum",
"specs": {
"0": "未学习",
"1": "已学习"
}
}
}, {
"identifier": "CodeLibId",
"name": "码库id",
"accessMode": "r",
"required": true,
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}, {
"identifier": "codeLibType",
"name": "码库类型",
"accessMode": "rw",
"required": false,
"dataType": {
"type": "enum",
"specs": {
"0": "无码库",
"1": "手动学习码库",
"2": "云端码库",
"3": "私有码库"
}
}
}, {
"identifier": "CodeLibName",
"name": "码库名字",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceType",
"name": "设备类型",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceBrand",
"name": "设备设备品牌",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceModel",
"name": "设备型号",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "pCode",
"name": "匹配码",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}],
"events": [{
"identifier": "post",
"name": "post",
"type": "info",
"required": true,
"desc": "属性上报",
"method": "thing.event.property.post",
"outputData": []
}, {
"identifier": "LearnCodeNotify",
"name": "学习码库通知消息",
"type": "info",
"required": true,
"method": "thing.event.LearnCodeNotify.post",
"outputData": [{
"identifier": "ButtonId",
"name": "按键id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}]
}, {
"identifier": "DownloadLibCodeNotify",
"name": "下载码库通知消息",
"type": "info",
"required": true,
"method": "thing.event.DownloadLibCodeNotify.post",
"outputData": [{
"identifier": "CodeLibId",
"name": "红外码库id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}]
}]
}
\ No newline at end of file
{
"schema": "https://iot.ikonke.com/schema.json",
"schema": "https://iot-ap.ikonke.com/model/product_105.json",
"productType": "curtain",
"profile": {
"heartbeat": "3000",
"productCode": "105",
"productName": "一路窗帘面板(肖邦系列)定制版"
},
......
{
"schema": "https://iot-ap.ikonke.com/model/product_1055.json",
"productType": "IRRC",
"profile": {
"heartbeat": "3000",
"productCode": "1055",
"productName": "红外遥控器pro"
},
"services": [{
"identifier": "set",
"name": "set",
"required": true,
"callType": "async",
"desc": "属性设置",
"method": "thing.service.property.set",
"inputData": [],
"outputData": []
}, {
"identifier": "get",
"name": "get",
"required": true,
"callType": "async",
"desc": "属性获取",
"method": "thing.service.property.get",
"inputData": [],
"outputData": []
}, {
"identifier": "sendCode",
"name": "发送红外码",
"required": false,
"callType": "async",
"method": "thing.service.sendCode",
"inputData": [{
"identifier": "ButtonId",
"name": "按键id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}],
"outputData": []
}, {
"identifier": "learnCode",
"name": "学习红外码",
"required": false,
"callType": "async",
"method": "thing.service.learnCode",
"inputData": [{
"identifier": "ButtonId",
"name": "按键id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}],
"outputData": []
}, {
"identifier": "saveCode",
"name": "保存红外码",
"required": false,
"callType": "async",
"method": "thing.service.saveCode",
"inputData": [{
"identifier": "ButtonId",
"name": "按键id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}],
"outputData": []
}, {
"identifier": "saveRC",
"name": "保存遥控器",
"required": false,
"callType": "async",
"method": "thing.service.saveRC",
"inputData": [{
"identifier": "rcs",
"name": "遥控器数组",
"dataType": {
"type": "array",
"specs": {
"size": "128",
"item": {
"type": "struct",
"specs": [{
"identifier": "ButtonId",
"name": "按键id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}, {
"identifier": "ButtonName",
"name": "按键名字",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}]
}
}
}
}],
"outputData": []
}, {
"identifier": "getRC",
"name": "获取遥控器",
"required": false,
"callType": "sync",
"method": "thing.service.getRC",
"inputData": [],
"outputData": [{
"identifier": "rcs",
"name": "遥控器数组",
"dataType": {
"type": "array",
"specs": {
"size": "128",
"item": {
"type": "struct",
"specs": [{
"identifier": "ButtonId",
"name": "按键id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}, {
"identifier": "ButtonName",
"name": "按键名字",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "ButtonIcon",
"name": "按键图标",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "ButtonStatus",
"name": "按键图标",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}]
}
}
}
}]
}, {
"identifier": "getBindCodeLib",
"name": "获取绑定的码库",
"required": false,
"callType": "sync",
"method": "thing.service.getBindCodeLib",
"inputData": [],
"outputData": [{
"identifier": "codeLibs",
"name": "码库数组",
"dataType": {
"type": "array",
"specs": {
"size": "128",
"item": {
"type": "struct",
"specs": [{
"identifier": "CodeLibId",
"name": "码库id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}, {
"identifier": "codeLibType",
"name": "码库类型",
"dataType": {
"type": "enum",
"specs": {
"0": "无码库",
"1": "手动学习码库",
"2": "云端码库",
"3": "私有码库"
}
}
}, {
"identifier": "CodeLibName",
"name": "码库名字",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceType",
"name": "设备类型",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceBrand",
"name": "设备设备品牌",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceModel",
"name": "设备型号",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "pCode",
"name": "匹配码",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}]
}
}
}
}]
}, {
"identifier": "getCodeLibButtons",
"name": "获取码库下的遥控器",
"required": false,
"callType": "sync",
"method": "thing.service.getCodeLibButtons",
"inputData": [{
"identifier": "CodeLibId",
"name": "码库id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}],
"outputData": [{
"identifier": "rcs",
"name": "遥控器数组",
"dataType": {
"type": "array",
"specs": {
"size": "128",
"item": {
"type": "struct",
"specs": [{
"identifier": "ButtonId",
"name": "按键id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}, {
"identifier": "ButtonName",
"name": "按键名字",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "ButtonIcon",
"name": "按键图标",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "ButtonStatus",
"name": "按键图标",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}]
}
}
}
}]
}, {
"identifier": "getLocalCodeLibs",
"name": "获取本地私有的码库",
"required": false,
"callType": "sync",
"method": "thing.service.getLocalCodeLibs",
"inputData": [{
"identifier": "DeviceType",
"name": "设备类型",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}],
"outputData": [{
"identifier": "codeLibs",
"name": "码库数组",
"dataType": {
"type": "array",
"specs": {
"size": "128",
"item": {
"type": "struct",
"specs": [{
"identifier": "CodeLibId",
"name": "码库id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}, {
"identifier": "codeLibType",
"name": "码库类型",
"dataType": {
"type": "enum",
"specs": {
"0": "无码库",
"1": "手动学习码库",
"2": "云端码库",
"3": "私有码库"
}
}
}, {
"identifier": "CodeLibName",
"name": "码库名字",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceType",
"name": "设备类型",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceBrand",
"name": "设备设备品牌",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceModel",
"name": "设备型号",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "pCode",
"name": "匹配码",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}]
}
}
}
}]
}, {
"identifier": "saveCodeLib",
"name": "保存本地私有的码库",
"required": false,
"callType": "sync",
"method": "thing.service.saveCodeLib",
"inputData": [{
"identifier": "codeLibType",
"name": "码库类型",
"dataType": {
"type": "enum",
"specs": {
"0": "无码库",
"1": "手动学习码库",
"2": "云端码库",
"3": "私有码库"
}
}
}, {
"identifier": "CodeLibName",
"name": "码库名字",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceType",
"name": "设备类型",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceBrand",
"name": "设备设备品牌",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceModel",
"name": "设备型号",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "pCode",
"name": "匹配码",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}],
"outputData": [{
"identifier": "CodeLibId",
"name": "码库id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}]
}, {
"identifier": "deleteCodeLib",
"name": "删除本地私有的码库",
"required": false,
"callType": "sync",
"method": "thing.service.deleteCodeLib",
"inputData": [{
"identifier": "CodeLibId",
"name": "码库id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}],
"outputData": []
}, {
"identifier": "matchCodeLib",
"name": "匹配码库",
"required": false,
"callType": "sync",
"method": "thing.service.matchCodeLib",
"inputData": [{
"identifier": "DeviceType",
"name": "设备类型",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}],
"outputData": [{
"identifier": "CodeLibId",
"name": "码库id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}, {
"identifier": "codeLibType",
"name": "码库类型",
"dataType": {
"type": "enum",
"specs": {
"0": "无码库",
"1": "手动学习码库",
"2": "云端码库",
"3": "私有码库"
}
}
}, {
"identifier": "CodeLibName",
"name": "码库名字",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceType",
"name": "设备类型",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceBrand",
"name": "设备设备品牌",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceModel",
"name": "设备型号",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "pCode",
"name": "匹配码",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}]
}, {
"identifier": "downloadLibCode",
"name": "下载红外码库到设备",
"required": false,
"callType": "sync",
"method": "thing.service.downloadLibCode",
"inputData": [{
"identifier": "CodeLibId",
"name": "码库id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}, {
"identifier": "codeLibType",
"name": "码库类型",
"dataType": {
"type": "enum",
"specs": {
"0": "无码库",
"1": "手动学习码库",
"2": "云端码库",
"3": "私有码库"
}
}
}, {
"identifier": "CodeLibName",
"name": "码库名字",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceType",
"name": "设备类型",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceBrand",
"name": "设备设备品牌",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceModel",
"name": "设备型号",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "pCode",
"name": "匹配码",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}],
"outputData": []
}, {
"identifier": "testLibCode",
"name": "测试红外码库",
"required": false,
"callType": "sync",
"method": "thing.service.testLibCode",
"inputData": [{
"identifier": "CodeLibId",
"name": "码库id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}, {
"identifier": "ButtonId",
"name": "按键id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}],
"outputData": []
}, {
"identifier": "resetBindCodeLib",
"name": "重置红外码库",
"required": false,
"callType": "sync",
"method": "thing.service.resetBindCodeLib",
"inputData": [],
"outputData": []
}],
"properties": [{
"identifier": "ButtonId",
"name": "按键id",
"accessMode": "r",
"required": true,
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}, {
"identifier": "ButtonName",
"name": "按键名字",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "ButtonIcon",
"name": "按键图标",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "ButtonStatus",
"name": "按键学习状态",
"accessMode": "rw",
"required": false,
"dataType": {
"type": "enum",
"specs": {
"0": "未学习",
"1": "已学习"
}
}
}, {
"identifier": "CodeLibId",
"name": "码库id",
"accessMode": "r",
"required": true,
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}, {
"identifier": "codeLibType",
"name": "码库类型",
"accessMode": "rw",
"required": false,
"dataType": {
"type": "enum",
"specs": {
"0": "无码库",
"1": "手动学习码库",
"2": "云端码库",
"3": "私有码库"
}
}
}, {
"identifier": "CodeLibName",
"name": "码库名字",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceType",
"name": "设备类型",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceBrand",
"name": "设备设备品牌",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceModel",
"name": "设备型号",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "pCode",
"name": "匹配码",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}],
"events": [{
"identifier": "post",
"name": "post",
"type": "info",
"required": true,
"desc": "属性上报",
"method": "thing.event.property.post",
"outputData": []
}, {
"identifier": "LearnCodeNotify",
"name": "学习码库通知消息",
"type": "info",
"required": true,
"method": "thing.event.LearnCodeNotify.post",
"outputData": [{
"identifier": "ButtonId",
"name": "按键id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}]
}, {
"identifier": "DownloadLibCodeNotify",
"name": "下载码库通知消息",
"type": "info",
"required": true,
"method": "thing.event.DownloadLibCodeNotify.post",
"outputData": [{
"identifier": "CodeLibId",
"name": "红外码库id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}]
}]
}
\ No newline at end of file
{
"schema": "https://iot.ikonke.com/schema.json",
"schema": "https://iot-ap.ikonke.com/model/product_106.json",
"productType": "curtain",
"profile": {
"heartbeat": "3000",
"productCode": "106",
"productName": "二路窗帘面板(肖邦系列)定制版"
},
......@@ -13,7 +14,8 @@
"dataType": {
"specs": {
"0": "关闭",
"1": "开启"
"1": "开启",
"2": "暂停"
},
"type": "enum"
},
......@@ -23,7 +25,8 @@
"dataType": {
"specs": {
"0": "关闭",
"1": "开启"
"1": "开启",
"2": "暂停"
},
"type": "enum"
},
......@@ -40,7 +43,8 @@
"dataType": {
"specs": {
"0": "关闭",
"1": "开启"
"1": "开启",
"2": "暂停"
},
"type": "enum"
},
......@@ -50,7 +54,8 @@
"dataType": {
"specs": {
"0": "关闭",
"1": "开启"
"1": "开启",
"2": "暂停"
},
"type": "enum"
},
......@@ -69,7 +74,8 @@
"dataType": {
"specs": {
"0": "关闭",
"1": "开启"
"1": "开启",
"2": "暂停"
},
"type": "enum"
},
......@@ -81,7 +87,8 @@
"dataType": {
"specs": {
"0": "关闭",
"1": "开启"
"1": "开启",
"2": "暂停"
},
"type": "enum"
},
......@@ -95,7 +102,8 @@
"dataType": {
"specs": {
"0": "关闭",
"1": "开启"
"1": "开启",
"2": "暂停"
},
"type": "enum"
},
......@@ -105,7 +113,8 @@
"dataType": {
"specs": {
"0": "关闭",
"1": "开启"
"1": "开启",
"2": "暂停"
},
"type": "enum"
},
......
{
"schema": "https://iot.ikonke.com/schema.json",
"schema": "https://iot-ap.ikonke.com/model/product_11.json",
"productType": "lightModule",
"profile": {
"heartbeat": "3000",
"productCode": "11",
"productName": "两路零火灯光模块"
},
......
......@@ -4,7 +4,8 @@
"profile": {
"heartbeat": "3000",
"productCode": "130",
"productName": "B1门锁"
"productName": "B1门锁",
"sleepTime": "30000"
},
"services": [{
"identifier": "set",
......@@ -483,8 +484,8 @@
}
}],
"events": [{
"identifier": "property",
"name": "property",
"identifier": "post",
"name": "post",
"type": "info",
"required": true,
"desc": "属性上报",
......
......@@ -30,9 +30,19 @@
"step": "0.01"
}
}
}, {
"identifier": "DismantleState",
"name": "拆卸状态",
"dataType": {
"type": "enum",
"specs": {
"0": "正常",
"1": "被拆卸"
}
}
}],
"identifier": "get",
"inputData": ["ContactState", "Battery"],
"inputData": ["ContactState", "Battery", "DismantleState"],
"method": "thing.service.property.get",
"name": "get",
"required": true,
......@@ -66,6 +76,18 @@
"step": "0.01"
}
}
}, {
"identifier": "DismantleState",
"name": "拆卸状态",
"accessMode": "r",
"required": false,
"dataType": {
"type": "enum",
"specs": {
"0": "正常",
"1": "被拆卸"
}
}
}],
"events": [{
"outputData": [{
......@@ -91,6 +113,16 @@
"step": "0.01"
}
}
}, {
"identifier": "DismantleState",
"name": "拆卸状态",
"dataType": {
"type": "enum",
"specs": {
"0": "正常",
"1": "被拆卸"
}
}
}],
"identifier": "property",
"method": "thing.event.property.post",
......@@ -111,7 +143,7 @@
}
}],
"identifier": "contactAlarm",
"method": "thing.event.alarm.post",
"method": "thing.event.contactAlarm.post",
"name": "contactAlarm",
"type": "alarm",
"required": true,
......@@ -132,7 +164,7 @@
}
}],
"identifier": "BatteryAlarm",
"method": "thing.event.alarm.post",
"method": "thing.event.BatteryAlarm.post",
"name": "BatteryAlarm",
"type": "alarm",
"required": true,
......@@ -143,6 +175,16 @@
"type": "alert",
"required": true,
"method": "thing.event.TamperAlarm.post",
"outputData": []
"outputData": [{
"identifier": "DismantleState",
"name": "拆卸状态",
"dataType": {
"type": "enum",
"specs": {
"0": "正常",
"1": "被拆卸"
}
}
}]
}]
}
\ No newline at end of file
......@@ -30,9 +30,19 @@
"step": "0.01"
}
}
}, {
"identifier": "DismantleState",
"name": "拆卸状态",
"dataType": {
"type": "enum",
"specs": {
"0": "正常",
"1": "被拆卸"
}
}
}],
"identifier": "get",
"inputData": ["SmokeSensorState", "Battery"],
"inputData": ["SmokeSensorState", "Battery", "DismantleState"],
"method": "thing.service.property.get",
"name": "get",
"required": true,
......@@ -66,6 +76,18 @@
"step": "0.01"
}
}
}, {
"identifier": "DismantleState",
"name": "拆卸状态",
"accessMode": "r",
"required": false,
"dataType": {
"type": "enum",
"specs": {
"0": "正常",
"1": "被拆卸"
}
}
}],
"events": [{
"outputData": [{
......@@ -91,6 +113,16 @@
"step": "0.01"
}
}
}, {
"identifier": "DismantleState",
"name": "拆卸状态",
"dataType": {
"type": "enum",
"specs": {
"0": "正常",
"1": "被拆卸"
}
}
}],
"identifier": "property",
"method": "thing.event.property.post",
......@@ -111,7 +143,7 @@
}
}],
"identifier": "smokeAlarm",
"method": "thing.event.alarm.post",
"method": "thing.event.smokeAlarm.post",
"name": "smokeAlarm",
"type": "alarm",
"required": true,
......@@ -132,7 +164,7 @@
}
}],
"identifier": "BatteryAlarm",
"method": "thing.event.alarm.post",
"method": "thing.event.BatteryAlarm.post",
"name": "BatteryAlarm",
"type": "alarm",
"required": true,
......@@ -143,6 +175,16 @@
"type": "alert",
"required": true,
"method": "thing.event.TamperAlarm.post",
"outputData": []
"outputData": [{
"identifier": "DismantleState",
"name": "拆卸状态",
"dataType": {
"type": "enum",
"specs": {
"0": "正常",
"1": "被拆卸"
}
}
}]
}]
}
\ No newline at end of file
......@@ -30,14 +30,33 @@
"step": "0.01"
}
}
}, {
"identifier": "DismantleState",
"name": "拆卸状态",
"dataType": {
"type": "enum",
"specs": {
"0": "正常",
"1": "被拆卸"
}
}
}],
"identifier": "get",
"inputData": ["GasSensorState", "Battery"],
"inputData": ["GasSensorState", "Battery", "DismantleState"],
"method": "thing.service.property.get",
"name": "get",
"required": true,
"callType": "async",
"desc": "属性获取"
}, {
"outputData": [],
"inputData": [],
"identifier": "PositioningDevice",
"method": "thing.service.PositioningDevice",
"name": "PositioningDevice",
"required": true,
"callType": "async",
"desc": "设备定位"
}],
"properties": [{
"identifier": "GasSensorState",
......@@ -66,6 +85,18 @@
"step": "0.01"
}
}
}, {
"identifier": "DismantleState",
"name": "拆卸状态",
"accessMode": "r",
"required": false,
"dataType": {
"type": "enum",
"specs": {
"0": "正常",
"1": "被拆卸"
}
}
}],
"events": [{
"outputData": [{
......@@ -91,6 +122,16 @@
"step": "0.01"
}
}
}, {
"identifier": "DismantleState",
"name": "拆卸状态",
"dataType": {
"type": "enum",
"specs": {
"0": "正常",
"1": "被拆卸"
}
}
}],
"identifier": "property",
"method": "thing.event.property.post",
......@@ -111,7 +152,7 @@
}
}],
"identifier": "gasAlarm",
"method": "thing.event.alarm.post",
"method": "thing.event.gasAlarm.post",
"name": "gasAlarm",
"type": "alarm",
"required": true,
......@@ -132,7 +173,7 @@
}
}],
"identifier": "BatteryAlarm",
"method": "thing.event.alarm.post",
"method": "thing.event.BatteryAlarm.post",
"name": "BatteryAlarm",
"type": "alarm",
"required": true,
......@@ -143,6 +184,16 @@
"type": "alert",
"required": true,
"method": "thing.event.TamperAlarm.post",
"outputData": []
"outputData": [{
"identifier": "DismantleState",
"name": "拆卸状态",
"dataType": {
"type": "enum",
"specs": {
"0": "正常",
"1": "被拆卸"
}
}
}]
}]
}
\ No newline at end of file
......@@ -81,8 +81,8 @@
}
},
{
"identifier": "TimingOnEnable",
"name": "定时机",
"identifier": "TimingOffEnable",
"name": "定时机",
"dataType": {
"type": "bool",
"specs": {
......@@ -92,8 +92,8 @@
}
},
{
"identifier": "TimingOnTime",
"name": "定时机时间",
"identifier": "TimingOffTime",
"name": "定时机时间",
"dataType": {
"type": "text",
"specs": {
......@@ -102,25 +102,15 @@
}
},
{
"identifier": "TimingOffEnable",
"name": "定时关机",
"identifier": "ChildLockState",
"name": "童锁",
"dataType": {
"type": "bool",
"type": "enum",
"specs": {
"0": "关闭",
"1": "开启"
}
}
},
{
"identifier": "TimingOffTime",
"name": "定时关机时间",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}
],
"outputData": []
......@@ -139,10 +129,9 @@
"WindSpeed",
"WorkMode",
"CurrentTemperature",
"TimingOnEnable",
"timingOnTime",
"TimingOffEnable",
"TimingOffTime"
"TimingOffTime",
"ChildLockState"
],
"outputData": [
{
......@@ -225,8 +214,8 @@
}
},
{
"identifier": "TimingOnEnable",
"name": "定时机",
"identifier": "TimingOffEnable",
"name": "定时机",
"dataType": {
"type": "bool",
"specs": {
......@@ -236,8 +225,8 @@
}
},
{
"identifier": "TimingOnTime",
"name": "定时机时间",
"identifier": "TimingOffTime",
"name": "定时机时间",
"dataType": {
"type": "text",
"specs": {
......@@ -246,25 +235,15 @@
}
},
{
"identifier": "TimingOffEnable",
"name": "定时关机",
"identifier": "ChildLockState",
"name": "童锁",
"dataType": {
"type": "bool",
"type": "enum",
"specs": {
"0": "关闭",
"1": "开启"
}
}
},
{
"identifier": "TimingOffTime",
"name": "定时关机时间",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}
]
}
......@@ -375,24 +354,12 @@
}
},
{
"identifier": "TimingOnTime",
"name": "定时开机时间",
"identifier": "ChildLockState",
"name": "童锁",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
},
{
"identifier": "TimingOffEnable",
"name": "定时关机",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "bool",
"type": "enum",
"specs": {
"0": "关闭",
"1": "开启"
......@@ -501,26 +468,16 @@
}
},
{
"identifier": "TimingOnEnable",
"name": "定时开机",
"identifier": "ChildLockState",
"name": "童锁",
"dataType": {
"type": "bool",
"type": "enum",
"specs": {
"0": "关闭",
"1": "开启"
}
}
},
{
"identifier": "TimingOnTime",
"name": "定时开机时间",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
},
{
"identifier": "TimingOffEnable",
"name": "定时关机",
......
{
"schema": "https://iot-ap.ikonke.com/model/product_22.json",
"productType": "IRRC",
"profile": {
"heartbeat": "3000",
"productCode": "22",
"productName": "红外遥控器"
},
"services": [{
"identifier": "set",
"name": "set",
"required": true,
"callType": "async",
"desc": "属性设置",
"method": "thing.service.property.set",
"inputData": [],
"outputData": []
}, {
"identifier": "get",
"name": "get",
"required": true,
"callType": "async",
"desc": "属性获取",
"method": "thing.service.property.get",
"inputData": [],
"outputData": []
}, {
"identifier": "sendCode",
"name": "发送红外码",
"required": false,
"callType": "async",
"method": "thing.service.sendCode",
"inputData": [{
"identifier": "ButtonId",
"name": "按键id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}],
"outputData": []
}, {
"identifier": "learnCode",
"name": "学习红外码",
"required": false,
"callType": "async",
"method": "thing.service.learnCode",
"inputData": [{
"identifier": "ButtonId",
"name": "按键id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}],
"outputData": []
}, {
"identifier": "saveCode",
"name": "保存红外码",
"required": false,
"callType": "async",
"method": "thing.service.saveCode",
"inputData": [{
"identifier": "ButtonId",
"name": "按键id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}],
"outputData": []
}, {
"identifier": "saveRC",
"name": "保存遥控器",
"required": false,
"callType": "async",
"method": "thing.service.saveRC",
"inputData": [{
"identifier": "rcs",
"name": "遥控器数组",
"dataType": {
"type": "array",
"specs": {
"size": "128",
"item": {
"type": "struct",
"specs": [{
"identifier": "ButtonId",
"name": "按键id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}, {
"identifier": "ButtonName",
"name": "按键名字",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}]
}
}
}
}],
"outputData": []
}, {
"identifier": "getRC",
"name": "获取遥控器",
"required": false,
"callType": "sync",
"method": "thing.service.getRC",
"inputData": [],
"outputData": [{
"identifier": "rcs",
"name": "遥控器数组",
"dataType": {
"type": "array",
"specs": {
"size": "128",
"item": {
"type": "struct",
"specs": [{
"identifier": "ButtonId",
"name": "按键id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}, {
"identifier": "ButtonName",
"name": "按键名字",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "ButtonIcon",
"name": "按键图标",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "ButtonStatus",
"name": "按键图标",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}]
}
}
}
}]
}, {
"identifier": "getBindCodeLib",
"name": "获取绑定的码库",
"required": false,
"callType": "sync",
"method": "thing.service.getBindCodeLib",
"inputData": [],
"outputData": [{
"identifier": "codeLibs",
"name": "码库数组",
"dataType": {
"type": "array",
"specs": {
"size": "128",
"item": {
"type": "struct",
"specs": [{
"identifier": "CodeLibId",
"name": "码库id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}, {
"identifier": "codeLibType",
"name": "码库类型",
"dataType": {
"type": "enum",
"specs": {
"0": "无码库",
"1": "手动学习码库",
"2": "云端码库",
"3": "私有码库"
}
}
}, {
"identifier": "CodeLibName",
"name": "码库名字",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceType",
"name": "设备类型",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceBrand",
"name": "设备设备品牌",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceModel",
"name": "设备型号",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "pCode",
"name": "匹配码",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}]
}
}
}
}]
}, {
"identifier": "getCodeLibButtons",
"name": "获取码库下的遥控器",
"required": false,
"callType": "sync",
"method": "thing.service.getCodeLibButtons",
"inputData": [{
"identifier": "CodeLibId",
"name": "码库id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}],
"outputData": [{
"identifier": "rcs",
"name": "遥控器数组",
"dataType": {
"type": "array",
"specs": {
"size": "128",
"item": {
"type": "struct",
"specs": [{
"identifier": "ButtonId",
"name": "按键id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}, {
"identifier": "ButtonName",
"name": "按键名字",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "ButtonIcon",
"name": "按键图标",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "ButtonStatus",
"name": "按键图标",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}]
}
}
}
}]
}, {
"identifier": "getLocalCodeLibs",
"name": "获取本地私有的码库",
"required": false,
"callType": "sync",
"method": "thing.service.getLocalCodeLibs",
"inputData": [{
"identifier": "DeviceType",
"name": "设备类型",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}],
"outputData": [{
"identifier": "codeLibs",
"name": "码库数组",
"dataType": {
"type": "array",
"specs": {
"size": "128",
"item": {
"type": "struct",
"specs": [{
"identifier": "CodeLibId",
"name": "码库id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}, {
"identifier": "codeLibType",
"name": "码库类型",
"dataType": {
"type": "enum",
"specs": {
"0": "无码库",
"1": "手动学习码库",
"2": "云端码库",
"3": "私有码库"
}
}
}, {
"identifier": "CodeLibName",
"name": "码库名字",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceType",
"name": "设备类型",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceBrand",
"name": "设备设备品牌",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceModel",
"name": "设备型号",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "pCode",
"name": "匹配码",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}]
}
}
}
}]
}, {
"identifier": "saveCodeLib",
"name": "保存本地私有的码库",
"required": false,
"callType": "sync",
"method": "thing.service.saveCodeLib",
"inputData": [{
"identifier": "codeLibType",
"name": "码库类型",
"dataType": {
"type": "enum",
"specs": {
"0": "无码库",
"1": "手动学习码库",
"2": "云端码库",
"3": "私有码库"
}
}
}, {
"identifier": "CodeLibName",
"name": "码库名字",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceType",
"name": "设备类型",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceBrand",
"name": "设备设备品牌",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceModel",
"name": "设备型号",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "pCode",
"name": "匹配码",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}],
"outputData": [{
"identifier": "CodeLibId",
"name": "码库id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}]
}, {
"identifier": "deleteCodeLib",
"name": "删除本地私有的码库",
"required": false,
"callType": "sync",
"method": "thing.service.deleteCodeLib",
"inputData": [{
"identifier": "CodeLibId",
"name": "码库id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}],
"outputData": []
}, {
"identifier": "matchCodeLib",
"name": "匹配码库",
"required": false,
"callType": "sync",
"method": "thing.service.matchCodeLib",
"inputData": [{
"identifier": "DeviceType",
"name": "设备类型",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}],
"outputData": [{
"identifier": "CodeLibId",
"name": "码库id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}, {
"identifier": "codeLibType",
"name": "码库类型",
"dataType": {
"type": "enum",
"specs": {
"0": "无码库",
"1": "手动学习码库",
"2": "云端码库",
"3": "私有码库"
}
}
}, {
"identifier": "CodeLibName",
"name": "码库名字",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceType",
"name": "设备类型",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceBrand",
"name": "设备设备品牌",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceModel",
"name": "设备型号",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "pCode",
"name": "匹配码",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}]
}, {
"identifier": "downloadLibCode",
"name": "下载红外码库到设备",
"required": false,
"callType": "sync",
"method": "thing.service.downloadLibCode",
"inputData": [{
"identifier": "CodeLibId",
"name": "码库id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}, {
"identifier": "codeLibType",
"name": "码库类型",
"dataType": {
"type": "enum",
"specs": {
"0": "无码库",
"1": "手动学习码库",
"2": "云端码库",
"3": "私有码库"
}
}
}, {
"identifier": "CodeLibName",
"name": "码库名字",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceType",
"name": "设备类型",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceBrand",
"name": "设备设备品牌",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceModel",
"name": "设备型号",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "pCode",
"name": "匹配码",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}],
"outputData": []
}, {
"identifier": "testLibCode",
"name": "测试红外码库",
"required": false,
"callType": "sync",
"method": "thing.service.testLibCode",
"inputData": [{
"identifier": "CodeLibId",
"name": "码库id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}, {
"identifier": "ButtonId",
"name": "按键id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}],
"outputData": []
}, {
"identifier": "resetBindCodeLib",
"name": "重置红外码库",
"required": false,
"callType": "sync",
"method": "thing.service.resetBindCodeLib",
"inputData": [],
"outputData": []
}],
"properties": [{
"identifier": "ButtonId",
"name": "按键id",
"accessMode": "r",
"required": true,
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}, {
"identifier": "ButtonName",
"name": "按键名字",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "ButtonIcon",
"name": "按键图标",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "ButtonStatus",
"name": "按键学习状态",
"accessMode": "rw",
"required": false,
"dataType": {
"type": "enum",
"specs": {
"0": "未学习",
"1": "已学习"
}
}
}, {
"identifier": "CodeLibId",
"name": "码库id",
"accessMode": "r",
"required": true,
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}, {
"identifier": "codeLibType",
"name": "码库类型",
"accessMode": "rw",
"required": false,
"dataType": {
"type": "enum",
"specs": {
"0": "无码库",
"1": "手动学习码库",
"2": "云端码库",
"3": "私有码库"
}
}
}, {
"identifier": "CodeLibName",
"name": "码库名字",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceType",
"name": "设备类型",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceBrand",
"name": "设备设备品牌",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceModel",
"name": "设备型号",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "pCode",
"name": "匹配码",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}],
"events": [{
"identifier": "post",
"name": "post",
"type": "info",
"required": true,
"desc": "属性上报",
"method": "thing.event.property.post",
"outputData": []
}, {
"identifier": "LearnCodeNotify",
"name": "学习码库通知消息",
"type": "info",
"required": true,
"method": "thing.event.LearnCodeNotify.post",
"outputData": [{
"identifier": "ButtonId",
"name": "按键id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}]
}, {
"identifier": "DownloadLibCodeNotify",
"name": "下载码库通知消息",
"type": "info",
"required": true,
"method": "thing.event.DownloadLibCodeNotify.post",
"outputData": [{
"identifier": "CodeLibId",
"name": "红外码库id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}]
}]
}
\ No newline at end of file
{
"schema": "https://iot.ikonke.com/schema.json",
"schema": "https://iot-ap.ikonke.com/model/product_24.json",
"productType": "curtain",
"profile": {
"heartbeat": "3000",
"productCode": "24",
"productName": "智能窗帘电机(杜亚)"
},
......@@ -43,6 +44,16 @@
"type": "enum"
},
"name": "窗帘工作模式"
}, {
"identifier": "RouteState",
"dataType": {
"specs": {
"0": "未设置",
"1": "已设置"
},
"type": "enum"
},
"name": "行程设置"
}],
"method": "thing.service.property.set",
"name": "set",
......@@ -85,9 +96,19 @@
"type": "enum"
},
"name": "窗帘工作模式"
}, {
"identifier": "RouteState",
"dataType": {
"specs": {
"0": "未设置",
"1": "已设置"
},
"type": "enum"
},
"name": "行程设置"
}],
"identifier": "get",
"inputData": ["OperationMode", "Position", "WorkMode"],
"inputData": ["OperationMode", "Position", "WorkMode", "RouteState"],
"method": "thing.service.property.get",
"name": "get",
"required": true,
......@@ -135,6 +156,18 @@
"name": "窗帘打开位置",
"accessMode": "rw",
"required": true
}, {
"identifier": "RouteState",
"dataType": {
"specs": {
"0": "未设置",
"1": "已设置"
},
"type": "enum"
},
"accessMode": "rw",
"required": true,
"name": "行程设置"
}],
"events": [{
"outputData": [{
......@@ -172,6 +205,16 @@
"type": "enum"
},
"name": "窗帘工作模式"
}, {
"identifier": "RouteState",
"dataType": {
"specs": {
"0": "未设置",
"1": "已设置"
},
"type": "enum"
},
"name": "行程设置"
}],
"identifier": "property",
"method": "thing.event.property.post",
......
......@@ -30,9 +30,19 @@
"step": "0.01"
}
}
}, {
"identifier": "DismantleState",
"name": "拆卸状态",
"dataType": {
"type": "enum",
"specs": {
"0": "正常",
"1": "被拆卸"
}
}
}],
"identifier": "get",
"inputData": ["MotionAlarmState", "Battery"],
"inputData": ["MotionAlarmState", "Battery", "DismantleState"],
"method": "thing.service.property.get",
"name": "get",
"required": true,
......@@ -66,6 +76,18 @@
"step": "0.01"
}
}
}, {
"identifier": "DismantleState",
"name": "拆卸状态",
"accessMode": "r",
"required": false,
"dataType": {
"type": "enum",
"specs": {
"0": "正常",
"1": "被拆卸"
}
}
}],
"events": [{
"outputData": [{
......@@ -91,6 +113,16 @@
"step": "0.01"
}
}
}, {
"identifier": "DismantleState",
"name": "拆卸状态",
"dataType": {
"type": "enum",
"specs": {
"0": "正常",
"1": "被拆卸"
}
}
}],
"identifier": "property",
"method": "thing.event.property.post",
......@@ -111,7 +143,7 @@
}
}],
"identifier": "motionAlarm",
"method": "thing.event.alarm.post",
"method": "thing.event.motionAlarm.post",
"name": "motionAlarm",
"type": "alarm",
"required": true,
......@@ -132,7 +164,7 @@
}
}],
"identifier": "BatteryAlarm",
"method": "thing.event.alarm.post",
"method": "thing.event.BatteryAlarm.post",
"name": "BatteryAlarm",
"type": "alarm",
"required": true,
......@@ -143,6 +175,16 @@
"type": "alert",
"required": true,
"method": "thing.event.TamperAlarm.post",
"outputData": []
"outputData": [{
"identifier": "DismantleState",
"name": "拆卸状态",
"dataType": {
"type": "enum",
"specs": {
"0": "正常",
"1": "被拆卸"
}
}
}]
}]
}
\ No newline at end of file
......@@ -30,9 +30,19 @@
"step": "0.01"
}
}
}, {
"identifier": "DismantleState",
"name": "拆卸状态",
"dataType": {
"type": "enum",
"specs": {
"0": "正常",
"1": "被拆卸"
}
}
}],
"identifier": "get",
"inputData": ["SmokeSensorState", "Battery"],
"inputData": ["SmokeSensorState", "Battery", "DismantleState"],
"method": "thing.service.property.get",
"name": "get",
"required": true,
......@@ -66,6 +76,18 @@
"step": "0.01"
}
}
}, {
"identifier": "DismantleState",
"name": "拆卸状态",
"accessMode": "r",
"required": false,
"dataType": {
"type": "enum",
"specs": {
"0": "正常",
"1": "被拆卸"
}
}
}],
"events": [{
"outputData": [{
......@@ -91,6 +113,16 @@
"step": "0.01"
}
}
}, {
"identifier": "DismantleState",
"name": "拆卸状态",
"dataType": {
"type": "enum",
"specs": {
"0": "正常",
"1": "被拆卸"
}
}
}],
"identifier": "property",
"method": "thing.event.property.post",
......@@ -111,7 +143,7 @@
}
}],
"identifier": "smokeAlarm",
"method": "thing.event.alarm.post",
"method": "thing.event.smokeAlarm.post",
"name": "smokeAlarm",
"type": "alarm",
"required": true,
......@@ -132,7 +164,7 @@
}
}],
"identifier": "BatteryAlarm",
"method": "thing.event.alarm.post",
"method": "thing.event.BatteryAlarm.post",
"name": "BatteryAlarm",
"type": "alarm",
"required": true,
......@@ -143,6 +175,16 @@
"type": "alert",
"required": true,
"method": "thing.event.TamperAlarm.post",
"outputData": []
"outputData": [{
"identifier": "DismantleState",
"name": "拆卸状态",
"dataType": {
"type": "enum",
"specs": {
"0": "正常",
"1": "被拆卸"
}
}
}]
}]
}
\ No newline at end of file
{
"schema": "https://iot-ap.ikonke.com/model/product_28.json",
"productType": "sensor",
"profile": {
"heartbeat": "3000",
"productCode": "28",
"productName": "燃气报警器"
},
"services": [{
"outputData": [{
"identifier": "GasSensorState",
"name": "燃气检测状态",
"dataType": {
"type": "enum",
"specs": {
"0": "正常",
"1": "燃气泄漏"
}
}
}, {
"identifier": "Battery",
"name": "电池电量",
"dataType": {
"type": "double",
"specs": {
"min": "0",
"max": "100",
"unit": "%",
"unitName": "百分比",
"step": "0.01"
}
}
}, {
"identifier": "DismantleState",
"name": "拆卸状态",
"dataType": {
"type": "enum",
"specs": {
"0": "正常",
"1": "被拆卸"
}
}
}],
"identifier": "get",
"inputData": ["GasSensorState", "Battery", "DismantleState"],
"method": "thing.service.property.get",
"name": "get",
"required": true,
"callType": "async",
"desc": "属性获取"
}],
"properties": [{
"identifier": "GasSensorState",
"name": "燃气检测状态",
"accessMode": "r",
"required": true,
"dataType": {
"type": "enum",
"specs": {
"0": "正常",
"1": "燃气泄漏"
}
}
}, {
"identifier": "Battery",
"name": "电池电量",
"accessMode": "r",
"required": false,
"dataType": {
"type": "double",
"specs": {
"min": "0",
"max": "100",
"unit": "%",
"unitName": "百分比",
"step": "0.01"
}
}
}, {
"identifier": "DismantleState",
"name": "拆卸状态",
"accessMode": "r",
"required": false,
"dataType": {
"type": "enum",
"specs": {
"0": "正常",
"1": "被拆卸"
}
}
}],
"events": [{
"outputData": [{
"identifier": "GasSensorState",
"name": "燃气检测状态",
"dataType": {
"type": "enum",
"specs": {
"0": "正常",
"1": "燃气泄漏"
}
}
}, {
"identifier": "Battery",
"name": "电池电量",
"dataType": {
"type": "double",
"specs": {
"min": "0",
"max": "100",
"unit": "%",
"unitName": "百分比",
"step": "0.01"
}
}
}, {
"identifier": "DismantleState",
"name": "拆卸状态",
"dataType": {
"type": "enum",
"specs": {
"0": "正常",
"1": "被拆卸"
}
}
}],
"identifier": "property",
"method": "thing.event.property.post",
"name": "property",
"type": "info",
"required": true,
"desc": "属性上报"
}, {
"outputData": [{
"identifier": "GasSensorState",
"name": "燃气检测状态",
"dataType": {
"type": "enum",
"specs": {
"0": "正常",
"1": "燃气泄漏"
}
}
}],
"identifier": "gasAlarm",
"method": "thing.event.alarm.post",
"name": "gasAlarm",
"type": "alarm",
"required": true,
"desc": "燃气告警"
}, {
"outputData": [{
"identifier": "Battery",
"name": "电池电量",
"dataType": {
"type": "double",
"specs": {
"min": "0",
"max": "100",
"unit": "%",
"unitName": "百分比",
"step": "0.01"
}
}
}],
"identifier": "BatteryAlarm",
"method": "thing.event.alarm.post",
"name": "batteryAlarm",
"type": "alarm",
"required": true,
"desc": "低电量告警"
}, {
"identifier": "TamperAlarm",
"name": "防撬报警",
"type": "alert",
"required": true,
"method": "thing.event.TamperAlarm.post",
"outputData": [{
"identifier": "DismantleState",
"name": "拆卸状态",
"dataType": {
"type": "enum",
"specs": {
"0": "正常",
"1": "被拆卸"
}
}
}]
}]
}
\ No newline at end of file
{
"schema": "https://iot-ap.ikonke.com/model/product_3031.json",
"productType": "airConditioning",
"profile": {
"heartbeat": "3000",
"productCode": "3031",
"productName": "风机盘管(肖邦系列)"
},
"services": [
{
"identifier": "set",
"name": "set",
"required": true,
"callType": "async",
"desc": "属性设置",
"method": "thing.service.property.set",
"inputData": [
{
"identifier": "VerticalSwitch",
"name": "上下摆风开关",
"dataType": {
"type": "bool",
"specs": {
"0": "关闭",
"1": "开启"
}
}
},
{
"identifier": "Temperature",
"name": "目标温度",
"dataType": {
"type": "double",
"specs": {
"min": "16",
"max": "30",
"unit": "°C",
"unitName": "摄氏度",
"step": "1"
}
}
},
{
"identifier": "PowerSwitch",
"name": "电源开关",
"dataType": {
"type": "bool",
"specs": {
"0": "关闭",
"1": "开启"
}
}
},
{
"identifier": "WindSpeed",
"name": "风速",
"dataType": {
"type": "enum",
"specs": {
"0": "自动",
"1": "静音档",
"2": "低档",
"3": "中档",
"4": "高档",
"5": "最高档"
}
}
},
{
"identifier": "WorkMode",
"name": "工作模式",
"dataType": {
"type": "enum",
"specs": {
"0": "自动",
"1": "制冷",
"2": "制热",
"3": "通风",
"4": "除湿"
}
}
},
{
"identifier": "TimingOffEnable",
"name": "定时关机",
"dataType": {
"type": "bool",
"specs": {
"0": "关闭",
"1": "开启"
}
}
},
{
"identifier": "TimingOffTime",
"name": "定时关机时间",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
},
{
"identifier": "ChildLockState",
"name": "童锁",
"dataType": {
"type": "enum",
"specs": {
"0": "关闭",
"1": "开启"
}
}
}
],
"outputData": []
},
{
"identifier": "get",
"name": "get",
"required": true,
"callType": "async",
"desc": "属性获取",
"method": "thing.service.property.get",
"inputData": [
"VerticalSwitch",
"Temperature",
"PowerSwitch",
"WindSpeed",
"WorkMode",
"CurrentTemperature",
"TimingOffEnable",
"TimingOffTime",
"ChildLockState"
],
"outputData": [
{
"identifier": "VerticalSwitch",
"name": "上下摆风开关",
"dataType": {
"type": "bool",
"specs": {
"0": "关闭",
"1": "开启"
}
}
},
{
"identifier": "Temperature",
"name": "目标温度",
"dataType": {
"type": "double",
"specs": {
"min": "16",
"max": "30",
"unit": "°C",
"unitName": "摄氏度",
"step": "1"
}
}
},
{
"identifier": "CurrentTemperature",
"name": "当前温度",
"dataType": {
"type": "double",
"specs": {
"min": "-30",
"max": "50",
"unit": "°C",
"unitName": "摄氏度",
"step": "1"
}
}
},
{
"identifier": "PowerSwitch",
"name": "电源开关",
"dataType": {
"type": "bool",
"specs": {
"0": "关闭",
"1": "开启"
}
}
},
{
"identifier": "WindSpeed",
"name": "风速",
"dataType": {
"type": "enum",
"specs": {
"0": "自动",
"1": "静音档",
"2": "低档",
"3": "中档",
"4": "高档",
"5": "最高档"
}
}
},
{
"identifier": "WorkMode",
"name": "工作模式",
"dataType": {
"type": "enum",
"specs": {
"0": "自动",
"1": "制冷",
"2": "制热",
"3": "通风",
"4": "除湿"
}
}
},
{
"identifier": "TimingOffEnable",
"name": "定时关机",
"dataType": {
"type": "bool",
"specs": {
"0": "关闭",
"1": "开启"
}
}
},
{
"identifier": "TimingOffTime",
"name": "定时关机时间",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
},
{
"identifier": "ChildLockState",
"name": "童锁",
"dataType": {
"type": "enum",
"specs": {
"0": "关闭",
"1": "开启"
}
}
}
]
}
],
"properties": [
{
"identifier": "PowerSwitch",
"name": "电源开关",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "enum",
"specs": {
"0": "关闭",
"1": "开启"
}
}
},
{
"identifier": "Temperature",
"name": "目标温度",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "double",
"specs": {
"min": "16",
"max": "30",
"unit": "°C",
"unitName": "摄氏度",
"step": "1"
}
}
},
{
"identifier": "CurrentTemperature",
"name": "当前温度",
"accessMode": "r",
"required": true,
"dataType": {
"type": "double",
"specs": {
"min": "-30",
"max": "50",
"unit": "°C",
"unitName": "摄氏度",
"step": "1"
}
}
},
{
"identifier": "WindSpeed",
"name": "风速",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "enum",
"specs": {
"0": "自动",
"1": "静音档",
"2": "低档",
"3": "中档",
"4": "高档",
"5": "最高档"
}
}
},
{
"identifier": "WorkMode",
"name": "工作模式",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "enum",
"specs": {
"0": "自动",
"1": "制冷",
"2": "制热",
"3": "通风",
"4": "除湿"
}
}
},
{
"identifier": "VerticalSwitch",
"name": "上下摆风开关",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "enum",
"specs": {
"0": "关闭",
"1": "开启"
}
}
},
{
"identifier": "TimingOnEnable",
"name": "定时开机",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "bool",
"specs": {
"0": "关闭",
"1": "开启"
}
}
},
{
"identifier": "ChildLockState",
"name": "童锁",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "enum",
"specs": {
"0": "关闭",
"1": "开启"
}
}
},
{
"identifier": "TimingOffTime",
"name": "定时关机时间",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}
],
"events": [
{
"identifier": "post",
"name": "post",
"type": "info",
"required": true,
"desc": "属性上报",
"method": "thing.event.property.post",
"outputData": [
{
"identifier": "VerticalSwitch",
"name": "上下摆风开关",
"dataType": {
"type": "bool",
"specs": {
"0": "关闭",
"1": "开启"
}
}
},
{
"identifier": "Temperature",
"name": "目标温度",
"dataType": {
"type": "double",
"specs": {
"min": "16",
"max": "30",
"unit": "°C",
"unitName": "摄氏度",
"step": "1"
}
}
},
{
"identifier": "CurrentTemperature",
"name": "当前温度",
"dataType": {
"type": "double",
"specs": {
"min": "-30",
"max": "50",
"unit": "°C",
"unitName": "摄氏度",
"step": "1"
}
}
},
{
"identifier": "PowerSwitch",
"name": "电源开关",
"dataType": {
"type": "bool",
"specs": {
"0": "关闭",
"1": "开启"
}
}
},
{
"identifier": "WindSpeed",
"name": "风速",
"dataType": {
"type": "enum",
"specs": {
"0": "自动",
"1": "静音档",
"2": "低档",
"3": "中档",
"4": "高档",
"5": "最高档"
}
}
},
{
"identifier": "WorkMode",
"name": "工作模式",
"dataType": {
"type": "enum",
"specs": {
"0": "自动",
"1": "制冷",
"2": "制热",
"3": "通风",
"4": "除湿"
}
}
},
{
"identifier": "ChildLockState",
"name": "童锁",
"dataType": {
"type": "enum",
"specs": {
"0": "关闭",
"1": "开启"
}
}
},
{
"identifier": "TimingOffEnable",
"name": "定时关机",
"dataType": {
"type": "bool",
"specs": {
"0": "关闭",
"1": "开启"
}
}
},
{
"identifier": "TimingOffTime",
"name": "定时关机时间",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}
]
}
]
}
\ No newline at end of file
{
"schema": "https://iot-ap.ikonke.com/model/product_3058.json",
"productType": "IRRC",
"profile": {
"heartbeat": "3000",
"productCode": "3058",
"productName": "红外遥控器二代Z3S"
},
"services": [{
"identifier": "set",
"name": "set",
"required": true,
"callType": "async",
"desc": "属性设置",
"method": "thing.service.property.set",
"inputData": [],
"outputData": []
}, {
"identifier": "get",
"name": "get",
"required": true,
"callType": "async",
"desc": "属性获取",
"method": "thing.service.property.get",
"inputData": [],
"outputData": []
}, {
"identifier": "sendCode",
"name": "发送红外码",
"required": false,
"callType": "async",
"method": "thing.service.sendCode",
"inputData": [{
"identifier": "ButtonId",
"name": "按键id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}],
"outputData": []
}, {
"identifier": "learnCode",
"name": "学习红外码",
"required": false,
"callType": "async",
"method": "thing.service.learnCode",
"inputData": [{
"identifier": "ButtonId",
"name": "按键id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}],
"outputData": []
}, {
"identifier": "saveCode",
"name": "保存红外码",
"required": false,
"callType": "async",
"method": "thing.service.saveCode",
"inputData": [{
"identifier": "ButtonId",
"name": "按键id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}],
"outputData": []
}, {
"identifier": "saveRC",
"name": "保存遥控器",
"required": false,
"callType": "async",
"method": "thing.service.saveRC",
"inputData": [{
"identifier": "rcs",
"name": "遥控器数组",
"dataType": {
"type": "array",
"specs": {
"size": "128",
"item": {
"type": "struct",
"specs": [{
"identifier": "ButtonId",
"name": "按键id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}, {
"identifier": "ButtonName",
"name": "按键名字",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}]
}
}
}
}],
"outputData": []
}, {
"identifier": "getRC",
"name": "获取遥控器",
"required": false,
"callType": "sync",
"method": "thing.service.getRC",
"inputData": [],
"outputData": [{
"identifier": "rcs",
"name": "遥控器数组",
"dataType": {
"type": "array",
"specs": {
"size": "128",
"item": {
"type": "struct",
"specs": [{
"identifier": "ButtonId",
"name": "按键id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}, {
"identifier": "ButtonName",
"name": "按键名字",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "ButtonIcon",
"name": "按键图标",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "ButtonStatus",
"name": "按键图标",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}]
}
}
}
}]
}, {
"identifier": "getBindCodeLib",
"name": "获取绑定的码库",
"required": false,
"callType": "sync",
"method": "thing.service.getBindCodeLib",
"inputData": [],
"outputData": [{
"identifier": "codeLibs",
"name": "码库数组",
"dataType": {
"type": "array",
"specs": {
"size": "128",
"item": {
"type": "struct",
"specs": [{
"identifier": "CodeLibId",
"name": "码库id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}, {
"identifier": "codeLibType",
"name": "码库类型",
"dataType": {
"type": "enum",
"specs": {
"0": "无码库",
"1": "手动学习码库",
"2": "云端码库",
"3": "私有码库"
}
}
}, {
"identifier": "CodeLibName",
"name": "码库名字",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceType",
"name": "设备类型",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceBrand",
"name": "设备设备品牌",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceModel",
"name": "设备型号",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "pCode",
"name": "匹配码",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}]
}
}
}
}]
}, {
"identifier": "getCodeLibButtons",
"name": "获取码库下的遥控器",
"required": false,
"callType": "sync",
"method": "thing.service.getCodeLibButtons",
"inputData": [{
"identifier": "CodeLibId",
"name": "码库id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}],
"outputData": [{
"identifier": "rcs",
"name": "遥控器数组",
"dataType": {
"type": "array",
"specs": {
"size": "128",
"item": {
"type": "struct",
"specs": [{
"identifier": "ButtonId",
"name": "按键id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}, {
"identifier": "ButtonName",
"name": "按键名字",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "ButtonIcon",
"name": "按键图标",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "ButtonStatus",
"name": "按键图标",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}]
}
}
}
}]
}, {
"identifier": "getLocalCodeLibs",
"name": "获取本地私有的码库",
"required": false,
"callType": "sync",
"method": "thing.service.getLocalCodeLibs",
"inputData": [{
"identifier": "DeviceType",
"name": "设备类型",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}],
"outputData": [{
"identifier": "codeLibs",
"name": "码库数组",
"dataType": {
"type": "array",
"specs": {
"size": "128",
"item": {
"type": "struct",
"specs": [{
"identifier": "CodeLibId",
"name": "码库id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}, {
"identifier": "codeLibType",
"name": "码库类型",
"dataType": {
"type": "enum",
"specs": {
"0": "无码库",
"1": "手动学习码库",
"2": "云端码库",
"3": "私有码库"
}
}
}, {
"identifier": "CodeLibName",
"name": "码库名字",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceType",
"name": "设备类型",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceBrand",
"name": "设备设备品牌",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceModel",
"name": "设备型号",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "pCode",
"name": "匹配码",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}]
}
}
}
}]
}, {
"identifier": "saveCodeLib",
"name": "保存本地私有的码库",
"required": false,
"callType": "sync",
"method": "thing.service.saveCodeLib",
"inputData": [{
"identifier": "codeLibType",
"name": "码库类型",
"dataType": {
"type": "enum",
"specs": {
"0": "无码库",
"1": "手动学习码库",
"2": "云端码库",
"3": "私有码库"
}
}
}, {
"identifier": "CodeLibName",
"name": "码库名字",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceType",
"name": "设备类型",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceBrand",
"name": "设备设备品牌",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceModel",
"name": "设备型号",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "pCode",
"name": "匹配码",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}],
"outputData": [{
"identifier": "CodeLibId",
"name": "码库id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}]
}, {
"identifier": "deleteCodeLib",
"name": "删除本地私有的码库",
"required": false,
"callType": "sync",
"method": "thing.service.deleteCodeLib",
"inputData": [{
"identifier": "CodeLibId",
"name": "码库id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}],
"outputData": []
}, {
"identifier": "matchCodeLib",
"name": "匹配码库",
"required": false,
"callType": "sync",
"method": "thing.service.matchCodeLib",
"inputData": [{
"identifier": "DeviceType",
"name": "设备类型",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}],
"outputData": [{
"identifier": "CodeLibId",
"name": "码库id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}, {
"identifier": "codeLibType",
"name": "码库类型",
"dataType": {
"type": "enum",
"specs": {
"0": "无码库",
"1": "手动学习码库",
"2": "云端码库",
"3": "私有码库"
}
}
}, {
"identifier": "CodeLibName",
"name": "码库名字",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceType",
"name": "设备类型",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceBrand",
"name": "设备设备品牌",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceModel",
"name": "设备型号",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "pCode",
"name": "匹配码",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}]
}, {
"identifier": "downloadLibCode",
"name": "下载红外码库到设备",
"required": false,
"callType": "sync",
"method": "thing.service.downloadLibCode",
"inputData": [{
"identifier": "CodeLibId",
"name": "码库id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}, {
"identifier": "codeLibType",
"name": "码库类型",
"dataType": {
"type": "enum",
"specs": {
"0": "无码库",
"1": "手动学习码库",
"2": "云端码库",
"3": "私有码库"
}
}
}, {
"identifier": "CodeLibName",
"name": "码库名字",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceType",
"name": "设备类型",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceBrand",
"name": "设备设备品牌",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceModel",
"name": "设备型号",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "pCode",
"name": "匹配码",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}],
"outputData": []
}, {
"identifier": "testLibCode",
"name": "测试红外码库",
"required": false,
"callType": "sync",
"method": "thing.service.testLibCode",
"inputData": [{
"identifier": "CodeLibId",
"name": "码库id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}, {
"identifier": "ButtonId",
"name": "按键id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}],
"outputData": []
}, {
"identifier": "resetBindCodeLib",
"name": "重置红外码库",
"required": false,
"callType": "sync",
"method": "thing.service.resetBindCodeLib",
"inputData": [],
"outputData": []
}],
"properties": [{
"identifier": "ButtonId",
"name": "按键id",
"accessMode": "r",
"required": true,
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}, {
"identifier": "ButtonName",
"name": "按键名字",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "ButtonIcon",
"name": "按键图标",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "ButtonStatus",
"name": "按键学习状态",
"accessMode": "rw",
"required": false,
"dataType": {
"type": "enum",
"specs": {
"0": "未学习",
"1": "已学习"
}
}
}, {
"identifier": "CodeLibId",
"name": "码库id",
"accessMode": "r",
"required": true,
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}, {
"identifier": "codeLibType",
"name": "码库类型",
"accessMode": "rw",
"required": false,
"dataType": {
"type": "enum",
"specs": {
"0": "无码库",
"1": "手动学习码库",
"2": "云端码库",
"3": "私有码库"
}
}
}, {
"identifier": "CodeLibName",
"name": "码库名字",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceType",
"name": "设备类型",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceBrand",
"name": "设备设备品牌",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceModel",
"name": "设备型号",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "pCode",
"name": "匹配码",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}],
"events": [{
"identifier": "post",
"name": "post",
"type": "info",
"required": true,
"desc": "属性上报",
"method": "thing.event.property.post",
"outputData": []
}, {
"identifier": "LearnCodeNotify",
"name": "学习码库通知消息",
"type": "info",
"required": true,
"method": "thing.event.LearnCodeNotify.post",
"outputData": [{
"identifier": "ButtonId",
"name": "按键id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}]
}, {
"identifier": "DownloadLibCodeNotify",
"name": "下载码库通知消息",
"type": "info",
"required": true,
"method": "thing.event.DownloadLibCodeNotify.post",
"outputData": [{
"identifier": "CodeLibId",
"name": "红外码库id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}]
}]
}
\ No newline at end of file
{
"schema": "https://iot-ap.ikonke.com/model/product_3059.json",
"productType": "IRRC",
"profile": {
"heartbeat": "3000",
"productCode": "3059",
"productName": "红外遥控器proZ3S"
},
"services": [{
"identifier": "set",
"name": "set",
"required": true,
"callType": "async",
"desc": "属性设置",
"method": "thing.service.property.set",
"inputData": [],
"outputData": []
}, {
"identifier": "get",
"name": "get",
"required": true,
"callType": "async",
"desc": "属性获取",
"method": "thing.service.property.get",
"inputData": [],
"outputData": []
}, {
"identifier": "sendCode",
"name": "发送红外码",
"required": false,
"callType": "async",
"method": "thing.service.sendCode",
"inputData": [{
"identifier": "ButtonId",
"name": "按键id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}],
"outputData": []
}, {
"identifier": "learnCode",
"name": "学习红外码",
"required": false,
"callType": "async",
"method": "thing.service.learnCode",
"inputData": [{
"identifier": "ButtonId",
"name": "按键id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}],
"outputData": []
}, {
"identifier": "saveCode",
"name": "保存红外码",
"required": false,
"callType": "async",
"method": "thing.service.saveCode",
"inputData": [{
"identifier": "ButtonId",
"name": "按键id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}],
"outputData": []
}, {
"identifier": "saveRC",
"name": "保存遥控器",
"required": false,
"callType": "async",
"method": "thing.service.saveRC",
"inputData": [{
"identifier": "rcs",
"name": "遥控器数组",
"dataType": {
"type": "array",
"specs": {
"size": "128",
"item": {
"type": "struct",
"specs": [{
"identifier": "ButtonId",
"name": "按键id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}, {
"identifier": "ButtonName",
"name": "按键名字",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}]
}
}
}
}],
"outputData": []
}, {
"identifier": "getRC",
"name": "获取遥控器",
"required": false,
"callType": "sync",
"method": "thing.service.getRC",
"inputData": [],
"outputData": [{
"identifier": "rcs",
"name": "遥控器数组",
"dataType": {
"type": "array",
"specs": {
"size": "128",
"item": {
"type": "struct",
"specs": [{
"identifier": "ButtonId",
"name": "按键id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}, {
"identifier": "ButtonName",
"name": "按键名字",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "ButtonIcon",
"name": "按键图标",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "ButtonStatus",
"name": "按键图标",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}]
}
}
}
}]
}, {
"identifier": "getBindCodeLib",
"name": "获取绑定的码库",
"required": false,
"callType": "sync",
"method": "thing.service.getBindCodeLib",
"inputData": [],
"outputData": [{
"identifier": "codeLibs",
"name": "码库数组",
"dataType": {
"type": "array",
"specs": {
"size": "128",
"item": {
"type": "struct",
"specs": [{
"identifier": "CodeLibId",
"name": "码库id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}, {
"identifier": "codeLibType",
"name": "码库类型",
"dataType": {
"type": "enum",
"specs": {
"0": "无码库",
"1": "手动学习码库",
"2": "云端码库",
"3": "私有码库"
}
}
}, {
"identifier": "CodeLibName",
"name": "码库名字",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceType",
"name": "设备类型",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceBrand",
"name": "设备设备品牌",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceModel",
"name": "设备型号",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "pCode",
"name": "匹配码",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}]
}
}
}
}]
}, {
"identifier": "getCodeLibButtons",
"name": "获取码库下的遥控器",
"required": false,
"callType": "sync",
"method": "thing.service.getCodeLibButtons",
"inputData": [{
"identifier": "CodeLibId",
"name": "码库id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}],
"outputData": [{
"identifier": "rcs",
"name": "遥控器数组",
"dataType": {
"type": "array",
"specs": {
"size": "128",
"item": {
"type": "struct",
"specs": [{
"identifier": "ButtonId",
"name": "按键id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}, {
"identifier": "ButtonName",
"name": "按键名字",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "ButtonIcon",
"name": "按键图标",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "ButtonStatus",
"name": "按键图标",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}]
}
}
}
}]
}, {
"identifier": "getLocalCodeLibs",
"name": "获取本地私有的码库",
"required": false,
"callType": "sync",
"method": "thing.service.getLocalCodeLibs",
"inputData": [{
"identifier": "DeviceType",
"name": "设备类型",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}],
"outputData": [{
"identifier": "codeLibs",
"name": "码库数组",
"dataType": {
"type": "array",
"specs": {
"size": "128",
"item": {
"type": "struct",
"specs": [{
"identifier": "CodeLibId",
"name": "码库id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}, {
"identifier": "codeLibType",
"name": "码库类型",
"dataType": {
"type": "enum",
"specs": {
"0": "无码库",
"1": "手动学习码库",
"2": "云端码库",
"3": "私有码库"
}
}
}, {
"identifier": "CodeLibName",
"name": "码库名字",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceType",
"name": "设备类型",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceBrand",
"name": "设备设备品牌",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceModel",
"name": "设备型号",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "pCode",
"name": "匹配码",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}]
}
}
}
}]
}, {
"identifier": "saveCodeLib",
"name": "保存本地私有的码库",
"required": false,
"callType": "sync",
"method": "thing.service.saveCodeLib",
"inputData": [{
"identifier": "codeLibType",
"name": "码库类型",
"dataType": {
"type": "enum",
"specs": {
"0": "无码库",
"1": "手动学习码库",
"2": "云端码库",
"3": "私有码库"
}
}
}, {
"identifier": "CodeLibName",
"name": "码库名字",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceType",
"name": "设备类型",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceBrand",
"name": "设备设备品牌",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceModel",
"name": "设备型号",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "pCode",
"name": "匹配码",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}],
"outputData": [{
"identifier": "CodeLibId",
"name": "码库id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}]
}, {
"identifier": "deleteCodeLib",
"name": "删除本地私有的码库",
"required": false,
"callType": "sync",
"method": "thing.service.deleteCodeLib",
"inputData": [{
"identifier": "CodeLibId",
"name": "码库id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}],
"outputData": []
}, {
"identifier": "matchCodeLib",
"name": "匹配码库",
"required": false,
"callType": "sync",
"method": "thing.service.matchCodeLib",
"inputData": [{
"identifier": "DeviceType",
"name": "设备类型",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}],
"outputData": [{
"identifier": "CodeLibId",
"name": "码库id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}, {
"identifier": "codeLibType",
"name": "码库类型",
"dataType": {
"type": "enum",
"specs": {
"0": "无码库",
"1": "手动学习码库",
"2": "云端码库",
"3": "私有码库"
}
}
}, {
"identifier": "CodeLibName",
"name": "码库名字",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceType",
"name": "设备类型",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceBrand",
"name": "设备设备品牌",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceModel",
"name": "设备型号",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "pCode",
"name": "匹配码",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}]
}, {
"identifier": "downloadLibCode",
"name": "下载红外码库到设备",
"required": false,
"callType": "sync",
"method": "thing.service.downloadLibCode",
"inputData": [{
"identifier": "CodeLibId",
"name": "码库id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}, {
"identifier": "codeLibType",
"name": "码库类型",
"dataType": {
"type": "enum",
"specs": {
"0": "无码库",
"1": "手动学习码库",
"2": "云端码库",
"3": "私有码库"
}
}
}, {
"identifier": "CodeLibName",
"name": "码库名字",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceType",
"name": "设备类型",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceBrand",
"name": "设备设备品牌",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceModel",
"name": "设备型号",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "pCode",
"name": "匹配码",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}],
"outputData": []
}, {
"identifier": "testLibCode",
"name": "测试红外码库",
"required": false,
"callType": "sync",
"method": "thing.service.testLibCode",
"inputData": [{
"identifier": "CodeLibId",
"name": "码库id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}, {
"identifier": "ButtonId",
"name": "按键id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}],
"outputData": []
}, {
"identifier": "resetBindCodeLib",
"name": "重置红外码库",
"required": false,
"callType": "sync",
"method": "thing.service.resetBindCodeLib",
"inputData": [],
"outputData": []
}],
"properties": [{
"identifier": "ButtonId",
"name": "按键id",
"accessMode": "r",
"required": true,
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}, {
"identifier": "ButtonName",
"name": "按键名字",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "ButtonIcon",
"name": "按键图标",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "ButtonStatus",
"name": "按键学习状态",
"accessMode": "rw",
"required": false,
"dataType": {
"type": "enum",
"specs": {
"0": "未学习",
"1": "已学习"
}
}
}, {
"identifier": "CodeLibId",
"name": "码库id",
"accessMode": "r",
"required": true,
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}, {
"identifier": "codeLibType",
"name": "码库类型",
"accessMode": "rw",
"required": false,
"dataType": {
"type": "enum",
"specs": {
"0": "无码库",
"1": "手动学习码库",
"2": "云端码库",
"3": "私有码库"
}
}
}, {
"identifier": "CodeLibName",
"name": "码库名字",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceType",
"name": "设备类型",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceBrand",
"name": "设备设备品牌",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceModel",
"name": "设备型号",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "pCode",
"name": "匹配码",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}],
"events": [{
"identifier": "post",
"name": "post",
"type": "info",
"required": true,
"desc": "属性上报",
"method": "thing.event.property.post",
"outputData": []
}, {
"identifier": "LearnCodeNotify",
"name": "学习码库通知消息",
"type": "info",
"required": true,
"method": "thing.event.LearnCodeNotify.post",
"outputData": [{
"identifier": "ButtonId",
"name": "按键id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}]
}, {
"identifier": "DownloadLibCodeNotify",
"name": "下载码库通知消息",
"type": "info",
"required": true,
"method": "thing.event.DownloadLibCodeNotify.post",
"outputData": [{
"identifier": "CodeLibId",
"name": "红外码库id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}]
}]
}
\ No newline at end of file
......@@ -81,8 +81,8 @@
}
},
{
"identifier": "TimingOnEnable",
"name": "定时机",
"identifier": "TimingOffEnable",
"name": "定时机",
"dataType": {
"type": "bool",
"specs": {
......@@ -92,8 +92,8 @@
}
},
{
"identifier": "TimingOnTime",
"name": "定时机时间",
"identifier": "TimingOffTime",
"name": "定时机时间",
"dataType": {
"type": "text",
"specs": {
......@@ -102,25 +102,15 @@
}
},
{
"identifier": "TimingOffEnable",
"name": "定时关机",
"identifier": "ChildLockState",
"name": "童锁",
"dataType": {
"type": "bool",
"type": "enum",
"specs": {
"0": "关闭",
"1": "开启"
}
}
},
{
"identifier": "TimingOffTime",
"name": "定时关机时间",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}
],
"outputData": []
......@@ -139,10 +129,9 @@
"WindSpeed",
"WorkMode",
"CurrentTemperature",
"TimingOnEnable",
"timingOnTime",
"TimingOffEnable",
"TimingOffTime"
"TimingOffTime",
"ChildLockState"
],
"outputData": [
{
......@@ -225,8 +214,8 @@
}
},
{
"identifier": "TimingOnEnable",
"name": "定时机",
"identifier": "TimingOffEnable",
"name": "定时机",
"dataType": {
"type": "bool",
"specs": {
......@@ -236,8 +225,8 @@
}
},
{
"identifier": "TimingOnTime",
"name": "定时机时间",
"identifier": "TimingOffTime",
"name": "定时机时间",
"dataType": {
"type": "text",
"specs": {
......@@ -246,25 +235,15 @@
}
},
{
"identifier": "TimingOffEnable",
"name": "定时关机",
"identifier": "ChildLockState",
"name": "童锁",
"dataType": {
"type": "bool",
"type": "enum",
"specs": {
"0": "关闭",
"1": "开启"
}
}
},
{
"identifier": "TimingOffTime",
"name": "定时关机时间",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}
]
}
......@@ -375,24 +354,12 @@
}
},
{
"identifier": "TimingOnTime",
"name": "定时开机时间",
"identifier": "ChildLockState",
"name": "童锁",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
},
{
"identifier": "TimingOffEnable",
"name": "定时关机",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "bool",
"type": "enum",
"specs": {
"0": "关闭",
"1": "开启"
......@@ -501,26 +468,16 @@
}
},
{
"identifier": "TimingOnEnable",
"name": "定时开机",
"identifier": "ChildLockState",
"name": "童锁",
"dataType": {
"type": "bool",
"type": "enum",
"specs": {
"0": "关闭",
"1": "开启"
}
}
},
{
"identifier": "TimingOnTime",
"name": "定时开机时间",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
},
{
"identifier": "TimingOffEnable",
"name": "定时关机",
......
{
"schema": "https://iot-ap.ikonke.com/model/product_44.json",
"productType": "IRRC",
"profile": {
"heartbeat": "3000",
"productCode": "44",
"productName": "kit红外遥控器"
},
"services": [{
"identifier": "set",
"name": "set",
"required": true,
"callType": "async",
"desc": "属性设置",
"method": "thing.service.property.set",
"inputData": [],
"outputData": []
}, {
"identifier": "get",
"name": "get",
"required": true,
"callType": "async",
"desc": "属性获取",
"method": "thing.service.property.get",
"inputData": [],
"outputData": []
}, {
"identifier": "sendCode",
"name": "发送红外码",
"required": false,
"callType": "async",
"method": "thing.service.sendCode",
"inputData": [{
"identifier": "ButtonId",
"name": "按键id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}],
"outputData": []
}, {
"identifier": "learnCode",
"name": "学习红外码",
"required": false,
"callType": "async",
"method": "thing.service.learnCode",
"inputData": [{
"identifier": "ButtonId",
"name": "按键id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}],
"outputData": []
}, {
"identifier": "saveCode",
"name": "保存红外码",
"required": false,
"callType": "async",
"method": "thing.service.saveCode",
"inputData": [{
"identifier": "ButtonId",
"name": "按键id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}],
"outputData": []
}, {
"identifier": "saveRC",
"name": "保存遥控器",
"required": false,
"callType": "async",
"method": "thing.service.saveRC",
"inputData": [{
"identifier": "rcs",
"name": "遥控器数组",
"dataType": {
"type": "array",
"specs": {
"size": "128",
"item": {
"type": "struct",
"specs": [{
"identifier": "ButtonId",
"name": "按键id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}, {
"identifier": "ButtonName",
"name": "按键名字",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}]
}
}
}
}],
"outputData": []
}, {
"identifier": "getRC",
"name": "获取遥控器",
"required": false,
"callType": "sync",
"method": "thing.service.getRC",
"inputData": [],
"outputData": [{
"identifier": "rcs",
"name": "遥控器数组",
"dataType": {
"type": "array",
"specs": {
"size": "128",
"item": {
"type": "struct",
"specs": [{
"identifier": "ButtonId",
"name": "按键id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}, {
"identifier": "ButtonName",
"name": "按键名字",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "ButtonIcon",
"name": "按键图标",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "ButtonStatus",
"name": "按键图标",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}]
}
}
}
}]
}, {
"identifier": "getBindCodeLib",
"name": "获取绑定的码库",
"required": false,
"callType": "sync",
"method": "thing.service.getBindCodeLib",
"inputData": [],
"outputData": [{
"identifier": "codeLibs",
"name": "码库数组",
"dataType": {
"type": "array",
"specs": {
"size": "128",
"item": {
"type": "struct",
"specs": [{
"identifier": "CodeLibId",
"name": "码库id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}, {
"identifier": "codeLibType",
"name": "码库类型",
"dataType": {
"type": "enum",
"specs": {
"0": "无码库",
"1": "手动学习码库",
"2": "云端码库",
"3": "私有码库"
}
}
}, {
"identifier": "CodeLibName",
"name": "码库名字",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceType",
"name": "设备类型",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceBrand",
"name": "设备设备品牌",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceModel",
"name": "设备型号",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "pCode",
"name": "匹配码",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}]
}
}
}
}]
}, {
"identifier": "getCodeLibButtons",
"name": "获取码库下的遥控器",
"required": false,
"callType": "sync",
"method": "thing.service.getCodeLibButtons",
"inputData": [{
"identifier": "CodeLibId",
"name": "码库id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}],
"outputData": [{
"identifier": "rcs",
"name": "遥控器数组",
"dataType": {
"type": "array",
"specs": {
"size": "128",
"item": {
"type": "struct",
"specs": [{
"identifier": "ButtonId",
"name": "按键id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}, {
"identifier": "ButtonName",
"name": "按键名字",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "ButtonIcon",
"name": "按键图标",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "ButtonStatus",
"name": "按键图标",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}]
}
}
}
}]
}, {
"identifier": "getLocalCodeLibs",
"name": "获取本地私有的码库",
"required": false,
"callType": "sync",
"method": "thing.service.getLocalCodeLibs",
"inputData": [{
"identifier": "DeviceType",
"name": "设备类型",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}],
"outputData": [{
"identifier": "codeLibs",
"name": "码库数组",
"dataType": {
"type": "array",
"specs": {
"size": "128",
"item": {
"type": "struct",
"specs": [{
"identifier": "CodeLibId",
"name": "码库id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}, {
"identifier": "codeLibType",
"name": "码库类型",
"dataType": {
"type": "enum",
"specs": {
"0": "无码库",
"1": "手动学习码库",
"2": "云端码库",
"3": "私有码库"
}
}
}, {
"identifier": "CodeLibName",
"name": "码库名字",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceType",
"name": "设备类型",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceBrand",
"name": "设备设备品牌",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceModel",
"name": "设备型号",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "pCode",
"name": "匹配码",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}]
}
}
}
}]
}, {
"identifier": "saveCodeLib",
"name": "保存本地私有的码库",
"required": false,
"callType": "sync",
"method": "thing.service.saveCodeLib",
"inputData": [{
"identifier": "codeLibType",
"name": "码库类型",
"dataType": {
"type": "enum",
"specs": {
"0": "无码库",
"1": "手动学习码库",
"2": "云端码库",
"3": "私有码库"
}
}
}, {
"identifier": "CodeLibName",
"name": "码库名字",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceType",
"name": "设备类型",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceBrand",
"name": "设备设备品牌",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceModel",
"name": "设备型号",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "pCode",
"name": "匹配码",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}],
"outputData": [{
"identifier": "CodeLibId",
"name": "码库id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}]
}, {
"identifier": "deleteCodeLib",
"name": "删除本地私有的码库",
"required": false,
"callType": "sync",
"method": "thing.service.deleteCodeLib",
"inputData": [{
"identifier": "CodeLibId",
"name": "码库id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}],
"outputData": []
}, {
"identifier": "matchCodeLib",
"name": "匹配码库",
"required": false,
"callType": "sync",
"method": "thing.service.matchCodeLib",
"inputData": [{
"identifier": "DeviceType",
"name": "设备类型",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}],
"outputData": [{
"identifier": "CodeLibId",
"name": "码库id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}, {
"identifier": "codeLibType",
"name": "码库类型",
"dataType": {
"type": "enum",
"specs": {
"0": "无码库",
"1": "手动学习码库",
"2": "云端码库",
"3": "私有码库"
}
}
}, {
"identifier": "CodeLibName",
"name": "码库名字",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceType",
"name": "设备类型",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceBrand",
"name": "设备设备品牌",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceModel",
"name": "设备型号",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "pCode",
"name": "匹配码",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}]
}, {
"identifier": "downloadLibCode",
"name": "下载红外码库到设备",
"required": false,
"callType": "sync",
"method": "thing.service.downloadLibCode",
"inputData": [{
"identifier": "CodeLibId",
"name": "码库id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}, {
"identifier": "codeLibType",
"name": "码库类型",
"dataType": {
"type": "enum",
"specs": {
"0": "无码库",
"1": "手动学习码库",
"2": "云端码库",
"3": "私有码库"
}
}
}, {
"identifier": "CodeLibName",
"name": "码库名字",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceType",
"name": "设备类型",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceBrand",
"name": "设备设备品牌",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceModel",
"name": "设备型号",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "pCode",
"name": "匹配码",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}],
"outputData": []
}, {
"identifier": "testLibCode",
"name": "测试红外码库",
"required": false,
"callType": "sync",
"method": "thing.service.testLibCode",
"inputData": [{
"identifier": "CodeLibId",
"name": "码库id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}, {
"identifier": "ButtonId",
"name": "按键id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}],
"outputData": []
}, {
"identifier": "resetBindCodeLib",
"name": "重置红外码库",
"required": false,
"callType": "sync",
"method": "thing.service.resetBindCodeLib",
"inputData": [],
"outputData": []
}],
"properties": [{
"identifier": "ButtonId",
"name": "按键id",
"accessMode": "r",
"required": true,
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}, {
"identifier": "ButtonName",
"name": "按键名字",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "ButtonIcon",
"name": "按键图标",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "ButtonStatus",
"name": "按键学习状态",
"accessMode": "rw",
"required": false,
"dataType": {
"type": "enum",
"specs": {
"0": "未学习",
"1": "已学习"
}
}
}, {
"identifier": "CodeLibId",
"name": "码库id",
"accessMode": "r",
"required": true,
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}, {
"identifier": "codeLibType",
"name": "码库类型",
"accessMode": "rw",
"required": false,
"dataType": {
"type": "enum",
"specs": {
"0": "无码库",
"1": "手动学习码库",
"2": "云端码库",
"3": "私有码库"
}
}
}, {
"identifier": "CodeLibName",
"name": "码库名字",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceType",
"name": "设备类型",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceBrand",
"name": "设备设备品牌",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "DeviceModel",
"name": "设备型号",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "pCode",
"name": "匹配码",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}],
"events": [{
"identifier": "post",
"name": "post",
"type": "info",
"required": true,
"desc": "属性上报",
"method": "thing.event.property.post",
"outputData": []
}, {
"identifier": "LearnCodeNotify",
"name": "学习码库通知消息",
"type": "info",
"required": true,
"method": "thing.event.LearnCodeNotify.post",
"outputData": [{
"identifier": "ButtonId",
"name": "按键id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}]
}, {
"identifier": "DownloadLibCodeNotify",
"name": "下载码库通知消息",
"type": "info",
"required": true,
"method": "thing.event.DownloadLibCodeNotify.post",
"outputData": [{
"identifier": "CodeLibId",
"name": "红外码库id",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "1000"
}
}
}]
}]
}
\ No newline at end of file
{
"schema": "https://iot-ap.ikonke.com/model/product_74.json",
"productType": "sensor",
"profile": {
"heartbeat": "3000",
"productCode": "74",
"productName": "SOS紧急按钮"
},
"services": [{
"outputData": [{
"identifier": "SosState",
"name": "紧急按钮状态",
"dataType": {
"type": "enum",
"specs": {
"0": "关闭",
"1": "打开"
}
}
}, {
"identifier": "Battery",
"name": "电池电量",
"dataType": {
"type": "double",
"specs": {
"min": "0",
"max": "100",
"unit": "%",
"unitName": "百分比",
"step": "0.01"
}
}
}, {
"identifier": "DismantleState",
"name": "拆卸状态",
"dataType": {
"type": "enum",
"specs": {
"0": "正常",
"1": "被拆卸"
}
}
}],
"identifier": "get",
"inputData": ["SosState", "Battery", "DismantleState"],
"method": "thing.service.property.get",
"name": "get",
"required": true,
"callType": "async",
"desc": "属性获取"
}],
"properties": [{
"identifier": "SosState",
"name": "门磁状态",
"accessMode": "r",
"required": true,
"dataType": {
"type": "enum",
"specs": {
"0": "关闭",
"1": "打开"
}
}
}, {
"identifier": "Battery",
"name": "电池电量",
"accessMode": "r",
"required": false,
"dataType": {
"type": "double",
"specs": {
"min": "0",
"max": "100",
"unit": "%",
"unitName": "百分比",
"step": "0.01"
}
}
}, {
"identifier": "DismantleState",
"name": "拆卸状态",
"accessMode": "r",
"required": false,
"dataType": {
"type": "enum",
"specs": {
"0": "正常",
"1": "被拆卸"
}
}
}],
"events": [{
"outputData": [{
"identifier": "SosState",
"name": "门磁状态",
"dataType": {
"type": "enum",
"specs": {
"0": "关闭",
"1": "打开"
}
}
}, {
"identifier": "Battery",
"name": "电池电量",
"dataType": {
"type": "double",
"specs": {
"min": "0",
"max": "100",
"unit": "%",
"unitName": "百分比",
"step": "0.01"
}
}
}, {
"identifier": "DismantleState",
"name": "拆卸状态",
"dataType": {
"type": "enum",
"specs": {
"0": "正常",
"1": "被拆卸"
}
}
}],
"identifier": "property",
"method": "thing.event.property.post",
"name": "property",
"type": "info",
"required": true,
"desc": "属性上报"
}, {
"outputData": [{
"identifier": "SosState",
"name": "门磁状态",
"dataType": {
"type": "enum",
"specs": {
"0": "关闭",
"1": "打开"
}
}
}],
"identifier": "sosAlarm",
"method": "thing.event.sosAlarm.post",
"name": "sosAlarm",
"type": "alarm",
"required": true,
"desc": "紧急按钮告警"
}, {
"outputData": [{
"identifier": "Battery",
"name": "电池电量",
"dataType": {
"type": "double",
"specs": {
"min": "0",
"max": "100",
"unit": "%",
"unitName": "百分比",
"step": "0.01"
}
}
}],
"identifier": "BatteryAlarm",
"method": "thing.event.BatteryAlarm.post",
"name": "BatteryAlarm",
"type": "alarm",
"required": true,
"desc": "低电量告警"
}, {
"identifier": "TamperAlarm",
"name": "防撬报警",
"type": "alert",
"required": true,
"method": "thing.event.TamperAlarm.post",
"outputData": [{
"identifier": "DismantleState",
"name": "拆卸状态",
"dataType": {
"type": "enum",
"specs": {
"0": "正常",
"1": "被拆卸"
}
}
}]
}]
}
\ No newline at end of file
{
"schema": "https://iot-ap.ikonke.com/model/product_76.json",
"productType": "sensor",
"profile": {
"heartbeat": "3000",
"productCode": "76",
"productName": "KPL水浸"
},
"services": [{
"outputData": [{
"identifier": "WaterSensorState",
"name": "水浸检测状态",
"dataType": {
"type": "enum",
"specs": {
"0": "正常",
"1": "有水浸入"
}
}
}, {
"identifier": "Battery",
"name": "电池电量",
"dataType": {
"type": "double",
"specs": {
"min": "0",
"max": "100",
"unit": "%",
"unitName": "百分比",
"step": "0.01"
}
}
}, {
"identifier": "DismantleState",
"name": "拆卸状态",
"dataType": {
"type": "enum",
"specs": {
"0": "正常",
"1": "被拆卸"
}
}
}],
"identifier": "get",
"inputData": ["WaterSensorState", "Battery", "DismantleState"],
"method": "thing.service.property.get",
"name": "get",
"required": true,
"callType": "async",
"desc": "属性获取"
}],
"properties": [{
"identifier": "WaterSensorState",
"name": "水浸检测状态",
"accessMode": "r",
"required": true,
"dataType": {
"type": "enum",
"specs": {
"0": "正常",
"1": "有水浸入"
}
}
}, {
"identifier": "Battery",
"name": "电池电量",
"accessMode": "r",
"required": false,
"dataType": {
"type": "double",
"specs": {
"min": "0",
"max": "100",
"unit": "%",
"unitName": "百分比",
"step": "0.01"
}
}
}, {
"identifier": "DismantleState",
"name": "拆卸状态",
"accessMode": "r",
"required": false,
"dataType": {
"type": "enum",
"specs": {
"0": "正常",
"1": "被拆卸"
}
}
}],
"events": [{
"outputData": [{
"identifier": "WaterSensorState",
"name": "水浸检测状态",
"dataType": {
"type": "enum",
"specs": {
"0": "正常",
"1": "有水浸入"
}
}
}, {
"identifier": "Battery",
"name": "电池电量",
"dataType": {
"type": "double",
"specs": {
"min": "0",
"max": "100",
"unit": "%",
"unitName": "百分比",
"step": "0.01"
}
}
}, {
"identifier": "DismantleState",
"name": "拆卸状态",
"dataType": {
"type": "enum",
"specs": {
"0": "正常",
"1": "被拆卸"
}
}
}],
"identifier": "property",
"method": "thing.event.property.post",
"name": "property",
"type": "info",
"required": true,
"desc": "属性上报"
}, {
"outputData": [{
"identifier": "WaterSensorState",
"name": "水浸检测状态",
"dataType": {
"type": "enum",
"specs": {
"0": "正常",
"1": "有水浸入"
}
}
}],
"identifier": "waterAlarm",
"method": "thing.event.waterAlarm.post",
"name": "waterAlarm",
"type": "alarm",
"required": true,
"desc": "水浸告警"
}, {
"outputData": [{
"identifier": "Battery",
"name": "电池电量",
"dataType": {
"type": "double",
"specs": {
"min": "0",
"max": "100",
"unit": "%",
"unitName": "百分比",
"step": "0.01"
}
}
}],
"identifier": "BatteryAlarm",
"method": "thing.event.BatteryAlarm.post",
"name": "BatteryAlarm",
"type": "alarm",
"required": true,
"desc": "低电量告警"
}, {
"identifier": "TamperAlarm",
"name": "防撬报警",
"type": "alert",
"required": true,
"method": "thing.event.TamperAlarm.post",
"outputData": [{
"identifier": "DismantleState",
"name": "拆卸状态",
"dataType": {
"type": "enum",
"specs": {
"0": "正常",
"1": "被拆卸"
}
}
}]
}]
}
\ No newline at end of file
{
"schema": "https://iot-ap.ikonke.com/model/product_77.json",
"productType": "sensor",
"profile": {
"heartbeat": "3000",
"productCode": "77",
"productName": "人体传感器"
},
"services": [{
"outputData": [{
"identifier": "MotionAlarmState",
"name": "红外检测状态",
"dataType": {
"type": "enum",
"specs": {
"0": "无人",
"1": "有人"
}
}
}, {
"identifier": "Battery",
"name": "电池电量",
"dataType": {
"type": "double",
"specs": {
"min": "0",
"max": "100",
"unit": "%",
"unitName": "百分比",
"step": "0.01"
}
}
}, {
"identifier": "DismantleState",
"name": "拆卸状态",
"dataType": {
"type": "enum",
"specs": {
"0": "正常",
"1": "被拆卸"
}
}
}],
"identifier": "get",
"inputData": ["MotionAlarmState", "Battery", "DismantleState"],
"method": "thing.service.property.get",
"name": "get",
"required": true,
"callType": "async",
"desc": "属性获取"
}],
"properties": [{
"identifier": "MotionAlarmState",
"name": "红外检测状态",
"accessMode": "r",
"required": true,
"dataType": {
"type": "enum",
"specs": {
"0": "无人",
"1": "有人"
}
}
}, {
"identifier": "Battery",
"name": "电池电量",
"accessMode": "r",
"required": false,
"dataType": {
"type": "double",
"specs": {
"min": "0",
"max": "100",
"unit": "%",
"unitName": "百分比",
"step": "0.01"
}
}
}, {
"identifier": "DismantleState",
"name": "拆卸状态",
"accessMode": "r",
"required": false,
"dataType": {
"type": "enum",
"specs": {
"0": "正常",
"1": "被拆卸"
}
}
}],
"events": [{
"outputData": [{
"identifier": "MotionAlarmState",
"name": "红外检测状态",
"dataType": {
"type": "enum",
"specs": {
"0": "无人",
"1": "有人"
}
}
}, {
"identifier": "Battery",
"name": "电池电量",
"dataType": {
"type": "double",
"specs": {
"min": "0",
"max": "100",
"unit": "%",
"unitName": "百分比",
"step": "0.01"
}
}
}, {
"identifier": "DismantleState",
"name": "拆卸状态",
"dataType": {
"type": "enum",
"specs": {
"0": "正常",
"1": "被拆卸"
}
}
}],
"identifier": "property",
"method": "thing.event.property.post",
"name": "property",
"type": "info",
"required": true,
"desc": "属性上报"
}, {
"outputData": [{
"identifier": "MotionAlarmState",
"name": "红外检测状态",
"dataType": {
"type": "enum",
"specs": {
"0": "无人",
"1": "有人"
}
}
}],
"identifier": "motionAlarm",
"method": "thing.event.motionAlarm.post",
"name": "motionAlarm",
"type": "alarm",
"required": true,
"desc": "红外检测告警"
}, {
"outputData": [{
"identifier": "Battery",
"name": "电池电量",
"dataType": {
"type": "double",
"specs": {
"min": "0",
"max": "100",
"unit": "%",
"unitName": "百分比",
"step": "0.01"
}
}
}],
"identifier": "BatteryAlarm",
"method": "thing.event.BatteryAlarm.post",
"name": "BatteryAlarm",
"type": "alarm",
"required": true,
"desc": "低电量告警"
}, {
"identifier": "TamperAlarm",
"name": "防撬报警",
"type": "alert",
"required": true,
"method": "thing.event.TamperAlarm.post",
"outputData": [{
"identifier": "DismantleState",
"name": "拆卸状态",
"dataType": {
"type": "enum",
"specs": {
"0": "正常",
"1": "被拆卸"
}
}
}]
}]
}
\ No newline at end of file
{
"schema": "https://iot.ikonke.com/schema.json",
"schema": "https://iot-ap.ikonke.com/model/product_83.json",
"productType": "switch",
"profile": {
"productCode": "83",
"heartbeat": "3000",
"productCode": "84",
"productName": "一路零火面板(肖邦系列)"
},
"services": [{
......@@ -43,6 +44,24 @@
"required": true,
"callType": "async",
"desc": "属性获取"
}, {
"outputData": [],
"identifier": "negativeProperty",
"inputData": [{
"identifier": "PropertyName",
"dataType": {
"specs": {
"length": "50"
},
"type": "text"
},
"name": "属性名字"
}],
"method": "thing.service.negativeProperty",
"name": "negativeProperty",
"required": true,
"callType": "async",
"desc": "属性值取反"
}],
"properties": [{
"identifier": "PowerSwitch",
......
{
"schema": "https://iot.ikonke.com/schema.json",
"schema": "https://iot-ap.ikonke.com/model/product_84.json",
"productType": "switch",
"profile": {
"heartbeat": "3000",
"productCode": "84",
"productName": "二路零火面板(肖邦系列)"
},
......@@ -9,7 +10,7 @@
"outputData": [],
"identifier": "set",
"inputData": [{
"va": "PowerSwitch_1",
"identifier": "PowerSwitch_1",
"dataType": {
"specs": {
"0": "关闭",
......@@ -63,6 +64,24 @@
"required": true,
"callType": "async",
"desc": "属性获取"
}, {
"outputData": [],
"identifier": "negativeProperty",
"inputData": [{
"identifier": "PropertyName",
"dataType": {
"specs": {
"length": "50"
},
"type": "text"
},
"name": "属性名字"
}],
"method": "thing.service.negativeProperty",
"name": "negativeProperty",
"required": true,
"callType": "async",
"desc": "属性值取反"
}],
"properties": [{
"identifier": "PowerSwitch_1",
......
{
"schema": "https://iot.ikonke.com/schema.json",
"schema": "https://iot-ap.ikonke.com/model/product_85.json",
"productType": "switch",
"profile": {
"heartbeat": "3000",
"productCode": "85",
"productName": "三路零火面板(肖邦系列)"
},
......@@ -83,6 +84,24 @@
"required": true,
"callType": "async",
"desc": "属性获取"
}, {
"outputData": [],
"identifier": "negativeProperty",
"inputData": [{
"identifier": "PropertyName",
"dataType": {
"specs": {
"length": "50"
},
"type": "text"
},
"name": "属性名字"
}],
"method": "thing.service.negativeProperty",
"name": "negativeProperty",
"required": true,
"callType": "async",
"desc": "属性值取反"
}],
"properties": [{
"identifier": "PowerSwitch_1",
......
{
"schema": "https://iot.ikonke.com/schema.json",
"productType": "switch",
"profile": {
"productCode": "85",
"productName": "三路零火面板(肖邦系列)"
},
"services": [{
"outputData": [],
"identifier": "set",
"inputData": [{
"identifier": "PowerSwitch_1",
"dataType": {
"specs": {
"0": "关闭",
"1": "打开"
},
"type": "bool"
},
"name": "电源开关1路"
}, {
"identifier": "PowerSwitch_2",
"dataType": {
"specs": {
"0": "关闭",
"1": "打开"
},
"type": "bool"
},
"name": "电源开关2路"
}, {
"identifier": "PowerSwitch_3",
"dataType": {
"specs": {
"0": "关闭",
"1": "打开"
},
"type": "bool"
},
"name": "电源开关3路"
}],
"method": "thing.service.property.set",
"name": "set",
"required": true,
"callType": "async",
"desc": "属性设置"
}, {
"outputData": [{
"identifier": "PowerSwitch_1",
"dataType": {
"specs": {
"0": "关闭",
"1": "打开"
},
"type": "bool"
},
"name": "电源开关1路"
}, {
"identifier": "PowerSwitch_2",
"dataType": {
"specs": {
"0": "关闭",
"1": "打开"
},
"type": "bool"
},
"name": "电源开关2路"
}, {
"identifier": "PowerSwitch_3",
"dataType": {
"specs": {
"0": "关闭",
"1": "打开"
},
"type": "bool"
},
"name": "电源开关3路"
}],
"identifier": "get",
"inputData": ["PowerSwitch_1", "PowerSwitch_2", "PowerSwitch_3"],
"method": "thing.service.property.get",
"name": "get",
"required": true,
"callType": "async",
"desc": "属性获取"
}],
"properties": [{
"identifier": "PowerSwitch_1",
"dataType": {
"specs": {
"0": "关闭",
"1": "打开"
},
"type": "bool"
},
"name": "电源开关1路",
"accessMode": "rw",
"required": true
}, {
"identifier": "PowerSwitch_2",
"dataType": {
"specs": {
"0": "关闭",
"1": "打开"
},
"type": "bool"
},
"name": "电源开关2路",
"accessMode": "rw",
"required": true
}, {
"identifier": "PowerSwitch_3",
"dataType": {
"specs": {
"0": "关闭",
"1": "打开"
},
"type": "bool"
},
"name": "电源开关3路",
"accessMode": "rw",
"required": true
}],
"events": [{
"outputData": [{
"identifier": "PowerSwitch_1",
"dataType": {
"specs": {
"0": "关闭",
"1": "打开"
},
"type": "bool"
},
"name": "电源开关1路"
}, {
"identifier": "PowerSwitch_2",
"dataType": {
"specs": {
"0": "关闭",
"1": "打开"
},
"type": "bool"
},
"name": "电源开关2路"
}, {
"identifier": "PowerSwitch_3",
"dataType": {
"specs": {
"0": "关闭",
"1": "打开"
},
"type": "bool"
},
"name": "电源开关3路"
}],
"identifier": "property",
"method": "thing.event.property.post",
"name": "property",
"type": "info",
"required": true,
"desc": "属性上报"
}]
}
\ No newline at end of file
{
"schema": "https://iot-ap.ikonke.com/model/product_86.json",
"productType": "curtain",
"profile": {
"heartbeat": "3000",
"productCode": "86",
"productName": "一路窗帘面板(肖邦系列)标准版"
},
"services": [{
"outputData": [],
"identifier": "set",
"inputData": [{
"identifier": "OperationMode",
"dataType": {
"specs": {
"0": "关闭",
"1": "开启",
"2": "暂停"
},
"type": "enum"
},
"name": "窗帘操作模式"
}],
"method": "thing.service.property.set",
"name": "set",
"required": true,
"callType": "async",
"desc": "属性设置"
}, {
"outputData": [{
"identifier": "OperationMode",
"dataType": {
"specs": {
"0": "关闭",
"1": "开启",
"2": "暂停"
},
"type": "enum"
},
"name": "窗帘操作模式"
}],
"identifier": "get",
"inputData": ["OperationMode"],
"method": "thing.service.property.get",
"name": "get",
"required": true,
"callType": "async",
"desc": "属性获取"
}],
"properties": [{
"identifier": "OperationMode",
"dataType": {
"specs": {
"0": "关闭",
"1": "开启",
"2": "暂停"
},
"type": "enum"
},
"name": "窗帘操作模式",
"accessMode": "rw",
"required": true
}],
"events": [{
"outputData": [{
"identifier": "OperationMode",
"dataType": {
"specs": {
"0": "关闭",
"1": "开启",
"2": "暂停"
},
"type": "enum"
},
"name": "窗帘操作模式"
}],
"identifier": "property",
"method": "thing.event.property.post",
"name": "property",
"type": "info",
"required": true,
"desc": "属性上报"
}]
}
\ No newline at end of file
{
"schema": "https://iot-ap.ikonke.com/model/product_87.json",
"productType": "curtain",
"profile": {
"heartbeat": "3000",
"productCode": "87",
"productName": "二路窗帘面板(肖邦系列)标准版"
},
"services": [{
"outputData": [],
"identifier": "set",
"inputData": [{
"identifier": "OperationMode_1",
"dataType": {
"specs": {
"0": "关闭",
"1": "开启",
"2": "暂停"
},
"type": "enum"
},
"name": "窗帘操作模式"
}, {
"identifier": "OperationMode_2",
"dataType": {
"specs": {
"0": "关闭",
"1": "开启",
"2": "暂停"
},
"type": "enum"
},
"name": "窗纱操作模式"
}],
"method": "thing.service.property.set",
"name": "set",
"required": true,
"callType": "async",
"desc": "属性设置"
}, {
"outputData": [{
"identifier": "OperationMode_1",
"dataType": {
"specs": {
"0": "关闭",
"1": "开启",
"2": "暂停"
},
"type": "enum"
},
"name": "窗帘操作模式"
}, {
"identifier": "OperationMode_2",
"dataType": {
"specs": {
"0": "关闭",
"1": "开启",
"2": "暂停"
},
"type": "enum"
},
"name": "窗纱操作模式"
}],
"identifier": "get",
"inputData": ["OperationMode_1", "OperationMode_2"],
"method": "thing.service.property.get",
"name": "get",
"required": true,
"callType": "async",
"desc": "属性获取"
}],
"properties": [{
"identifier": "OperationMode_1",
"dataType": {
"specs": {
"0": "关闭",
"1": "开启",
"2": "暂停"
},
"type": "enum"
},
"name": "窗帘操作模式",
"accessMode": "rw",
"required": true
}, {
"identifier": "OperationMode_2",
"dataType": {
"specs": {
"0": "关闭",
"1": "开启",
"2": "暂停"
},
"type": "enum"
},
"name": "窗纱操作模式",
"accessMode": "rw",
"required": true
}],
"events": [{
"outputData": [{
"identifier": "OperationMode_1",
"dataType": {
"specs": {
"0": "关闭",
"1": "开启",
"2": "暂停"
},
"type": "enum"
},
"name": "窗帘操作模式"
}, {
"identifier": "OperationMode_2",
"dataType": {
"specs": {
"0": "关闭",
"1": "开启",
"2": "暂停"
},
"type": "enum"
},
"name": "窗纱操作模式"
}],
"identifier": "property",
"method": "thing.event.property.post",
"name": "property",
"type": "info",
"required": true,
"desc": "属性上报"
}]
}
\ No newline at end of file
{
"schema": "https://iot.ikonke.com/schema.json",
"schema": "https://iot-ap.ikonke.com/model/product_89.json",
"productType": "lightPanel",
"profile": {
"heartbeat": "3000",
"productCode": "89",
"productName": "可调光旋钮面板(肖邦系列)"
},
......
{
"schema": "https://iot.ikonke.com/schema.json",
"schema": "https://iot-ap.ikonke.com/model/product_90.json",
"productType": "outlet",
"profile": {
"heartbeat": "3000",
"productCode": "90",
"productName": "入墙插座10A(肖邦系列)"
},
......@@ -37,7 +38,7 @@
"name": "电源开关"
}],
"identifier": "get",
"inputData": ["PowerSwitch"],
"inputData": ["PowerSwitch", "Power"],
"method": "thing.service.property.get",
"name": "get",
"required": true,
......@@ -56,6 +57,17 @@
"name": "电源开关",
"accessMode": "rw",
"required": true
}, {
"identifier": "Power",
"dataType": {
"type": "double",
"specs": {
"step": "0.01"
}
},
"name": "设备功率值",
"accessMode": "r",
"required": true
}],
"events": [{
"outputData": [{
......
......@@ -38,7 +38,7 @@
"name": "电源开关"
}],
"identifier": "get",
"inputData": ["PowerSwitch"],
"inputData": ["PowerSwitch", "Power"],
"method": "thing.service.property.get",
"name": "get",
"required": true,
......@@ -57,6 +57,17 @@
"name": "电源开关",
"accessMode": "rw",
"required": true
}, {
"identifier": "Power",
"dataType": {
"type": "double",
"specs": {
"step": "0.01"
}
},
"name": "设备功率值",
"accessMode": "r",
"required": true
}],
"events": [{
"outputData": [{
......
......@@ -81,8 +81,8 @@
}
},
{
"identifier": "TimingOnEnable",
"name": "定时机",
"identifier": "TimingOffEnable",
"name": "定时机",
"dataType": {
"type": "bool",
"specs": {
......@@ -92,8 +92,8 @@
}
},
{
"identifier": "TimingOnTime",
"name": "定时机时间",
"identifier": "TimingOffTime",
"name": "定时机时间",
"dataType": {
"type": "text",
"specs": {
......@@ -102,25 +102,15 @@
}
},
{
"identifier": "TimingOffEnable",
"name": "定时关机",
"identifier": "ChildLockState",
"name": "童锁",
"dataType": {
"type": "bool",
"type": "enum",
"specs": {
"0": "关闭",
"1": "开启"
}
}
},
{
"identifier": "TimingOffTime",
"name": "定时关机时间",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}
],
"outputData": []
......@@ -139,10 +129,9 @@
"WindSpeed",
"WorkMode",
"CurrentTemperature",
"TimingOnEnable",
"timingOnTime",
"TimingOffEnable",
"TimingOffTime"
"TimingOffTime",
"ChildLockState"
],
"outputData": [
{
......@@ -225,8 +214,8 @@
}
},
{
"identifier": "TimingOnEnable",
"name": "定时机",
"identifier": "TimingOffEnable",
"name": "定时机",
"dataType": {
"type": "bool",
"specs": {
......@@ -236,8 +225,8 @@
}
},
{
"identifier": "TimingOnTime",
"name": "定时机时间",
"identifier": "TimingOffTime",
"name": "定时机时间",
"dataType": {
"type": "text",
"specs": {
......@@ -246,25 +235,15 @@
}
},
{
"identifier": "TimingOffEnable",
"name": "定时关机",
"identifier": "ChildLockState",
"name": "童锁",
"dataType": {
"type": "bool",
"type": "enum",
"specs": {
"0": "关闭",
"1": "开启"
}
}
},
{
"identifier": "TimingOffTime",
"name": "定时关机时间",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}
]
}
......@@ -375,24 +354,12 @@
}
},
{
"identifier": "TimingOnTime",
"name": "定时开机时间",
"identifier": "ChildLockState",
"name": "童锁",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
},
{
"identifier": "TimingOffEnable",
"name": "定时关机",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "bool",
"type": "enum",
"specs": {
"0": "关闭",
"1": "开启"
......@@ -501,26 +468,16 @@
}
},
{
"identifier": "TimingOnEnable",
"name": "定时开机",
"identifier": "ChildLockState",
"name": "童锁",
"dataType": {
"type": "bool",
"type": "enum",
"specs": {
"0": "关闭",
"1": "开启"
}
}
},
{
"identifier": "TimingOnTime",
"name": "定时开机时间",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
},
{
"identifier": "TimingOffEnable",
"name": "定时关机",
......
{
"schema": "https://iot-ap.ikonke.com/model/product_93.json",
"productType": "floorHeating",
"profile": {
"heartbeat": "3000",
"productCode": "93",
"productName": "电地暖(肖邦系列)"
},
"services": [
{
"identifier": "set",
"name": "set",
"required": true,
"callType": "async",
"desc": "属性设置",
"method": "thing.service.property.set",
"inputData": [
{
"identifier": "Temperature",
"name": "目标温度",
"dataType": {
"type": "double",
"specs": {
"min": "16",
"max": "30",
"unit": "°C",
"unitName": "摄氏度",
"step": "1"
}
}
},
{
"identifier": "PowerSwitch",
"name": "电源开关",
"dataType": {
"type": "enum",
"specs": {
"0": "关闭",
"1": "开启"
}
}
},
{
"identifier": "ChildLockState",
"name": "童锁",
"dataType": {
"type": "enum",
"specs": {
"0": "关闭",
"1": "开启"
}
}
},
{
"identifier": "WorkMode",
"name": "工作模式",
"dataType": {
"type": "enum",
"specs": {
"0": "自动",
"1": "手动"
}
}
},
{
"identifier": "TimingOffTime",
"name": "定时关机时间",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}
],
"outputData": []
},
{
"identifier": "get",
"name": "get",
"required": true,
"callType": "async",
"desc": "属性获取",
"method": "thing.service.property.get",
"inputData": [
"VerticalSwitch",
"Temperature",
"CurrentTemperature",
"PowerSwitch",
"ChildLockState",
"WorkMode",
"TimingOffTime"
],
"outputData": [
{
"identifier": "Temperature",
"name": "目标温度",
"dataType": {
"type": "double",
"specs": {
"min": "16",
"max": "30",
"unit": "°C",
"unitName": "摄氏度",
"step": "1"
}
}
},
{
"identifier": "CurrentTemperature",
"name": "当前温度",
"dataType": {
"type": "double",
"specs": {
"min": "-30",
"max": "50",
"unit": "°C",
"unitName": "摄氏度",
"step": "1"
}
}
},
{
"identifier": "PowerSwitch",
"name": "电源开关",
"dataType": {
"type": "enum",
"specs": {
"0": "关闭",
"1": "开启"
}
}
},
{
"identifier": "ChildLockState",
"name": "童锁",
"dataType": {
"type": "enum",
"specs": {
"0": "关闭",
"1": "开启"
}
}
},
{
"identifier": "WorkMode",
"name": "工作模式",
"dataType": {
"type": "enum",
"specs": {
"0": "自动",
"1": "手动"
}
}
},
{
"identifier": "TimingOffTime",
"name": "定时关机时间",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}
]
}
],
"properties": [
{
"identifier": "PowerSwitch",
"name": "电源开关",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "enum",
"specs": {
"0": "关闭",
"1": "开启"
}
}
},
{
"identifier": "Temperature",
"name": "目标温度",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "double",
"specs": {
"min": "16",
"max": "30",
"unit": "°C",
"unitName": "摄氏度",
"step": "1"
}
}
},
{
"identifier": "CurrentTemperature",
"name": "当前温度",
"accessMode": "r",
"required": true,
"dataType": {
"type": "double",
"specs": {
"min": "-30",
"max": "50",
"unit": "°C",
"unitName": "摄氏度",
"step": "1"
}
}
},
{
"identifier": "ChildLockState",
"name": "童锁",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "enum",
"specs": {
"0": "关闭",
"1": "开启"
}
}
},
{
"identifier": "WorkMode",
"name": "工作模式",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "enum",
"specs": {
"0": "自动",
"1": "手动"
}
}
},
{
"identifier": "TimingOffTime",
"name": "定时关机时间",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}
],
"events": [
{
"identifier": "post",
"name": "post",
"type": "info",
"required": true,
"desc": "属性上报",
"method": "thing.event.property.post",
"outputData": [
{
"identifier": "Temperature",
"name": "目标温度",
"dataType": {
"type": "double",
"specs": {
"min": "16",
"max": "30",
"unit": "°C",
"unitName": "摄氏度",
"step": "1"
}
}
},
{
"identifier": "CurrentTemperature",
"name": "当前温度",
"dataType": {
"type": "double",
"specs": {
"min": "-30",
"max": "50",
"unit": "°C",
"unitName": "摄氏度",
"step": "1"
}
}
},
{
"identifier": "PowerSwitch",
"name": "电源开关",
"dataType": {
"type": "bool",
"specs": {
"0": "关闭",
"1": "开启"
}
}
},
{
"identifier": "ChildLockState",
"name": "童锁",
"dataType": {
"type": "enum",
"specs": {
"0": "关闭",
"1": "开启"
}
}
},
{
"identifier": "WorkMode",
"name": "工作模式",
"dataType": {
"type": "enum",
"specs": {
"0": "自动",
"1": "手动"
}
}
},
{
"identifier": "TimingOffTime",
"name": "定时关机时间",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}
]
}
]
}
\ No newline at end of file
{
"schema": "https://iot-ap.ikonke.com/model/product_94.json",
"productType": "floorHeating",
"profile": {
"heartbeat": "3000",
"productCode": "94",
"productName": "水地暖(肖邦系列)"
},
"services": [{
"identifier": "set",
"name": "set",
"required": true,
"callType": "async",
"desc": "属性设置",
"method": "thing.service.property.set",
"inputData": [{
"identifier": "Temperature",
"name": "目标温度",
"dataType": {
"type": "double",
"specs": {
"min": "16",
"max": "30",
"unit": "°C",
"unitName": "摄氏度",
"step": "1"
}
}
}, {
"identifier": "PowerSwitch",
"name": "电源开关",
"dataType": {
"type": "enum",
"specs": {
"0": "关闭",
"1": "开启"
}
}
}, {
"identifier": "ChildLockState",
"name": "童锁",
"dataType": {
"type": "enum",
"specs": {
"0": "关闭",
"1": "开启"
}
}
}, {
"identifier": "WorkMode",
"name": "工作模式",
"dataType": {
"type": "enum",
"specs": {
"0": "自动",
"1": "手动"
}
}
}],
"outputData": []
}, {
"identifier": "get",
"name": "get",
"required": true,
"callType": "async",
"desc": "属性获取",
"method": "thing.service.property.get",
"inputData": ["VerticalSwitch", "Temperature", "CurrentTemperature", "PowerSwitch", "ChildLockState", "WorkMode"],
"outputData": [{
"identifier": "Temperature",
"name": "目标温度",
"dataType": {
"type": "double",
"specs": {
"min": "16",
"max": "30",
"unit": "°C",
"unitName": "摄氏度",
"step": "1"
}
}
}, {
"identifier": "CurrentTemperature",
"name": "当前温度",
"dataType": {
"type": "double",
"specs": {
"min": "-30",
"max": "50",
"unit": "°C",
"unitName": "摄氏度",
"step": "1"
}
}
}, {
"identifier": "PowerSwitch",
"name": "电源开关",
"dataType": {
"type": "enum",
"specs": {
"0": "关闭",
"1": "开启"
}
}
}, {
"identifier": "ChildLockState",
"name": "童锁",
"dataType": {
"type": "enum",
"specs": {
"0": "关闭",
"1": "开启"
}
}
}, {
"identifier": "WorkMode",
"name": "工作模式",
"dataType": {
"type": "enum",
"specs": {
"0": "自动",
"1": "手动"
}
}
}]
}, {
"identifier": "AddLocalTimerTask",
"name": "set",
"required": true,
"callType": "async",
"desc": "添加定时任务",
"method": "thing.service.AddLocalTimerTask",
"inputData": [{
"identifier": "Timer",
"name": "定时时间",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "Enable",
"name": "启用",
"dataType": {
"type": "bool",
"specs": {
"0": "关",
"1": "开"
}
}
}, {
"identifier": "IsValid",
"name": "可执行",
"dataType": {
"type": "bool",
"specs": {
"0": "无效",
"1": "有效"
}
}
}, {
"identifier": "Actions",
"name": "动作",
"dataType": {
"type": "array",
"specs": {
"size": "128",
"item": {
"type": "struct",
"specs": [{
"identifier": "Set",
"name": "设置",
"dataType": {
"type": "struct",
"specs": [{
"identifier": "PowerSwitch",
"name": "电源开关",
"dataType": {
"type": "bool",
"specs": {
"0": "关闭",
"1": "开启"
}
}
}]
}
}]
}
}
}
}],
"outputData": []
}, {
"identifier": "DeleteLocalTimerTask",
"name": "set",
"required": true,
"callType": "async",
"desc": "删除定时任务",
"method": "thing.service.DeleteLocalTimerTask",
"inputData": [],
"outputData": []
}, {
"identifier": "GetLocalTimerTask",
"name": "获取定时任务",
"required": true,
"callType": "async",
"method": "thing.service.GetLocalTimerTask",
"inputData": [],
"outputData": [{
"identifier": "LocalTimerTask",
"name": "本地定时",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "array",
"specs": {
"size": "128",
"item": {
"type": "struct",
"specs": [{
"identifier": "Timer",
"name": "定时时间",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "Enable",
"name": "启用",
"dataType": {
"type": "bool",
"specs": {
"0": "关",
"1": "开"
}
}
}, {
"identifier": "IsValid",
"name": "可执行",
"dataType": {
"type": "bool",
"specs": {
"0": "无效",
"1": "有效"
}
}
}]
}
}
}
}]
}],
"properties": [{
"identifier": "PowerSwitch",
"name": "电源开关",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "enum",
"specs": {
"0": "关闭",
"1": "开启"
}
}
}, {
"identifier": "Temperature",
"name": "目标温度",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "double",
"specs": {
"min": "16",
"max": "30",
"unit": "°C",
"unitName": "摄氏度",
"step": "1"
}
}
}, {
"identifier": "CurrentTemperature",
"name": "当前温度",
"accessMode": "r",
"required": true,
"dataType": {
"type": "double",
"specs": {
"min": "-30",
"max": "50",
"unit": "°C",
"unitName": "摄氏度",
"step": "1"
}
}
}, {
"identifier": "ChildLockState",
"name": "童锁",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "enum",
"specs": {
"0": "关闭",
"1": "开启"
}
}
}, {
"identifier": "WorkMode",
"name": "工作模式",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "enum",
"specs": {
"0": "自动",
"1": "手动"
}
}
}, {
"identifier": "LocalTimerTask",
"name": "本地定时",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "array",
"specs": {
"size": "128",
"item": {
"type": "struct",
"specs": [{
"identifier": "Timer",
"name": "定时时间",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "Enable",
"name": "启用",
"dataType": {
"type": "bool",
"specs": {
"0": "关",
"1": "开"
}
}
}, {
"identifier": "IsValid",
"name": "可执行",
"dataType": {
"type": "bool",
"specs": {
"0": "无效",
"1": "有效"
}
}
}]
}
}
}
}],
"events": [{
"identifier": "post",
"name": "post",
"type": "info",
"required": true,
"desc": "属性上报",
"method": "thing.event.property.post",
"outputData": [{
"identifier": "Temperature",
"name": "目标温度",
"dataType": {
"type": "double",
"specs": {
"min": "16",
"max": "30",
"unit": "°C",
"unitName": "摄氏度",
"step": "1"
}
}
}, {
"identifier": "CurrentTemperature",
"name": "当前温度",
"dataType": {
"type": "double",
"specs": {
"min": "-30",
"max": "50",
"unit": "°C",
"unitName": "摄氏度",
"step": "1"
}
}
}, {
"identifier": "PowerSwitch",
"name": "电源开关",
"dataType": {
"type": "bool",
"specs": {
"0": "关闭",
"1": "开启"
}
}
}, {
"identifier": "ChildLockState",
"name": "童锁",
"dataType": {
"type": "enum",
"specs": {
"0": "关闭",
"1": "开启"
}
}
}, {
"identifier": "WorkMode",
"name": "工作模式",
"dataType": {
"type": "enum",
"specs": {
"0": "自动",
"1": "手动"
}
}
}]
}, {
"identifier": "LocalTimerTaskInformationNotification",
"name": "定时任务上报",
"type": "info",
"required": true,
"method": "thing.event.LocalTimerTaskInformationNotification.post",
"outputData": [{
"identifier": "LocalTimerTask",
"name": "本地定时",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "array",
"specs": {
"size": "128",
"item": {
"type": "struct",
"specs": [{
"identifier": "Timer",
"name": "定时时间",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}, {
"identifier": "Enable",
"name": "启用",
"dataType": {
"type": "bool",
"specs": {
"0": "关",
"1": "开"
}
}
}, {
"identifier": "IsValid",
"name": "可执行",
"dataType": {
"type": "bool",
"specs": {
"0": "无效",
"1": "有效"
}
}
}]
}
}
}
}]
}, {
"identifier": "LocalTimerTaskAddNotification",
"name": "添加定时任务通知",
"type": "info",
"required": true,
"method": "thing.event.LocalTimerTaskAddNotification.post",
"outputData": []
}, {
"identifier": "LocalTimerTaskModifyNotification",
"name": "修改定时任务通知",
"type": "info",
"required": true,
"method": "thing.event.LocalTimerTaskModifyNotification.post",
"outputData": []
}, {
"identifier": "LocalTimerTaskDeletedNotification",
"name": "删除定时任务通知",
"type": "info",
"required": true,
"method": "thing.event.LocalTimerTaskDeletedNotification.post",
"outputData": []
}]
"schema": "https://iot-ap.ikonke.com/model/product_94.json",
"productType": "floorHeating",
"profile": {
"heartbeat": "3000",
"productCode": "94",
"productName": "水地暖(肖邦系列)"
},
"services": [
{
"identifier": "set",
"name": "set",
"required": true,
"callType": "async",
"desc": "属性设置",
"method": "thing.service.property.set",
"inputData": [
{
"identifier": "Temperature",
"name": "目标温度",
"dataType": {
"type": "double",
"specs": {
"min": "16",
"max": "30",
"unit": "°C",
"unitName": "摄氏度",
"step": "1"
}
}
},
{
"identifier": "PowerSwitch",
"name": "电源开关",
"dataType": {
"type": "enum",
"specs": {
"0": "关闭",
"1": "开启"
}
}
},
{
"identifier": "ChildLockState",
"name": "童锁",
"dataType": {
"type": "enum",
"specs": {
"0": "关闭",
"1": "开启"
}
}
},
{
"identifier": "WorkMode",
"name": "工作模式",
"dataType": {
"type": "enum",
"specs": {
"0": "自动",
"1": "手动"
}
}
},
{
"identifier": "TimingOffTime",
"name": "定时关机时间",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}
],
"outputData": []
},
{
"identifier": "get",
"name": "get",
"required": true,
"callType": "async",
"desc": "属性获取",
"method": "thing.service.property.get",
"inputData": [
"VerticalSwitch",
"Temperature",
"CurrentTemperature",
"PowerSwitch",
"ChildLockState",
"WorkMode",
"TimingOffTime"
],
"outputData": [
{
"identifier": "Temperature",
"name": "目标温度",
"dataType": {
"type": "double",
"specs": {
"min": "16",
"max": "30",
"unit": "°C",
"unitName": "摄氏度",
"step": "1"
}
}
},
{
"identifier": "CurrentTemperature",
"name": "当前温度",
"dataType": {
"type": "double",
"specs": {
"min": "-30",
"max": "50",
"unit": "°C",
"unitName": "摄氏度",
"step": "1"
}
}
},
{
"identifier": "PowerSwitch",
"name": "电源开关",
"dataType": {
"type": "enum",
"specs": {
"0": "关闭",
"1": "开启"
}
}
},
{
"identifier": "ChildLockState",
"name": "童锁",
"dataType": {
"type": "enum",
"specs": {
"0": "关闭",
"1": "开启"
}
}
},
{
"identifier": "WorkMode",
"name": "工作模式",
"dataType": {
"type": "enum",
"specs": {
"0": "自动",
"1": "手动"
}
}
},
{
"identifier": "TimingOffTime",
"name": "定时关机时间",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}
]
}
],
"properties": [
{
"identifier": "PowerSwitch",
"name": "电源开关",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "enum",
"specs": {
"0": "关闭",
"1": "开启"
}
}
},
{
"identifier": "Temperature",
"name": "目标温度",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "double",
"specs": {
"min": "16",
"max": "30",
"unit": "°C",
"unitName": "摄氏度",
"step": "1"
}
}
},
{
"identifier": "CurrentTemperature",
"name": "当前温度",
"accessMode": "r",
"required": true,
"dataType": {
"type": "double",
"specs": {
"min": "-30",
"max": "50",
"unit": "°C",
"unitName": "摄氏度",
"step": "1"
}
}
},
{
"identifier": "ChildLockState",
"name": "童锁",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "enum",
"specs": {
"0": "关闭",
"1": "开启"
}
}
},
{
"identifier": "WorkMode",
"name": "工作模式",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "enum",
"specs": {
"0": "自动",
"1": "手动"
}
}
},
{
"identifier": "TimingOffTime",
"name": "定时关机时间",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}
],
"events": [
{
"identifier": "post",
"name": "post",
"type": "info",
"required": true,
"desc": "属性上报",
"method": "thing.event.property.post",
"outputData": [
{
"identifier": "Temperature",
"name": "目标温度",
"dataType": {
"type": "double",
"specs": {
"min": "16",
"max": "30",
"unit": "°C",
"unitName": "摄氏度",
"step": "1"
}
}
},
{
"identifier": "CurrentTemperature",
"name": "当前温度",
"dataType": {
"type": "double",
"specs": {
"min": "-30",
"max": "50",
"unit": "°C",
"unitName": "摄氏度",
"step": "1"
}
}
},
{
"identifier": "PowerSwitch",
"name": "电源开关",
"dataType": {
"type": "bool",
"specs": {
"0": "关闭",
"1": "开启"
}
}
},
{
"identifier": "ChildLockState",
"name": "童锁",
"dataType": {
"type": "enum",
"specs": {
"0": "关闭",
"1": "开启"
}
}
},
{
"identifier": "WorkMode",
"name": "工作模式",
"dataType": {
"type": "enum",
"specs": {
"0": "自动",
"1": "手动"
}
}
},
{
"identifier": "TimingOffTime",
"name": "定时关机时间",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
}
]
}
]
}
\ No newline at end of file
......@@ -37,17 +37,6 @@
}
}
},
{
"identifier": "WindMode",
"name": "风速",
"dataType": {
"type": "enum",
"specs": {
"1": "全热交换",
"2": "空净"
}
}
},
{
"identifier": "WindSpeed",
"name": "风速",
......@@ -71,17 +60,6 @@
}
}
},
{
"identifier": "StrainerState",
"name": "滤网状态",
"dataType": {
"type": "enum",
"specs": {
"0": "清晰",
"1": "正常"
}
}
},
{
"identifier": "StrainerAlarmTime",
"name": "滤网告警时间",
......@@ -128,17 +106,11 @@
"desc": "属性获取",
"method": "thing.service.property.get",
"inputData": [
"VerticalSwitch",
"PowerSwitch",
"WindMode",
"WindSpeed",
"WorkMode",
"ChildLockState",
"StrainerState",
"StrainerAlarmTime",
"CO2",
"PM25",
"StrainerWorkTime",
"TimingOffEnable",
"TimingOffTime",
"CurrentTemperature"
......@@ -166,17 +138,6 @@
}
}
},
{
"identifier": "WindMode",
"name": "风速",
"dataType": {
"type": "enum",
"specs": {
"1": "全热交换",
"2": "空净"
}
}
},
{
"identifier": "WindSpeed",
"name": "风速",
......@@ -211,62 +172,6 @@
}
}
},
{
"identifier": "StrainerAlarmTime",
"name": "滤网告警时间",
"dataType": {
"type": "int",
"specs": {
"min": "1500",
"max": "6000",
"unit": "h",
"unitName": "小时",
"step": "1"
}
}
},
{
"identifier": "CO2",
"name": "二氧化碳",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "65535",
"unit": "mg/m³",
"unitName": "毫克每立方米",
"step": "1"
}
}
},
{
"identifier": "PM25",
"name": "PM25",
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "65535",
"unit": "μg/m³",
"unitName": "微克每立方米",
"step": "1"
}
}
},
{
"identifier": "StrainerWorkTime",
"name": "滤网工作时长",
"dataType": {
"type": "int",
"specs": {
"min": "1500",
"max": "6000",
"unit": "h",
"unitName": "小时",
"step": "1"
}
}
},
{
"identifier": "TimingOffEnable",
"name": "定时关机",
......@@ -333,32 +238,6 @@
}
}
},
{
"identifier": "WindMode",
"name": "风速",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "enum",
"specs": {
"1": "全热交换",
"2": "空净"
}
}
},
{
"identifier": "WorkMode",
"name": "工作模式",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "enum",
"specs": {
"1": "全热交换",
"2": "空净"
}
}
},
{
"identifier": "ChildLockState",
"name": "童锁",
......@@ -375,7 +254,7 @@
{
"identifier": "StrainerState",
"name": "滤网状态",
"accessMode": "rw",
"accessMode": "r",
"required": true,
"dataType": {
"type": "enum",
......@@ -387,57 +266,7 @@
},
{
"identifier": "StrainerAlarmTime",
"name": "滤网告警事件",
"accessMode": "rw",
"required": true,
"dataType": {
"type": "int",
"specs": {
"min": "1500",
"max": "6000",
"unit": "h",
"unitName": "小时",
"step": "1"
}
}
},
{
"identifier": "co2",
"name": "二氧化碳",
"accessMode": "r",
"required": false,
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "65535",
"unit": "mg/m³",
"unitName": "毫克每立方米",
"step": "1"
}
}
},
{
"identifier": "PM25",
"name": "PM25",
"accessMode": "r",
"required": false,
"dataType": {
"type": "int",
"specs": {
"min": "0",
"max": "65535",
"unit": "μg/m³",
"unitName": "微克每立方米",
"step": "1"
}
}
},
{
"identifier": "StrainerWorkTime",
"name": "滤网工作时长",
"accessMode": "r",
"required": true,
"name": "滤网告警时间",
"dataType": {
"type": "int",
"specs": {
......@@ -522,17 +351,6 @@
}
}
},
{
"identifier": "WindMode",
"name": "风速",
"dataType": {
"type": "enum",
"specs": {
"1": "全热交换",
"2": "空净"
}
}
},
{
"identifier": "WindSpeed",
"name": "风速",
......@@ -557,61 +375,29 @@
}
},
{
"identifier": "StrainerState",
"name": "滤网状态",
"dataType": {
"type": "enum",
"specs": {
"0": "清晰",
"1": "正常"
}
}
},
{
"identifier": "StrainerAlarmTime",
"name": "滤网告警时间",
"dataType": {
"type": "int",
"specs": {
"min": "1500",
"max": "6000",
"unit": "h",
"unitName": "小时",
"step": "1"
}
}
},
{
"identifier": "CO2",
"name": "二氧化碳",
"identifier": "TimingOffEnable",
"name": "定时关机",
"dataType": {
"type": "int",
"type": "bool",
"specs": {
"min": "0",
"max": "65535",
"unit": "mg/m³",
"unitName": "毫克每立方米",
"step": "1"
"0": "关闭",
"1": "开启"
}
}
},
{
"identifier": "PM25",
"name": "PM25",
"identifier": "TimingOffTime",
"name": "定时关机时间",
"dataType": {
"type": "int",
"type": "text",
"specs": {
"min": "0",
"max": "65535",
"unit": "μg/m³",
"unitName": "微克每立方米",
"step": "1"
"length": "255"
}
}
},
{
"identifier": "StrainerWorkTime",
"name": "滤网工作时长",
"identifier": "StrainerAlarmTime",
"name": "滤网告警时间",
"dataType": {
"type": "int",
"specs": {
......@@ -623,27 +409,6 @@
}
}
},
{
"identifier": "TimingOffEnable",
"name": "定时关机",
"dataType": {
"type": "bool",
"specs": {
"0": "关闭",
"1": "开启"
}
}
},
{
"identifier": "TimingOffTime",
"name": "定时关机时间",
"dataType": {
"type": "text",
"specs": {
"length": "255"
}
}
},
{
"identifier": "CurrentTemperature",
"name": "当前温度",
......
{
"schema": "https://iot.ikonke.com/schema.json",
"schema": "https://iot-ap.ikonke.com/model/product_96.json",
"productType": "switch",
"profile": {
"heartbeat": "3000",
"productCode": "96",
"productName": "星辰一路零火面板"
},
......@@ -43,6 +44,24 @@
"required": true,
"callType": "async",
"desc": "属性获取"
}, {
"outputData": [],
"identifier": "negativeProperty",
"inputData": [{
"identifier": "PropertyName",
"dataType": {
"specs": {
"length": "50"
},
"type": "text"
},
"name": "属性名字"
}],
"method": "thing.service.negativeProperty",
"name": "negativeProperty",
"required": true,
"callType": "async",
"desc": "属性值取反"
}],
"properties": [{
"identifier": "PowerSwitch",
......
{
"schema": "https://iot.ikonke.com/schema.json",
"schema": "https://iot-ap.ikonke.com/model/product_97.json",
"productType": "switch",
"profile": {
"heartbeat": "3000",
"productCode": "97",
"productName": "星辰二路零火面板"
},
......@@ -63,6 +64,24 @@
"required": true,
"callType": "async",
"desc": "属性获取"
}, {
"outputData": [],
"identifier": "negativeProperty",
"inputData": [{
"identifier": "PropertyName",
"dataType": {
"specs": {
"length": "50"
},
"type": "text"
},
"name": "属性名字"
}],
"method": "thing.service.negativeProperty",
"name": "negativeProperty",
"required": true,
"callType": "async",
"desc": "属性值取反"
}],
"properties": [{
"identifier": "PowerSwitch_1",
......
{
"schema": "https://iot.ikonke.com/schema.json",
"schema": "https://iot-ap.ikonke.com/model/product_98.json",
"productType": "switch",
"profile": {
"heartbeat": "3000",
"productCode": "98",
"productName": "星辰三路零火面板 "
},
......@@ -83,6 +84,24 @@
"required": true,
"callType": "async",
"desc": "属性获取"
}, {
"outputData": [],
"identifier": "negativeProperty",
"inputData": [{
"identifier": "PropertyName",
"dataType": {
"specs": {
"length": "50"
},
"type": "text"
},
"name": "属性名字"
}],
"method": "thing.service.negativeProperty",
"name": "negativeProperty",
"required": true,
"callType": "async",
"desc": "属性值取反"
}],
"properties": [{
"identifier": "PowerSwitch_1",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment