forked from AdyRock/com.onvif
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.json
530 lines (530 loc) · 13.5 KB
/
app.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
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
{
"id": "com.onvif",
"version": "0.0.30",
"compatibility": ">=3.0.0",
"sdk": 2,
"name": {
"en": "ONVIF Camera",
"de": "ONVIF Kamera"
},
"description": {
"en": "Support for ONVIF compatible cameras",
"de": "Unterstützung für ONVIF kompatible Kameras"
},
"category": [
"video"
],
"permissions": [],
"bugs": {
"url": "https://github.com/AdyRock/com.onvif/issues"
},
"source": "https://github.com/AdyRock/com.onvif",
"homeyCommunityTopicId": 28377,
"images": {
"large": "/assets/images/large.png",
"small": "/assets/images/small.png"
},
"author": {
"name": "Adrian Rockall",
"email": "ady@rockall.plus.com"
},
"contributors": {
"translators": [
{
"name": "🇩🇪 - Markus Mahr"
}
]
},
"flow": {
"triggers": [
{
"id": "motionEnabledTrigger",
"title": {
"en": "Motion enabled",
"de": "Bewegung eingeschaltet"
},
"args": [
{
"type": "device",
"name": "device",
"filter": "driver_id=camera"
}
]
},
{
"id": "motionDisabledTrigger",
"title": {
"en": "Motion disabled",
"de": "Bewegung abgeschaltet"
},
"args": [
{
"type": "device",
"name": "device",
"filter": "driver_id=camera"
}
]
},
{
"id": "snapshotReadyTrigger",
"title": {
"en": "Now snapshot ready",
"de": "Keine Standbilder bereit"
},
"tokens": [
{
"name": "image",
"type": "image",
"title": {
"en": "Now Image",
"de": "Standbild erstellen"
}
}
],
"args": [
{
"type": "device",
"name": "device",
"filter": "driver_id=camera"
}
]
},
{
"id": "eventShotReadyTrigger",
"title": {
"en": "Motion snapshot ready",
"de": "Momentaufnahme bereit"
},
"tokens": [
{
"name": "eventImage",
"type": "image",
"title": {
"en": "Motion Image",
"de": "Momentaufnahme"
}
}
],
"args": [
{
"type": "device",
"name": "device",
"filter": "driver_id=camera"
}
]
}
],
"conditions": [
{
"id": "motionEnabledCondition",
"title": {
"en": "Motion is !{{enabled|disabled}}",
"de": "Bewegung ist !{{eingeschaltet|abgeschaltet}}
},
"args": [
{
"type": "device",
"name": "device",
"filter": "driver_id=camera"
}
]
}
],
"actions": [
{
"id": "motionEnableAction",
"title": {
"en": "Enable motion",
"de": "Bewegung einschalten"
},
"args": [
{
"type": "device",
"name": "device",
"filter": "driver_id=camera"
}
]
},
{
"id": "motionDisableAction",
"title": {
"en": "Disable motion",
"de": "Bewegung abschalten"
},
"args": [
{
"type": "device",
"name": "device",
"filter": "driver_id=camera"
}
]
},
{
"id": "snapshotAction",
"title": {
"en": "Update Now snapshot",
"de": "Standbild jetzt erneuern"
},
"args": [
{
"type": "device",
"name": "device",
"filter": "driver_id=camera"
}
]
}
]
},
"drivers": [
{
"id": "camera",
"name": {
"en": "Camera",
"de": "Kamera"
},
"class": "sensor",
"capabilities": [
"motion_enabled",
"alarm_motion",
"alarm_tamper",
"event_time",
"tamper_time",
"date_time",
"button.syncTime"
],
"capabilitiesOptions": {
"button.syncTime": {
"maintenanceAction": true,
"title": {
"en": "Sync. Time",
"de": "Sync. Uhrzeit"
},
"desc": {
"en": "Set the camera time to Homey's time.",
"de": "Setzte die Kamerazeit mit Homeys Zeit gleich"
}
},
"alarm_tamper": {
"title": {
"en": "Offline / Tamper Alarm",
"de": "Offline / Manipulationsalarm"
}
}
},
"pair": [
{
"id": "list_devices",
"template": "list_devices",
"navigation": {
"next": "login"
},
"options": {
"singular": true
}
},
{
"id": "login",
"template": "login_credentials"
},
{
"id": "add_devices",
"template": "add_devices"
}
],
"repair": [
{
"id": "login",
"template": "login_credentials"
}
],
"settings": [
{
"type": "group",
"label": {
"en": "Credentials",
"de": "Zugangsdaten"
},
"children": [
{
"id": "username",
"type": "text",
"label": {
"en": "User Name",
"de": "Benutzernamen"
},
"value": "",
"hint": {
"en": "User name required to login to the camera.",
"de": "Benutzername zum Zugang zur Kamera erforderlich."
}
},
{
"id": "password",
"type": "password",
"label": {
"en": "Password",
"de": "Passwort"
},
"value": "",
"hint": {
"en": "Password required to login to the camera.",
"de": "Passwort zum Zugang zur Kamera erforderlich."
}
}
]
},
{
"type": "group",
"label": {
"en": "Motion Trigger",
"de": "Bewegungsmelder"
},
"children": [
{
"id": "classType",
"type": "dropdown",
"label": {
"en": "Device Class",
"de": "Geräteklasse"
},
"value": "sensor",
"hint": {
"en": "When set to Sensor an icon appears on the device tile when motion is detected. When set to Camera, the image might be displayed in other dashboards.",
"de": "Wenn Sensor ausgewählt wird, wird bei Bewegung ein Icon in der Gerätekachel angezeigt. When Kamera ausgewählt wird, wird ein Bild in anderen Dashboards dargestellt."
},
"values": [
{
"id": "sensor",
"label": {
"en": "Sensor",
"de": "Sensor"
}
},
{
"id": "camera",
"label": {
"en": "Camera",
"de": "Kamera"
}
}
]
},
{
"id": "single",
"type": "checkbox",
"label": {
"en": "Single",
"de": "Einzeln"
},
"value": true,
"hint": {
"en": "Motion detection waits for no motion before triggering a new motion.",
"de": "Bewegungserkennung wartet bis keine Bewegung mehr auftritt, bevor eine weitere Bewegung gemeldet wird."
}
},
{
"id": "delay",
"type": "number",
"label": {
"en": "Delay",
"de": "Verzögerung"
},
"value": 0.5,
"units": "seconds",
"hint": {
"en": "Delay before image capture after motion triggered.",
"de": "Verzögerung bei Bewegung, bevor ein Standbild aufgenommen wird."
}
},
{
"id": "preferPullEvents",
"type": "checkbox",
"label": {
"en": "Prefer Pull Events",
"de": "Bevorzuge Empfangsmitteilungen"
},
"value": false,
"hint": {
"en": "If both Pull and Push events are available then choose Pull when checked. Push is more efficient but may not work on some network setups.",
"de": "Wenn beide Übertragungsmöglichkeiten vorhanden sind, wird der Empfang bevorzugt. Die Anfrage ist effizienter, kann aber in manchen Netzwerken nicht funktionieren."
}
},
{
"id": "timeFormat",
"type": "dropdown",
"label": {
"en": "Time Format",
"de": "Zeitformat"
},
"value": "mm_dd",
"hint": {
"en": "The format to show the time capabilities.",
"de": "Zeitformat das zur Anzeige genutzt werden soll."
},
"values": [
{
"id": "raw",
"label": {
"en": "Direct From Camera",
"de": "Direkt von der Kamera"
}
},
{
"id": "system",
"label": {
"en": "Local",
"de": "Lokal"
}
},
{
"id": "mm_dd",
"label": {
"en": "Short HH:MM DD-MM",
"de": "Kurz HH:MM DD-MM"
}
}
]
}
]
},
{
"type": "group",
"label": {
"en": "Camera Information",
"de": "Kamera Informationen"
},
"children": [
{
"id": "manufacturer",
"type": "label",
"label": {
"en": "Manufacturer",
"de": "Hersteller"
},
"value": ""
},
{
"id": "model",
"type": "label",
"label": {
"en": "Model",
"de": "Model"
},
"value": ""
},
{
"id": "serialNumber",
"type": "label",
"label": {
"en": "Serial Number",
"de": "Serial Nummer"
},
"value": ""
},
{
"id": "firmwareVersion",
"type": "label",
"label": {
"en": "Firmware Version",
"de": "Firmware Version"
},
"value": ""
},
{
"id": "ip",
"type": "label",
"label": {
"en": "IP Address",
"de": "IP-Addresse"
},
"value": ""
},
{
"id": "port",
"type": "label",
"label": {
"en": "Port",
"de": "Port"
},
"value": ""
},
{
"id": "url",
"type": "label",
"label": {
"en": "ONVIF Snapshot URL",
"de": "ONVIF Standbild URL"
},
"value": ""
},
{
"id": "notificationMethods",
"type": "label",
"label": {
"en": "ONVIF Notification methods",
"de": "ONVIF Mitteilungs Methode"
},
"value": ""
},
{
"id": "notificationTypes",
"type": "label",
"label": {
"en": "ONVIF Notification types",
"de": "ONVIF Mitteilungs Typen"
},
"value": ""
}
]
}
],
"images": {
"large": "/drivers/camera/assets/images/large.png",
"small": "/drivers/camera/assets/images/small.png"
}
}
],
"capabilities": {
"date_time": {
"type": "string",
"title": {
"en": "Camera Time",
"de": "Kamera Zeit"
},
"icon": "/assets/camera_time.svg",
"getable": true,
"setable": false
},
"event_time": {
"type": "string",
"title": {
"en": "Motion Event Time",
"de": "Bewegungsauslösungszeit"
},
"icon": "/assets/motion_time.svg",
"getable": true,
"setable": false
},
"motion_enabled": {
"type": "boolean",
"title": {
"en": "Motion detection",
"de": "Bewegung erkannt"
},
"getable": true,
"setable": true,
"uiComponent": "toggle",
"icon": "/assets/motion.svg"
},
"tamper_time": {
"type": "string",
"title": {
"en": "Offline / Tamper Time",
"de": "Offline / Manipulationszeit"
},
"icon": "/assets/tamper_time.svg",
"getable": true,
"setable": false
}
}
}