{
	"schema": "https://iot-ap.ikonke.com/model/product_3109.json",
    "productType": "airswitch gateway",
    "version": "1.1",
	"profile": {
		"heartbeat": "300",
		"productCode": "3109",
		"productName": "智能三相空开管理器Z3S(KONKE)"
	},
    "services": [
        {
            "identifier": "set",
            "name": "set",
            "required": true,
            "callType": "async",
            "desc": "属性设置",
            "method": "thing.service.property.set",
            "inputData": [
                {
                    "identifier":"PowerSwitch",
                    "dataType":{
                        "specs":{
                            "0":"关闭",
                            "1":"打开"
                        },
                        "type":"bool"
                    },
                    "name":"电源开关"
                },
                {
                    "identifier": "OverloadCurrent",
                    "name": "最大电流设定值",
                    "dataType": {
                        "type": "double",
                        "specs": {
                            "unit": "A",
                            "unitName": "安培",
                            "step": "0.01"
                        }
                    }
                },
                {
                    "identifier": "ExcessiveTemperature",
                    "name": "最大温度设定值",
                    "dataType": {
                        "type": "double",
                        "specs": {
                            "unit": "°C",
                            "unitName": "摄氏度",
                            "step": "0.1"
                        }
                    }
                },
                {
                    "identifier": "SwitchEnable",
                    "name": "禁用物理开关",
                    "dataType": {
                        "type": "bool",
                        "specs": {
                            "1": "禁用",
                            "0": "使能"
                        }
                    }
                },
                {
                    "identifier": "BreakTime",
                    "name": "最大电流断开时间",
                    "dataType": {
                        "type": "int",
                        "specs": {
                            "unit": "s",
                            "unitName": "秒",
                            "step": "1"
                        }
                    }
                },
                {
                    "identifier": "RatedVoltage",
                    "name": "额定电压",
                    "dataType": {
                        "type": "int",
                        "specs": {
                            "unit": "V",
                            "unitName": "伏特",
                            "step": "1"
                        }
                    }
                },
                {
                    "identifier": "RatedCurrent",
                    "name": "额定电流",
                    "dataType": {
                        "type": "int",
                        "specs": {
                            "unit": "A",
                            "unitName": "安培",
                            "step": "1"
                        }
                    }
                }
            ],
            "outputData": []
        },
        {
            "identifier": "get",
            "name": "get",
            "required": true,
            "callType": "async",
            "desc": "属性获取",
            "method": "thing.service.property.get",
            "inputData": [
                "PowerSwitch",
                "OverloadCurrent",
                "ExcessiveTemperature",
                "SwitchEnable",
                "BreakTime",
                "RatedVoltage",
                "RatedCurrent"
            ],
            "outputData": []
        }
    ],
    "properties": [
        {
            "identifier": "PowerSwitch",
            "name": "电源开关",
            "accessMode": "rw",
            "required": true,
            "dataType": {
                "type": "enum",
                "specs": {
                    "0": "关闭",
                    "1": "开启"
                }
            }
        },
        {
            "identifier":"LoadAlarmState",
            "name":"负载报警状态",
            "accessMode": "r",
            "required": true,
            "dataType":{
                "specs":{
                    "0":"未报警",
                    "1":"正在报警"
                },
                "type":"bool"
            }
        },
        {
            "identifier":"TemperatureAlarmState",
            "name":"温度报警状态",
            "accessMode": "r",
            "required": true,
            "dataType":{
                "specs":{
                    "0":"未报警",
                    "1":"正在报警"
                },
                "type":"bool"
            }
        }, 
        {
            "identifier":"AlarmType",
            "name":"报警类型",
            "accessMode": "r",
            "required": true,
            "dataType":{
                "specs":{
                    "1":"过载1倍",
                    "2":"过载2倍",
                    "3":"过载5倍",
                    "4":"过载7倍",
                    "5":"过压",
                    "6":"欠压",
                    "7":"过温",
                    "8":"漏电",
                    "9":"短路",
                    "10":"长延时故障",
                    "11":"短延时故障",
                    "12":"瞬时故障"
                },
                "type":"enum"
            }
        },
        {
            "identifier": "OverloadCurrent",
            "name": "最大电流设定值",
            "accessMode": "rw",
            "required": true,
            "dataType": {
                "type": "double",
                "specs": {
                    "unit": "A",
                    "unitName": "安培",
                    "step": "0.01"
                }
            }
        },
        {
            "identifier": "ExcessiveTemperature",
            "name": "最大温度设定值",
            "accessMode": "rw",
            "required": true,
            "dataType": {
                "type": "double",
                "specs": {
                    "unit": "°C",
                    "unitName": "摄氏度",
                    "step": "0.1"
                }
            }
        },
        {
            "identifier": "SwitchEnable",
            "name": "禁用物理开关",
            "accessMode": "rw",
            "required": true,
            "dataType": {
                "type": "bool",
                "specs": {
                    "1": "禁用",
                    "0": "使能"
                }
            }
        },
        {
            "identifier": "BreakTime",
            "name": "最大电流断开时间",
            "accessMode": "rw",
            "required": true,
            "dataType": {
                "type": "int",
                "specs": {
                    "unit": "s",
                    "unitName": "秒",
                    "step": "1"
                }
            }
        },
        {
            "identifier": "RatedVoltage",
            "name": "额定电压",
            "accessMode": "rw",
            "required": true,
            "dataType": {
                "type": "int",
                "specs": {
                    "unit": "V",
                    "unitName": "伏特",
                    "step": "1"
                }
            }
        },
        {
            "identifier": "RatedCurrent",
            "name": "额定电流",
            "accessMode": "rw",
            "required": true,
            "dataType": {
                "type": "int",
                "specs": {
                    "unit": "A",
                    "unitName": "安培",
                    "step": "1"
                }
            }
        }
    ],
    "events": [
        {
            "identifier": "post",
            "name": "post",
            "type": "info",
            "required": true,
            "desc": "属性上报",
            "method": "thing.event.property.post",
            "outputData": [
                {
                    "identifier": "CombineDeviceFlag",
                    "name": "复合设备标识",
                    "dataType": {
                        "type": "int",
                        "specs": {
                            "value": 1
                        }
                    }
                },
                {
                    "identifier": "EpTotal",
                    "name": "内机数+1",
                    "dataType": {
                        "type": "int",
                        "specs": {
                            "desc": "内机+网关 的数量"
                        }
                    }
                },
                {
                    "identifier": "eps",
                    "name": "内机属性集",
                    "dataType": {
                        "type": "array",
                        "specs": {
                            "item": [
                                {
                                    "identifier":"PowerSwitch",
                                    "dataType":{
                                        "specs":{
                                            "0":"关闭",
                                            "1":"打开"
                                        },
                                        "type":"bool"
                                    },
                                    "name":"电源开关"
                                },
                                {
                                    "identifier":"LoadAlarmState",
                                    "name":"负载报警状态",
                                    "dataType":{
                                        "specs":{
                                            "0":"未报警",
                                            "1":"正在报警"
                                        },
                                        "type":"bool"
                                    }
                                },
                                {
                                    "identifier":"TemperatureAlarmState",
                                    "name":"温度报警状态",
                                    "dataType":{
                                        "specs":{
                                            "0":"未报警",
                                            "1":"正在报警"
                                        },
                                        "type":"bool"
                                    }
                                },
                                {
                                    "identifier":"AlarmType",
                                    "name":"报警类型",
                                    "dataType":{
                                        "specs":{
                                            "1":"过载1倍",
                                            "2":"过载2倍",
                                            "3":"过载5倍",
                                            "4":"过载7倍",
                                            "5":"过压",
                                            "6":"欠压",
                                            "7":"过温",
                                            "8":"漏电",
                                            "9":"短路",
                                            "10":"长延时故障",
                                            "11":"短延时故障",
                                            "12":"瞬时故障"
                                        },
                                        "type":"enum"
                                    }
                                },
                                {
                                    "identifier": "OverloadCurrent",
                                    "name": "最大电流设定值",
                                    "dataType": {
                                        "type": "double",
                                        "specs": {
                                            "unit": "A",
                                            "unitName": "安培",
                                            "step": "0.01"
                                        }
                                    }
                                },
                                {
                                    "identifier": "ExcessiveTemperature",
                                    "name": "最大温度设定值",
                                    "dataType": {
                                        "type": "double",
                                        "specs": {
                                            "unit": "°C",
                                            "unitName": "摄氏度",
                                            "step": "0.1"
                                        }
                                    }
                                },
                                {
                                    "identifier": "SwitchEnable",
                                    "name": "禁用物理开关",
                                    "dataType": {
                                        "type": "bool",
                                        "specs": {
                                            "1": "禁用",
                                            "0": "使能"
                                        }
                                    }
                                },
                                {
                                    "identifier": "BreakTime",
                                    "name": "最大电流断开时间",
                                    "dataType": {
                                        "type": "int",
                                        "specs": {
                                            "unit": "s",
                                            "unitName": "秒",
                                            "step": "1"
                                        }
                                    }
                                },
                                {
                                    "identifier": "RatedVoltage",
                                    "name": "额定电压",
                                    "dataType": {
                                        "type": "int",
                                        "specs": {
                                            "unit": "V",
                                            "unitName": "伏特",
                                            "step": "1"
                                        }
                                    }
                                },
                                {
                                    "identifier": "RatedCurrent",
                                    "name": "额定电流",
                                    "dataType": {
                                        "type": "int",
                                        "specs": {
                                            "unit": "A",
                                            "unitName": "安培",
                                            "step": "1"
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            ]
        }
    ]
}