{
	"schema": "https://iot-ap.ikonke.com/model/product_3106.json",
    "productType": "sensor",
    "version": "1.1",
	"profile": {
		"heartbeat": "300",
		"productCode": "3106",
		"productName": "凯普乐系列.燃气报警器KZ3S(KONKE)"
	},
	"services": [
        {
            "outputData": [
                {
                    "identifier": "GasSensorState",
                    "name": "燃气检测状态",
                    "dataType": {
                        "type": "enum",
                        "specs": {
                            "0": "正常",
                            "1": "燃气泄漏"
                        }
                    }
                },
                {
                    "identifier": "SensorState",
                    "name": "传感器状态",
                    "dataType": {
                        "type": "enum",
                        "specs": {
                            "0": "正常",
                            "1": "故障"
                        }
                    }
                }
            ],
            "identifier": "get",
            "inputData": [
                "GasSensorState",
                "SensorState"
            ],
            "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": "SensorState",
            "name": "传感器状态",
            "accessMode": "r",
            "required": false,
            "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": "GasSensorState",
                    "name": "燃气检测状态",
                    "dataType": {
                        "type": "enum",
                        "specs": {
                            "0": "正常",
                            "1": "燃气泄漏"
                        }
                    }
                },
                {
                    "identifier": "SensorState",
                    "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.gasAlarm.post",
            "name": "gasAlarm",
            "type": "alarm",
            "required": true,
            "desc": "燃气告警"
        }, 
        {
            "identifier": "sensorAlarm",
            "name": "传感器故障告警",
            "type": "alert",
            "required": true,
            "method": "thing.event.sensorAlarm.post",
            "outputData": [
                {
                    "identifier": "SensorState",
                    "name": "传感器状态",
                    "dataType": {
                        "type": "enum",
                        "specs": {
                            "0": "正常",
                            "1": "故障"
                        }
                    }
                }
            ]
        }
    ]
}