{
	"schema": "https://iot-ap.ikonke.com/model/product_3064.json",
    "productType": "Doorlock",
    "version": "1",
	"profile": {
		"heartbeat": "1200",
		"productCode": "3064",
        "productName": "秦穹智能门锁枪黑Z3S(KONKE)",
        "sleepTime": "30000"
	},
	"services": [
        {
            "outputData": [],
            "identifier": "set",
            "inputData": [
                {
                    "identifier": "RemoteControlEnbale",
                    "name": "远程控制使能",
                    "dataType": {
                        "type": "enum",
                        "specs": {
                            "0":"关闭",
                            "1":"开启"
                        }
                    }
                }
            ],
            "method": "thing.service.property.set",
            "name": "set",
            "required": true,
            "callType": "async",
            "desc": "属性设置"
        },
        {
            "outputData": [
                {
                    "identifier": "RemoteControlEnbale",
                    "name": "远程控制使能",
                    "dataType": {
                        "type": "enum",
                        "specs": {
                            "0":"关闭",
                            "1":"开启"
                        }
                    }
                },
                {
                    "identifier": "Battery",
                    "name": "电池电量",
                    "dataType": {
                        "type": "double",
                        "specs": {
                            "min": "0",
                            "max": "100",
                            "unit": "%",
                            "unitName": "百分比",
                            "step": "0.01"
                        }
                    }
                }
            ],
            "identifier": "get",
            "inputData": [
                "RemoteControlEnbale",
                "Battery"
            ],
            "method": "thing.service.property.get",
            "name": "get",
            "required": true,
            "callType": "async",
            "desc": "属性获取"
        },
        {
            "outputData": [
                {
                    "identifier": "openfeedback",
                    "name": "远程开锁反馈",
                    "dataType": {
                        "type": "enum",
                        "specs": {
                            "0":"成功",
                            "1":"密码错误",
                            "16":"不支持远程开锁",
                            "18":"系统已锁定",
                            "19":"远程开门未使能",
                            "255":"未知错误"
                        }
                    }
                }
            ],
            "identifier": "OpenLock",
            "inputData": [
                {
                    "identifier": "password",
                    "name": "远程开锁密码",
                    "dataType": {
                        "type": "text",
                        "length": "64"
                    }
                }
            ],
            "method": "thing.service.OpenLock",
            "name": "OpenLock",
            "required": true,
            "callType": "async",
            "desc": "远程开锁"
        }
    ],
	"properties": [
        {
            "identifier": "RemoteControlEnbale",
            "name": "远程控制使能",
            "accessMode": "rw",
            "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"
                }
            }
        }
    ],
	"events": [
        {
            "outputData": [
                {
                    "identifier": "RemoteControlEnbale",
                    "name": "远程控制使能",
                    "dataType": {
                        "type": "enum",
                        "specs": {
                            "0":"关闭",
                            "1":"开启"
                        }
                    }
                },
                {
                    "identifier": "Battery",
                    "name": "电池电量",
                    "dataType": {
                        "type": "double",
                        "specs": {
                            "min": "0",
                            "max": "100",
                            "unit": "%",
                            "unitName": "百分比",
                            "step": "0.01"
                        }
                    }
                }
            ],
            "identifier": "property",
            "method": "thing.event.property.post",
            "name": "property",
            "type": "info",
            "required": true,
            "desc": "属性上报"
        },
        {
            "outputData": [
                {
                    "identifier": "UserID",
                    "name": "用户ID",
                    "dataType": {
                        "type": "text",
                        "length" : "10"
                    }
                },
                {
                    "identifier": "UserType",
                    "name": "用户类型",
                    "dataType": {
                        "type": "enum",
                        "specs": {
                            "1":"管理员",
                            "2":"普通用户",
                            "3":"临时用户"
                        }
                    }
                },
                {
                    "identifier": "openLockMethod",
                    "name": "开锁方式",
                    "dataType": {
                        "type": "enum",
                        "specs": {
                            "1":"指纹",
                            "2":"密码",
                            "3":"刷卡",
                            "4":"APP远程开锁",
                            "5":"机械钥匙",
                            "6":"蓝牙",
                            "7":"劫持报警",
                            "8":"限时临时密码"
                        }
                    }
                }
            ],
            "identifier": "OpenLock",
            "method": "thing.event.OpenLock.post",
            "name": "OpenLock",
            "type": "info",
            "required": true,
            "desc": "开门上报"
        },
        {
            "outputData": [
                {
                    "identifier": "UserID",
                    "name": "用户ID",
                    "dataType": {
                        "type": "text",
                        "length" : "10"
                    }
                },
                {
                    "identifier": "UserType",
                    "name": "用户类型",
                    "dataType": {
                        "type": "enum",
                        "specs": {
                            "1":"管理员",
                            "2":"普通用户",
                            "3":"临时用户"
                        }
                    }
                },
                {
                    "identifier": "openLockMethod",
                    "name": "开锁方式",
                    "dataType": {
                        "type": "enum",
                        "specs": {
                            "1":"指纹",
                            "2":"密码",
                            "3":"刷卡",
                            "4":"APP远程开锁",
                            "5":"机械钥匙",
                            "6":"蓝牙",
                            "7":"劫持报警",
                            "8":"限时临时密码"
                        }
                    }
                }
            ],
            "identifier": "AddUser",
            "method": "thing.event.AddUser.post",
            "name": "AddUser",
            "type": "info",
            "required": true,
            "desc": "添加用户上报"
        },
        {
            "outputData": [
                {
                    "identifier": "UserID",
                    "name": "用户ID",
                    "dataType": {
                        "type": "text",
                        "length" : "10"
                    }
                },
                {
                    "identifier": "UserType",
                    "name": "用户类型",
                    "dataType": {
                        "type": "enum",
                        "specs": {
                            "1":"管理员",
                            "2":"普通用户",
                            "3":"临时用户"
                        }
                    }
                },
                {
                    "identifier": "openLockMethod",
                    "name": "开锁方式",
                    "dataType": {
                        "type": "enum",
                        "specs": {
                            "1":"指纹",
                            "2":"密码",
                            "3":"刷卡",
                            "4":"APP远程开锁",
                            "5":"机械钥匙",
                            "6":"蓝牙",
                            "7":"劫持报警",
                            "8":"限时临时密码"
                        }
                    }
                }
            ],
            "identifier": "DeleteUser",
            "method": "thing.event.DeleteUser.post",
            "name": "DeleteUser",
            "type": "info",
            "required": true,
            "desc": "删除用户上报"
        },
        {
            "identifier": "DoorBell",
            "method": "thing.event.DoorBell.post",
            "name": "DoorBell",
            "type": "alarm",
            "required": true,
            "desc": "门铃事件"
        },
        {
            "outputData": [
                {
                    "identifier": "DismantleState",
                    "name": "拆卸状态",
                    "dataType": {
                        "type": "enum",
                        "specs": {
                            "0": "正常",
                            "1": "被拆卸"
                        }
                    }
                }
            ],
            "identifier": "TamperAlarm",
            "method": "thing.event.TamperAlarm.post",
            "name": "TamperAlarm",
            "type": "alert",
            "required": true,
            "desc": "防拆告警",
            "alarmbit":2
        },
        {
            "outputData": [
                {
                    "identifier": "Battery",
                    "name": "电池电量",
                    "dataType": {
                        "type": "double",
                        "specs": {
                            "min": "0.0",
                            "max": "100.0",
                            "unit": "%",
                            "unitName": "百分比",
                            "step": "0.01"
                        }
                    }
                }
            ],
            "identifier": "BatteryAlarm",
            "method": "thing.event.BatteryAlarm.post",
            "name": "BatteryAlarm",
            "type": "alert",
            "required": true,
            "alarmbit":3,
            "desc": "低电量告警"
        }
    ]
}