{
	"schema": "https://iot-ap.ikonke.com/model/product_3055.json",
    "productType": "sensor",
    "version": "1.1",
	"profile": {
		"heartbeat": "1200",
		"productCode": "3055",
        "productName": "邦德系列.水浸传感器(KONKE)",
        "sleepTime": "30000"
	},
	"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": "get",
            "inputData": [
                "WaterSensorState", 
                "Battery"
            ],
            "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": "SensorType",
            "name": "安防等级",
            "accessMode": "rw",
            "required": true,
            "dataType": {
                "type": "enum",
                "specs": {
                    "0": "在家安防",
                    "1": "室外安防",
					"2": "24小时警戒",
					"3": "无警戒"
                }
            }
        }
    ],
    "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": "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": "alert",
            "required": true,
            "alarmbit":3,
            "desc": "低电量告警"
        }
    ]
}