{
	"schema": "https://iot-ap.ikonke.com/model/product_3054.json",
    "productType": "sensor",
    "version": "1.1",
	"profile": {
		"heartbeat": "1200",
		"productCode": "3054",
        "productName": "邦德系列.SOS按钮(KONKE)",
        "sleepTime": "30000"
	},
	"services": [
        {
            "outputData": [
                {
                    "identifier": "sosAlarmState",
                    "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": [
                "Battery"
            ],
            "method": "thing.service.property.get",
            "name": "get",
            "required": true,
            "callType": "async",
            "desc": "属性获取"
        }
    ],
	"properties": [
        {
            "identifier": "sosAlarmState",
            "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": "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": "sosAlarm",
            "method": "thing.event.sosAlarm.post",
            "name": "sosAlarm",
            "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": "alarm",
            "required": true,
            "desc": "低电量告警"
        }
    ]
}