You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
5.1 KiB
1 lines
5.1 KiB
{"id":"smoke001","name":"烟感001","describe":"火灾预警设备","messageProtocol":"demo-v1","metadata":"{\"properties\":[{\"id\":\"threshold\",\"name\":\"警报阈值\",\"dataType\":\"double\",\"valueType\":{\"min\":\"0\",\"max\":\"100\",\"step\":\"0.1\",\"unit\":\"percent\",\"type\":\"double\"},\"expands\":{\"readOnly\":\"false\",\"report\":\"false\"},\"description\":\"设备报警阈值\"},{\"id\":\"voice_level\",\"name\":\"警报声响级别\",\"dataType\":\"int\",\"valueType\":{\"min\":\"\",\"max\":\"\",\"step\":\"\",\"unit\":\"\",\"type\":\"int\"},\"expands\":{\"readOnly\":\"false\",\"report\":\"false\"},\"description\":\"警报声响级别\"}],\"functions\":[],\"events\":[{\"id\":\"fire_alarm\",\"name\":\"火灾警报\",\"dataType\":\"object\",\"valueType\":{\"properties\":[{\"id\":\"devid\",\"name\":\"设备编号\",\"dataType\":\"string\",\"valueType\":{\"expands\":{\"maxLength\":\"2048\"},\"type\":\"string\"},\"description\":\"设备编号\"},{\"id\":\"pname\",\"name\":\"设备型号名称\",\"dataType\":\"string\",\"valueType\":{\"expands\":{\"maxLength\":\"2048\"},\"type\":\"string\"},\"description\":\"设备型号名称\"},{\"id\":\"aid\",\"name\":\"区域 ID\",\"dataType\":\"string\",\"valueType\":{\"expands\":{\"maxLength\":\"2048\"},\"type\":\"string\"},\"description\":\"区域 ID\"},{\"id\":\"a_name\",\"name\":\"区域名称\",\"dataType\":\"string\",\"valueType\":{\"expands\":{\"maxLength\":\"2048\"},\"type\":\"string\"},\"description\":\"区域名称\"},{\"id\":\"b_name\",\"name\":\"建筑名称\",\"dataType\":\"string\",\"valueType\":{\"expands\":{\"maxLength\":\"2048\"},\"type\":\"string\"},\"description\":\"建筑名称\"},{\"id\":\"l_name\",\"name\":\"位置名称\",\"dataType\":\"string\",\"valueType\":{\"expands\":{\"maxLength\":\"2048\"},\"type\":\"string\"},\"description\":\"位置名称\"},{\"id\":\"alarm_type\",\"name\":\"报警类型\",\"dataType\":\"string\",\"valueType\":{\"expands\":{\"maxLength\":\"2048\"},\"type\":\"string\"},\"description\":\"报警类型\"},{\"id\":\"alarm_describe\",\"name\":\"报警描述\",\"dataType\":\"string\",\"valueType\":{\"expands\":{\"maxLength\":\"2048\"},\"type\":\"string\"},\"description\":\"报警描述\"},{\"id\":\"event_id\",\"name\":\"事件 ID\",\"dataType\":\"string\",\"valueType\":{\"expands\":{\"maxLength\":\"2048\"},\"type\":\"string\"},\"description\":\"事件 ID\"},{\"id\":\"event_count\",\"name\":\"该事件消息次数\",\"dataType\":\"int\",\"valueType\":{\"min\":\"\",\"max\":\"\",\"step\":\"\",\"unit\":\"\",\"type\":\"int\"},\"description\":\"该事件消息次数\"},{\"id\":\"timestamp\",\"name\":\"警报时间\",\"dataType\":\"date\",\"valueType\":{\"dateFormat\":\"\",\"type\":\"date\"},\"description\":\"警报时间\"}],\"type\":\"object\"},\"expands\":{\"level\":\"urgent\",\"eventType\":\"reportEvent\"},\"description\":\"火灾警报\"},{\"id\":\"fault_alarm\",\"name\":\"故障警报\",\"dataType\":\"object\",\"valueType\":{\"properties\":[{\"id\":\"devid\",\"name\":\"设备编号\",\"dataType\":\"string\",\"valueType\":{\"expands\":{\"maxLength\":\"2048\"},\"type\":\"string\"},\"description\":\"设备编号\"},{\"id\":\"pname\",\"name\":\"设备型号名称\",\"dataType\":\"string\",\"valueType\":{\"expands\":{\"maxLength\":\"2048\"},\"type\":\"string\"},\"description\":\"设备型号名称\"},{\"id\":\"aid\",\"name\":\"区域 ID\",\"dataType\":\"string\",\"valueType\":{\"expands\":{\"maxLength\":\"2048\"},\"type\":\"string\"},\"description\":\"区域 ID\"},{\"id\":\"a_name\",\"name\":\"区域名称\",\"dataType\":\"string\",\"valueType\":{\"expands\":{\"maxLength\":\"2048\"},\"type\":\"string\"},\"description\":\"区域名称\"},{\"id\":\"b_name\",\"name\":\"建筑名称\",\"dataType\":\"string\",\"valueType\":{\"expands\":{\"maxLength\":\"2048\"},\"type\":\"string\"},\"description\":\"建筑名称\"},{\"id\":\"l_name\",\"name\":\"位置名称\",\"dataType\":\"string\",\"valueType\":{\"expands\":{\"maxLength\":\"2048\"},\"type\":\"string\"},\"description\":\"位置名称\"},{\"id\":\"timestamp\",\"name\":\"消息时间\",\"dataType\":\"date\",\"valueType\":{\"dateFormat\":\"\",\"type\":\"date\"},\"description\":\"消息时间\"},{\"id\":\"alarm_type\",\"name\":\"报警类型\",\"dataType\":\"int\",\"valueType\":{\"min\":\"\",\"max\":\"\",\"step\":\"\",\"unit\":\"\",\"type\":\"int\"},\"description\":\"报警类型\"},{\"id\":\"alarm_describe\",\"name\":\"报警描述\",\"dataType\":\"string\",\"valueType\":{\"expands\":{\"maxLength\":\"2048\"},\"type\":\"string\"},\"description\":\"报警描述\"},{\"id\":\"event_id\",\"name\":\"事件 ID\",\"dataType\":\"string\",\"valueType\":{\"expands\":{\"maxLength\":\"2048\"},\"type\":\"string\"},\"description\":\"事件 ID\"},{\"id\":\"event_count\",\"name\":\"该事件消息次数\",\"dataType\":\"int\",\"valueType\":{\"min\":\"\",\"max\":\"\",\"step\":\"\",\"unit\":\"\",\"type\":\"int\"},\"description\":\"该事件消息次数\"}],\"type\":\"object\"},\"expands\":{\"level\":\"warn\",\"eventType\":\"reportEvent\"},\"description\":\"故障警报\"}]}","transportProtocol":"MQTT","deviceType":{"text":"设备","value":"device"},"state":1,"creatorId":"admin","createTime":1577522714037,"orgId":"","_id":7,"_uid":7} |