{
	"schema": "https://iot-ap.ikonke.com/model/product_3070.json",
    "productType": "sensor",
    "version": "1.0",
	"profile": {
		"heartbeat": "300",
		"productCode": "3070",
        "productName": "传感器模块Z3S(KONKE)"
	},
	"services": [
        {
            "outputData":[

            ],
            "identifier":"set",
            "inputData":[
                {
                    "identifier":"NormalState",
                    "dataType":{
                        "specs":{
                            "0": "常闭",
                            "1": "常开"
                        },
                        "type":"enum"
                    },
                    "name":"常开常闭状态"
                }
            ],
            "method":"thing.service.property.set",
            "name":"set",
            "required":true,
            "callType":"async",
            "desc":"属性设置"
        },
        {
            "outputData": [
                {
                    "identifier": "DryContactState",
                    "name": "干接点状态",
                    "dataType": {
                        "type": "enum",
                        "specs": {
                            "0": "正常",
                            "1": "触发"
                        }
                    }
                },
                {
                    "identifier": "NormalState",
                    "name": "常开常闭状态",
                    "dataType": {
                        "type": "enum",
                        "specs": {
                            "0": "常闭",
                            "1": "常开"
                        }
                    }
                }
            ],
            "identifier": "get",
            "inputData": [
                "DryContactState", 
                "NormalState"
            ],
            "method": "thing.service.property.get",
            "name": "get",
            "required": true,
            "callType": "async",
            "desc": "属性获取"
        }
    ],
    "properties": [
        {
            "identifier": "DryContactState",
            "name": "干接点状态",
            "accessMode": "r",
            "required": true,
            "dataType": {
                "type": "enum",
                "specs": {
                    "0": "正常",
                    "1": "触发"
                }
            }
        },
        {
            "identifier": "NormalState",
            "name": "常开常闭状态",
            "accessMode": "rw",
            "required": true,
            "dataType": {
                "type": "enum",
                "specs": {
                    "0": "常闭",
                    "1": "常开"
                }
            }
        },
        {
            "identifier": "SensorType",
            "name": "安防等级",
            "accessMode": "rw",
            "required": true,
            "dataType": {
                "type": "enum",
                "specs": {
                    "0": "在家安防",
                    "1": "室外安防",
					"2": "24小时警戒",
					"3": "无警戒"
                }
            }
        }
    ],
    "events": [
        {
            "outputData": [
                {
                    "identifier": "DryContactState",
                    "name": "干接点状态",
                    "dataType": {
                        "type": "enum",
                        "specs": {
                            "0": "正常",
                            "1": "触发"
                        }
                    }
                },
                {
                    "identifier": "NormalState",
                    "name": "常开常闭状态",
                    "dataType": {
                        "type": "enum",
                        "specs": {
                            "0": "常闭",
                            "1": "常开"
                        }
                    }
                }
            ],
            "identifier": "property",
            "method": "thing.event.property.post",
            "name": "property",
            "type": "info",
            "required": true,
            "desc": "属性上报"
        }, 
        {
            "outputData": [
                {
                    "identifier": "DryContactState",
                    "name": "干接点状态",
                    "dataType": {
                        "type": "enum",
                        "specs": {
                            "0": "正常",
                            "1": "触发"
                        }
                    }
                }
            ],
            "identifier": "DryContactAlarm",
            "method": "thing.event.DryContactAlarm.post",
            "name": "DryContactAlarm",
            "type": "alarm",
            "required": true,
            "desc": "干触点传感器告警"
        }
    ]
}