-
Notifications
You must be signed in to change notification settings - Fork 13
/
config.schema.json
199 lines (199 loc) · 7.99 KB
/
config.schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
{
"pluginAlias": "dahua-alerts",
"pluginType": "platform",
"singular": true,
"headerDisplay": "Motion alerts for dahua and lorex camera streams in `homebridge-camera-ffmpeg`.<br/>[Buy me a ☕coffee☕](https://www.buymeacoffee.com/kusha)",
"footerDisplay": "Alerts not working? Raise an [Issue](https://github.com/kushagharahi/homebridge-dahua-alerts/issues)!<br />[⭐Star⭐ Project on GitHub](https://github.com/kushagharahi/homebridge-dahua-alerts/stargazers)",
"schema": {
"type": "object",
"properties": {
"host": {
"title": "host",
"type": "string",
"required": false,
"placeholder": "127.0.0.1",
"description": "Host of your Dahua NVR - Required if not overritten in camera(s)"
},
"user": {
"title": "user",
"type": "string",
"required": false,
"placeholder": "admin",
"description": "Username of your Dahua NVR - Required if not overritten in camera(s)"
},
"pass": {
"title": "pass",
"type": "string",
"required": false,
"placeholder": "000000",
"description": "Password of your Dahua NVR - Required if not overritten in camera(s)"
},
"homebridgeCameraFfmpegHttpPort": {
"title": "homebridge-camera-ffmpeg HTTP port",
"type": "number",
"required": true,
"placeholder": "8080",
"description": "homebridge-camera-ffmpeg HTTP port to accept motion notifications"
},
"useHttp": {
"title": "Use Http",
"type": "boolean",
"required": false,
"description": "Use HTTP instead of HTTPs by default."
},
"eventTypes": {
"title": "Event Types",
"type": "object",
"required": true,
"properties": {
"VideoMotion": {
"title": "Video Motion",
"type": "boolean",
"default": true,
"description": "Notify on motion detection events",
"required": false
},
"AlarmLocal": {
"title": "Alarm",
"type": "boolean",
"description": "Notify on alarm detection events",
"required": false
},
"SmartMotionHuman": {
"title": "Smart Motion (Human)",
"type": "boolean",
"description": "Notify on smart motion detection (human) events",
"required": false
},
"SmartMotionVehicle": {
"title": "Smart Motion (Vehicle)",
"type": "boolean",
"description": "Notify on smart motion detection (vehicle) events",
"required": false
},
"CrossLineDetection": {
"title": "Cross Line Detection",
"type": "boolean",
"description": "Notify on tripwire events",
"required": false
},
"CrossRegionDetection": {
"title": "Cross Region Detection",
"type": "boolean",
"description": "Notify on intrusion events",
"required": false
}
}
},
"cameras": {
"title": "Cameras",
"type": "array",
"required": true,
"minLength": 1,
"items": {
"title": "Camera",
"type": "object",
"properties": {
"index": {
"title": "Camera Index",
"type": "number",
"required": true,
"placeholder":"0",
"description": "Index of your camera. From the camera stream you take X from CAM X and subtract 1. So for CAM 1, the index would be 0"
},
"cameraName": {
"title": "Camera Name",
"type": "string",
"required": true,
"description": "Camera name you set in homebridge-camera-ffmpeg"
},
"cameraCredentials": {
"title": "Override Camera Connection Credentials<br />Required if using a standalone camera (without NVR) and/or on a different host/user/pass than the ones (un)defined at the top level",
"type": "object",
"required": false,
"properties": {
"host": {
"title": "host",
"type": "string",
"required": false,
"placeholder": "127.0.0.1",
"description": "Host of your Dahua camera"
},
"user": {
"title": "user",
"type": "string",
"required": false,
"placeholder": "admin",
"description": "Username of your Dahua camera"
},
"pass": {
"title": "pass",
"type": "string",
"required": false,
"placeholder": "000000",
"description": "Password of your Dahua camera"
},
"useHttp": {
"title": "Use Http",
"type": "boolean",
"required": false,
"description": "Use HTTP instead of HTTPs by default."
}
}
}
}
}
}
}
},
"layout":[
{
"key": "host"
},
{
"key": "user"
},
{
"key": "pass"
},
{
"key": "homebridgeCameraFfmpegHttpPort"
},
{
"key": "useHttp"
},
{
"key": "eventTypes",
"type": "section",
"expandable": true,
"expanded": false,
"items":[
"eventTypes.VideoMotion",
"eventTypes.AlarmLocal",
"eventTypes.SmartMotionHuman",
"eventTypes.SmartMotionVehicle",
"eventTypes.CrossLineDetection",
"eventTypes.CrossRegionDetection"
]
},
{
"key": "cameras",
"items": [
"cameras[].index",
"cameras[].cameraName",
{
"key": "cameras[].cameraCredentials",
"type": "section",
"expandable": true,
"expanded": false,
"items":[
"cameras[].cameraCredentials.host",
"cameras[].cameraCredentials.user",
"cameras[].cameraCredentials.pass",
"cameras[].cameraCredentials.useHttp"
]
}
]
}
]
}