{
	"schema": "https://iot-ap.ikonke.com/model/product_3057.json",
    "productType": "siren",
    "version": "1.1",
	"profile": {
		"heartbeat": "300",
		"productCode": "3057",
		"productName": "邦德系列.声光报警器(KONKE)"
	},
	"services": [
        {
			"outputData": [],
			"identifier": "set",
			"inputData": [
			    {
                    "identifier":"AlarmVolume",
                    "dataType":{
                        "specs":{
                            "0": "低音量",
                            "1": "中音量",
                            "2": "高音量",
                            "3": "超高音量"
                        },
                        "type":"enum"
                    },
                    "name":"告警音量"
                },
                {
                    "identifier": "AlarmDuration",
					"dataType": {
						"type": "int",
						"specs": {
							"min": "1",
							"max": "65535",
							"unit": "s",
							"unitName": "秒",
							"step": "1"
						}
					},
					"name": "告警时间"
                },
                {
                    "identifier": "AlarmState",
                    "name": "声光告警状态",
                    "dataType": {
                        "type": "enum",
                        "specs": {
                            "0": "正常",
                            "1": "告警"
                        }
                    }
                }
			],
			"method": "thing.service.property.set",
			"name": "set",
			"required": true,
			"callType": "async",
			"desc": "属性设置"
		}, 
        {
            "outputData": [
                {
                    "identifier":"AlarmVolume",
                    "dataType":{
                        "specs":{
                            "0": "低音量",
                            "1": "中音量",
                            "2": "高音量",
                            "3": "超高音量"
                        },
                        "type":"enum"
                    },
                    "name":"告警音量"
                },
                {
                    "identifier": "AlarmDuration",
					"dataType": {
						"type": "int",
						"specs": {
							"min": "1",
							"max": "65535",
							"unit": "s",
							"unitName": "秒",
							"step": "1"
						}
					},
					"name": "告警时间"
                },
                {
                    "identifier": "SirenState",
                    "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": [
                "AlarmVolume",
                "AlarmDuration",
                "SirenState",
                "Battery"
            ],
            "method": "thing.service.property.get",
            "name": "get",
            "required": true,
            "callType": "async",
            "desc": "属性获取"
        }
    ],
    "properties": [
        {
            "identifier":"AlarmVolume",
            "accessMode": "rw",
            "required": true,
            "dataType":{
                "specs":{
                    "0": "低音量",
                    "1": "中音量",
                    "2": "高音量",
                    "3": "超高音量"
                },
                "type":"enum"
            },
            "name":"告警音量"
        },
        {
            "identifier": "AlarmDuration",
            "accessMode": "rw",
            "required": true,
            "dataType": {
                "type": "int",
                "specs": {
                    "min": "1",
                    "max": "65535",
                    "unit": "s",
                    "unitName": "秒",
                    "step": "1"
                }
            },
            "name": "告警时间"
        },
        {
            "identifier": "AlarmState",
            "accessMode": "rw",
            "required": true,
            "name": "声光告警状态",
            "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":"AlarmVolume",
                    "dataType":{
                        "specs":{
                            "0": "低音量",
                            "1": "中音量",
                            "2": "高音量",
                            "3": "超高音量"
                        },
                        "type":"enum"
                    },
                    "name":"告警音量"
                },
                {
                    "identifier": "AlarmDuration",
					"dataType": {
						"type": "int",
						"specs": {
							"min": "1",
							"max": "65535",
							"unit": "s",
							"unitName": "秒",
							"step": "1"
						}
					},
					"name": "告警时间"
                },
                {
                    "identifier": "AlarmState",
                    "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": "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": "低电量告警"
        }
    ]
}