{
  "device_records":
  [
      {
      "_comment": "Everspring SP814 Motion Detector",
      "vid":96,
      "ptype": 1,
      "pid":2,
      "category":11,
      "ep": [
                {
                "epid":0,
                "interface":[
                               {
                               "if_type": 1,
                               "grp_id": [1]
                               },
                               {
                               "if_type": 3,
                               "bin_sensor_type": 12
                               }

                            ]
                }

            ]

      },
      {
      "_comment": "Everspring HSP02 Motion Detector",
      "vid":278,
      "ptype": 1,
      "pid":1,
      "category":11,
      "ep": [
                {
                "epid":0,
                "interface":[
                               {
                               "if_type": 1,
                               "grp_id": [1]
                               },
                               {
                               "if_type": 3,
                               "bin_sensor_type": 12
                               },
                               {
                               "if_type": 6,
                               "alarm":[
                                       	{ 
											"match":[
															{
																"alarm_type": 1,
																"alarm_level": 2
															}
													],
											"result":[
															{
																"alarm_type_name": "alarm",
																"alarm_level_name": "Unit is powered up"
															}
														]
										},
										{
											"match":[
															{
																"alarm_type": 1,
																"alarm_level": 255
															}
													],
											"result":[
															{
																"alarm_type_name": "alarm",
																"alarm_level_name": "Low battery"
															}
													]
										}
                                       ]

                               }

                            ]
                }
            ]
      },
      {
      "_comment": "Everspring SM103 Door/Window Sensor",
      "vid":96,
      "ptype": 2,
      "pid":1,
      "category":11,
      "ep": [
                {
                "epid":0,
                "interface":[
                               {
                               "if_type": 1,
                               "grp_id": [1]
                               },
                               {
                               "if_type": 3,
                               "bin_sensor_type": 10
                               }
                            ]
                }
            ]
      },
      {
      "_comment": "Everspring ST814 Temperature/Humidity Detector",
      "vid":96,
      "ptype": 6,
      "pid":1,
      "category":11,
      "ep": [
                {
                "epid":0,
                "interface":[
                               {
                               "if_type": 1,
                               "grp_id": [1]
                               },
                               {
                               "if_type": 4,
                               "sensor_type": 1,
                               "sensor_unit": 1
                               }
                            ]
                },
                {
                "epid":1,
                "interface":[
                               {
                               "if_type": 4,
                               "sensor_type": 1,
                               "sensor_unit": 1
                               }
                            ]
                },
                {
                "epid":2,
                "interface":[
                               {
                               "if_type": 4,
                               "sensor_type": 5,
                               "sensor_unit": 0
                               }
                            ]
                }

            ]

      },
      {
      "_comment": "Vision ZP 3102 Motion and Temperature Sensors",
      "vid":265,
      "ptype": 8194,
      "pid":515,
      "category":11,
      "ep": [
                {
                "epid":0,
                "interface":[
                               {
                               "if_type": 4,
                               "sensor_type": 1,
                               "sensor_unit": 0
                               }
                            ]
                }

            ]

      },
      {
      "_comment": "Vision ZS 5101 Shock Sensor",
      "vid":265,
      "ptype": 8195,
      "pid":770,
      "category":11
      },
      {
      "_comment": "Vision ZS 6101 Smoke Detector",
      "vid":265,
      "ptype": 8196,
      "pid":1027,
      "category":1,
      "ep": [
                {
                "epid":0,
                "interface":[
                               {
                               "if_type": 1,
                               "grp_id": [1]
                               },
                               {
                               "if_type": 3,
                               "bin_sensor_type": 2
                               }

                            ]
                }

            ]

      },
      {
      "_comment": "Vision ZS 1601 Siren and Strobe Alarm",
      "vid":265,
      "ptype": 8197,
      "pid":1283,
      "category":4
      },
      {
      "_comment": "RCS TBZ48 Thermostat",
      "vid":16,
      "ptype": 21570,
      "pid":21554,
      "category":26,
      "ep": [
                {
                "epid":0,
                "interface":[
                               {
                               "if_type": 4,
                               "sensor_type": 1,
                               "sensor_unit": 1
                               }
                            ]
                }

            ]

      },
      {
      "_comment": "Fibaro Flood Sensor FGFS-101",
      "vid":271,
      "ptype": 2816,
      "pid":4097,
      "category":1,
      "ep": [
                {
                "epid":0,
		"interface":[
				{
				"if_type": 1,
				"grp_id": [2]
				}
			    ]
		}
	    ]
      },
      {
      "_comment": "Fibaro Smoke Sensor FGSS-001",
      "vid":271,
      "ptype": 3072,
      "pid":4096,
      "category":1,
      "ep": [
                {
                "epid":0,
		"interface":[
				{
				"if_type": 1,
				"grp_id": [2]
				}
			    ]
		}
	    ]
      },
      {
      "_comment": "Fibaro Door/Window Sensor FGK-101",
      "vid":271,
      "ptype": 1792,
      "pid":4096,
      "category":11,
      "ep": [
                {
                "epid":0,
                "interface":[
                		{
                		"if_type": 1,
                		"grp_id": [1]
                		},
                		{
                		"if_type": 3,
                		"bin_sensor_type": 10
                		}
                            ]
                }
            ]
      },
      {
      "_comment": "Wintop iDoorSensor",
      "vid":151,
      "ptype":4482,
      "pid":17665,
      "category":11,
      "ep": [
                {
                "epid":0,
                "interface":[
				{
				"if_type": 1,
				"grp_id": [2]
				},
				{
				"if_type": 3,
				"bin_sensor_type": 10
				},
				{
				"if_type": 6,
				"alarm":[
							{
								"match": [
												{
													"alarm_type": 2,
													"alarm_level": 0
												}
										],
								"result": [
												{
													"zw_alarm_type": 6,
													"alarm_type_name": "Access Control",
													"zw_alarm_event": 23,
													"alarm_level_name": "Window-Door is closed"
												}
											]
							},
							{
								"match": [
												{
													"alarm_type":2,
													"alarm_level": 255
												}
										],
								"result":[
												{
													"zw_alarm_type": 6,
													"alarm_type_name": "Access Control",
													"zw_alarm_event": 22,
													"alarm_level_name": "Window-Door is opened"
												}		
											]
							}
						]
                }
			   ]
				}	
      	   ]
      },
      {
      "_comment": "Diehl AKO Binary Switch",
      "vid":259,
      "ptype":1,
      "pid":2,
      "category":2
      },
      {
      "_comment": "GreenWave N210-F Binary Switch",
      "vid":153,
      "ptype":2,
      "pid":2,
      "category":2,
      "ep": [
                {
                "epid":0,
                "interface":[
                               {
                               "if_type": 5,
                               "meter_type": 1,
                               "meter_supported_units": 1
                               }
                            ]
                }
            ]
      },
      {
      "_comment": "Wintop Binary Switch",
      "vid":151,
      "ptype":26945,
      "pid":17665,
      "category":2,
      "ep": [
                {
                "epid":0,
                "interface":[
                               {
                               "if_type": 4,
                               "sensor_type": 1,
                               "sensor_unit": 0
                               }
                            ]
                }
            ]
      },
      {
      "_comment": "Fibaro Wall Plug FGWPE-101",
      "vid":271,
      "ptype":1536,
      "pid":4096,
      "category":2,
      "ep": [
                {
                "epid":0,
                "interface":[
                               {
                               "if_type": 4,
                               "sensor_type": 4,
                               "sensor_unit": 0
                               }
                            ]
                }
            ]
      },
      {
      "_comment": "Aeon Labs Smart Switch DSC24-ZWUS",
      "vid":134,
      "ptype":3,
      "pid":24,
      "category":2,
      "ep": [
                {
                "epid":0,
                "interface":[
                               {
                               "if_type": 4,
                               "sensor_type": 1,
                               "sensor_unit": 0
                               }
                            ]
                }
            ]
      },
      {
      "_comment": "Aeon Labs Smart Dimmer DSC25-ZWUS",
      "vid":134,
      "ptype":3,
      "pid":25,
      "category":12,
      "ep": [
                {
                "epid":0,
                "interface":[
                               {
                               "if_type": 4,
                               "sensor_type": 1,
                               "sensor_unit": 0
                               }
                            ]
                }
            ]
      },
      {
      "_comment": "LinearLinc LB60Z-1 Dimmable LED Light Bulb",
      "vid":526,
      "ptype":18260,
      "pid":12344,
      "category":12
      },
      {
      "_comment": "Zipato RGBW Light Bulb",
      "vid":305,
      "ptype":2,
      "pid":2,
      "category":12
      },
      {
      "_comment": "Fibaro Motion Sensor FGMS-001",
      "vid":271,
      "ptype":2048,
      "pid":4097,
      "category":11,
      "ep": [
                {
                "epid":0,
		"interface":[     
				{
				"if_type": 1,
	        		"grp_id": [1, 2, 3]
				},
				{
				"if_type": 3,
				"bin_sensor_type": 12
				}	
			    ]
		}
      	    ]
      },
      {
      "_comment": "Trane Thermostat",
      "vid":139,
      "ptype":21586,
      "pid":21553,
      "category":26
      },
      {
      "_comment": "Secure Thermostat",
      "vid":89,
      "ptype":1,
      "pid":3,
      "category":26,
      "ep": [
                {
                "epid":0,
                "interface":[
      				{
				"if_type": 1,
				"grp_id": [1, 3, 4, 5]
				}
			    ]
                }
            ]
      },
      {
      "_comment": "Danfoss RS Room Sensor",
      "vid":2,
      "ptype": 3,
      "pid":32784,
      "category":11,
      "ep": [
                {
                "epid":0,
                "interface":[
                               {
                               "if_type": 4,
                               "sensor_type": 1,
                               "sensor_unit": 0
                               }
                            ]
                }
            ]
      },
      {
      "_comment": "Danfoss Living Connect",
      "vid":2,
      "ptype": 5,
      "pid":380,
      "category":26,
      "ep": [
                {
                "epid":0,
                "interface":[
                               {
                               "if_type": 4,
                               "sensor_type": 1,
                               "sensor_unit": 0
                               }
                            ]
                }
            ]
      },
      {
      "_comment": "Nodon Octan Remote",
      "vid":357,
      "ptype":2,
      "pid":1,
      "category":17
      },
      {
      "_comment": "Vision Doorlock",
      "vid":265,
      "ptype":8198,
      "pid":1569,
      "category":7
      },
      {
      "_comment": "Schlage FE599 Wireless Lock",
      "vid":59,
      "ptype": 25419,
      "pid":20556,
      "category":7,
      "ep": [
                {
                "epid":0,
                "interface":[
                               {
                               "if_type": 1,
                               "grp_id": [2]
                               },
                               {
                               "if_type": 6,
                               "alarm":[
                                         	{
                                         		"match":[
															{
																"alarm_type": 16,
																"alarm_level" : 1
															}
														],
												"result":[
															{
																"alarm_type_name": "User access alarm",
																"alarm_level_name": "User id 1"
															}
														]
											},
											{
                                         		"match":[
															{
																"alarm_type": 16,
																"alarm_level" : 2
															}
														],
												"result":[
															{
																"alarm_type_name": "User access alarm",
																"alarm_level_name": "User id 2"
															}
														]
											},
											{
												"match":[
															{
																"alarm_type": 16,
																"alarm_level" : 3
															}
														],
												"result":[
															{
																"alarm_type_name": "User access alarm",
																"alarm_level_name": "User id 3"
															}
														]
											},
											{
                                         		"match":[
															{
																"alarm_type": 16,
																"alarm_level" : 4
															}
														],
												"result":[
															{
																"alarm_type_name": "User access alarm",
																"alarm_level_name": "User id 4"
															}
														]
											},
											{
                                         		"match":[
															{
																"alarm_type": 16,
																"alarm_level" : 5
															}
														],
												"result":[
															{
																"alarm_type_name": "User access alarm",
																"alarm_level_name": "User id 5"
															}
														]
											},
											{
                                         		"match":[
															{
																"alarm_type": 16,
																"alarm_level" : 6
															}
														],
												"result":[
															{
																"alarm_type_name": "User access alarm",
																"alarm_level_name": "User id 6"
															}
														]
											},
											{
                                         		"match":[
															{
																"alarm_type": 16,
																"alarm_level" : 7
															}
														],
												"result":[
															{
																"alarm_type_name": "User access alarm",
																"alarm_level_name": "User id 7"
															}
														]
											},
											{
                                         		"match":[
															{
																"alarm_type": 16,
																"alarm_level" : 8
															}
														],
												"result":[
															{
																"alarm_type_name": "User access alarm",
																"alarm_level_name": "User id 8"
															}
														]
											},
											{
                                         		"match":[
															{
																"alarm_type": 16,
																"alarm_level" : 9
															}
														],
												"result":[
															{
																"alarm_type_name": "User access alarm",
																"alarm_level_name": "User id 9"
															}
														]
											},
											{
                                         		"match":[
															{
																"alarm_type": 16,
																"alarm_level" : 10
															}
														],
												"result":[
															{
																"alarm_type_name": "User access alarm",
																"alarm_level_name": "User id 10"
															}
														]
											},
											{
                                         		"match":[
															{
																"alarm_type": 16,
																"alarm_level" : 11
															}
														],
												"result":[
															{
																"alarm_type_name": "User access alarm",
																"alarm_level_name": "User id 11"
															}
														]
											},
											{
                                         		"match":[
															{
																"alarm_type": 16,
																"alarm_level" : 12
															}
														],
												"result":[
															{
																"alarm_type_name": "User access alarm",
																"alarm_level_name": "User id 12"
															}
														]
											},
											{
                                         		"match":[
															{
																"alarm_type": 16,
																"alarm_level" : 13
															}
														],
												"result":[
															{
																"alarm_type_name": "User access alarm",
																"alarm_level_name": "User id 13"
															}
														]
														},
											{
                                         		"match":[
															{
																"alarm_type": 16,
																"alarm_level" : 14
															}
														],
												"result":[
															{
																"alarm_type_name": "User access alarm",
																"alarm_level_name": "User id 14"
															}
														]
											},
											{
                                         		"match":[
															{
																"alarm_type": 16,
																"alarm_level" : 15
															}
														],
												"result":[
															{
																"alarm_type_name": "User access alarm",
																"alarm_level_name": "User id 15"
															}
														]
											},
											{
                                         		"match":[
															{
																"alarm_type": 16,
																"alarm_level" : 16
															}
														],
												"result":[
															{
																"alarm_type_name": "User access alarm",
																"alarm_level_name": "User id 16"
															}
														]
											},
											{
                                         		"match":[
															{
																"alarm_type": 16,
																"alarm_level" : 17
															}
														],
												"result":[
															{
																"alarm_type_name": "User access alarm",
																"alarm_level_name": "User id 17"
															}
														]
											},
											{
                                         		"match":[
															{
																"alarm_type": 16,
																"alarm_level" : 18
															}
														],
												"result":[
															{
																"alarm_type_name": "User access alarm",
																"alarm_level_name": "User id 18"
															}
														]
											},
											{
                                         		"match":[
															{
																"alarm_type": 16,
																"alarm_level" : 19
															}
														],
												"result":[
															{
																"alarm_type_name": "User access alarm",
																"alarm_level_name": "User id 19"
															}
														]
											},
											{
												"match":[
															{
																"alarm_type": 32,
																"alarm_level" : 255
															}
														],
												"result":[
															{
																"zw_alarm_type": 6,
																"alarm_type_name": "Lock access control alarm",
																"zw_alarm_event": 12,
																"alarm_level_name": "All users were deleted"
															}
														]
											},
											{
												"match":[
															{
																"alarm_type": 48,
																"alarm_level" : 255
															}
														],
												"result":[
															{
																"alarm_type_name": "Lock access control alarm",
																"alarm_level_name": "Lock is reset to factory default"
															}
														]
											},
											{
												"match":[
															{
																"alarm_type": 96,
																"alarm_level" : 255
															}
														],
												"result":[
															{
																"zw_alarm_type": 6,
																"alarm_type_name": "Lock access control alarm",
																"zw_alarm_event": 16,
																"alarm_level_name": "Keypad temporary disabled"
															}
														]
											},
											{
												"match":[
															{
																"alarm_type": 112,
																"alarm_level" : 255
															}
														],
												"result":[
															{
																"zw_alarm_type": 6,
																"alarm_type_name": "Lock access control alarm",
																"zw_alarm_event": 18,
																"alarm_level_name": "New program code entered"
															}
														]
											},
											{
												"match":[
															{
																"alarm_type": 128,
																"alarm_level" : 255
															}
														],
												"result":[
															{
																"alarm_type_name": "Lock access control alarm",
																"alarm_level_name": "New keypad battery (lock was reset)"
															}
														]
											},
                                         	{
												"match":[
															{
																"alarm_type": 112,
																"alarm_level" : 255
															}
														],
												"result":[
															{
																"zw_alarm_type": 6,
																"alarm_type_name": "Lock access control alarm",
																"zw_alarm_event": 17,
																"alarm_level_name": "Keypad busy"
															}
														]
											}
                                        ]
								}
							]
                }
			]

      },
      {
      "_comment": "Yale Vision Door lockAll alarms manufactured by Y company. pid= -1 means don't care; i.e. it matches anything",
      "vid":265, 
      "ptype": 2, 
      "pid":0, 
      "category":7, 
      "ep": [ 
                {
                "epid":0, 
                "interface":[
                               {
                               "if_type": 6, 
                               "alarm":[ 
										{
											"match":[
														{
															"alarm_type": 9,                 	
															"alarm_level_range":[0,1] 									
														}
													],
											"result":[
														{
														    "zw_alarm_type": 6,
															"alarm_type_name": "Access Control",
															"zw_alarm_event":11,    	
															"alarm_level_name":"Lock is Jammed"
														}
													]
										},
										{
											"match":[
														{
															"alarm_type": 18,                 	
															"alarm_level_range":[0,255] 									
														}
													],
											"result":[
														{
														    "zw_alarm_type": 6,
															"alarm_type_name": "Access Control",
															"zw_alarm_event":5,    	
															"alarm_level_name":"Keypad Lock"
														}
													]
										},
										{
											"match":[
														{
															"alarm_type": 19,                 	
															"alarm_level_range":[0,250] 									
														}
													],
											"result":[
														{
														    "zw_alarm_type": 6,
															"alarm_type_name": "Access Control",
															"zw_alarm_event":6,    	
															"alarm_level_name":"Keypad Unlock"
														}
													]
										},
										{
											"match":[
														{
															"alarm_type": 21,                 	
															"alarm_level": 1 									
														}
													],
											"result":[
														{
														    "zw_alarm_type": 6,
															"alarm_type_name": "Access Control",
															"zw_alarm_event":1,    	
															"alarm_level_name":"Lock From Inside"
														}
													]
										},
										{
											"match":[
														{
															"alarm_type": 21,                 	
															"alarm_level": 2 									
														}
													],
											"result":[
														{
														    "zw_alarm_type": 6,
															"alarm_type_name": "Access Control",
															"zw_alarm_event":5,    	
															"alarm_level_name":"Keypad Lock",
															"zw_alarm_param_type":4,
															"zw_alarm_param":[1]
														}
													]
										},
										{
											"match":[
														{
															"alarm_type": 22,                 	
															"alarm_level": 1 									
														}
													],
											"result":[
														{
														    "zw_alarm_type": 6,
															"alarm_type_name": "Access Control",
															"zw_alarm_event":2,    	
															"alarm_level_name":"Unlock From Inside",
															"zw_alarm_param":[0,1]
														}
													]
										},
										{
											"match":[
														{
															"alarm_type": 24,                 	
															"alarm_level": 1 									
														}
													],
											"result":[
														{
														    "zw_alarm_type": 6,
															"alarm_type_name": "Access Control",
															"zw_alarm_event":3,    	
															"alarm_level_name":"Lock By Z-Wave"
														}
													]
										},
										{
											"match":[
														{
															"alarm_type": 25,                 	
															"alarm_level": 1 									
														}
													],
											"result":[
														{
														    "zw_alarm_type": 6,
															"alarm_type_name": "Access Control",
															"zw_alarm_event":4,    	
															"alarm_level_name":"Unlock By Z-Wave"
														}
													]
										}          
                                       ]                                      
                               }
                            ]
                }

            ]

      },
	  {
      "_comment": "Yale Yale Door lockAll alarms manufactured by Y company. pid= -1 means don't care; i.e. it matches anything",
      "vid":297, 
      "ptype": 2, 
      "pid":0, 
      "category":7, 
      "ep": [ 
                {
                "epid":0, 
                "interface":[
                               {
                               "if_type": 6, 
                               "alarm":[ 
										{
											"match":[
														{
															"alarm_type": 9,                 	
															"alarm_level_range":[0,1] 									
														}
													],
											"result":[
														{
														    "zw_alarm_type": 6,
															"alarm_type_name": "Access Control",
															"zw_alarm_event":11,    	
															"alarm_level_name":"Lock is Jammed"
														}
													]
										},
										{
											"match":[
														{
															"alarm_type": 18,                 	
															"alarm_level_range":[0,255] 									
														}
													],
											"result":[
														{
														    "zw_alarm_type": 6,
															"alarm_type_name": "Access Control",
															"zw_alarm_event":5,    	
															"alarm_level_name":"Keypad Lock"
														}
													]
										},
										{
											"match":[
														{
															"alarm_type": 19,                 	
															"alarm_level_range":[0,250] 									
														}
													],
											"result":[
														{
														    "zw_alarm_type": 6,
															"alarm_type_name": "Access Control",
															"zw_alarm_event":6,    	
															"alarm_level_name":"Keypad Unlock"
														}
													]
										},
										{
											"match":[
														{
															"alarm_type": 21,                 	
															"alarm_level": 1 									
														}
													],
											"result":[
														{
														    "zw_alarm_type": 6,
															"alarm_type_name": "Access Control",
															"zw_alarm_event":1,    	
															"alarm_level_name":"Lock From Inside"
														}
													]
										},
										{
											"match":[
														{
															"alarm_type": 21,                 	
															"alarm_level": 2 									
														}
													],
											"result":[
														{
														    "zw_alarm_type": 6,
															"alarm_type_name": "Access Control",
															"zw_alarm_event":5,    	
															"alarm_level_name":"Keypad Lock"
														}
													]
										},
										{
											"match":[
														{
															"alarm_type": 22,                 	
															"alarm_level": 1 									
														}
													],
											"result":[
														{
														    "zw_alarm_type": 6,
															"alarm_type_name": "Access Control",
															"zw_alarm_event":2,    	
															"alarm_level_name":"Unlock From Inside"
														}
													]
										},
										{
											"match":[
														{
															"alarm_type": 24,                 	
															"alarm_level": 1 									
														}
													],
											"result":[
														{
														    "zw_alarm_type": 6,
															"alarm_type_name": "Access Control",
															"zw_alarm_event":3,    	
															"alarm_level_name":"Lock By Z-Wave"
														}
													]
										},
										{
											"match":[
														{
															"alarm_type": 25,                 	
															"alarm_level": 1 									
														}
													],
											"result":[
														{
														    "zw_alarm_type": 6,
															"alarm_type_name": "Access Control",
															"zw_alarm_event":4,    	
															"alarm_level_name":"Unlock By Z-Wave"
														}
													]
										}          
                                       ]                           
                               }
                            ]
                }
			]
      },
      {
      "_comment": "Wintop iSensor 1180r",
      "vid":151,
      "ptype": 4480,
      "pid":17664,
      "category":11,
      "ep": [
                {
                "epid":0,
                "interface":[
                               {
                               "if_type": 1,
                               "grp_id": [1]
                               },
                               {
                               "if_type": 3,
                               "bin_sensor_type": 12
                               },
                               {
                               "if_type": 6,
                               "alarm":[
                                         	{
												"match":[
															{
																"alarm_type": 3,
																"alarm_level": 255
															}
														],
												"result":[
															{
																"zw_alarm_type": 7,
																"alarm_type_name": "Burglar",
																"zw_alarm_event": 3,
																"alarm_level_name": "Tamper detected"
															}
														]
											}
                                      ]
                               }
                            ]
                }
            ]
      }
  ]
}
