forked from schreinco/com.danalock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.json
394 lines (394 loc) · 11.3 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
{
"id": "com.danalock",
"name": {
"en": "Danalock"
},
"sdk": 2,
"version": "2.0.3",
"compatibility": ">=1.5.0",
"author": {
"name": "Athom B.V.",
"email": "apps@athom.com"
},
"contributors": {
"developers": [
{
"name": "Marco Ruiter",
"email": "mruiter@tuxweb.nl"
}
]
},
"category": [
"security"
],
"description": {
"en": "Let Homey control your Danalock locks",
"nl": "Laat Homey je Danalock sloten aansturen"
},
"images": {
"large": "/assets/images/large.jpg",
"small": "/assets/images/small.jpg"
},
"drivers": [
{
"id": "danalock_v2",
"name": {
"en": "Danalock V2",
"nl": "Danalock V2"
},
"images": {
"large": "/drivers/danalock_v2/assets/images/large.jpg",
"small": "/drivers/danalock_v2/assets/images/small.jpg"
},
"class": "lock",
"capabilities": [
"locked",
"measure_battery",
"alarm_battery"
],
"zwave": {
"manufacturerId": 270,
"productTypeId": [
3,
8
],
"productId": 2,
"requireSecure": true,
"productDocumentation": "https://products.z-wavealliance.org/ProductManual/File?folder=&filename=Manuals/1769/Danalock_V2_Product_manual_Z_Wave_V_1.0.3.pdf",
"pid": 1769,
"imageRemotePath": "https://products.z-wavealliance.org/ProductImages/Index?productName=ZC10-16055061",
"learnmode": {
"image": "/drivers/danalock_v2/assets/learnmode.svg",
"instruction": {
"en": "Put Homey into inclusion mode. Hold the button on your Danalock until it beeps twice.",
"nl": "Zet Homey in inclusion modus. Houd de knop op de Danalock ingedrukt tot hij twee keer heeft gepiept."
}
},
"unlearnmode": {
"image": "/drivers/danalock_v2/assets/learnmode.svg",
"instruction": {
"en": "Put Homey into inclusion mode. Hold the button on your Danalock until it beeps twice.",
"nl": "Zet Homey in inclusion modus. Houd de knop op de Danalock ingedrukt tot hij twee keer heeft gepiept."
}
},
"associationGroups": [
1
],
"associationGroupsOptions": {
"1": {
"hint": {
"en": "Z-Wave Plus Lifeline",
"nl": "Z-Wave Plus Lifeline"
}
}
}
},
"settings": [
{
"id": "1",
"type": "dropdown",
"label": {
"en": "Turn direction of the motor",
"nl": "Draairichting van de motor"
},
"value": "0",
"values": [
{
"id": "0",
"label": {
"en": "The motor turns clockwise when latched",
"nl": "De motor draait met de klok mee wanneer vergrendeld"
}
},
{
"id": "1",
"label": {
"en": "The motor turns counterclockwise when latched",
"nl": "De motor draait tegen de klok in wanneer vergrendeld"
}
}
]
},
{
"id": "2",
"type": "dropdown",
"label": {
"en": "Speed (torque) of motor",
"nl": "Snelheid (draaimoment) van de motor"
},
"value": "4",
"hint": {
"en": "Adjust the speed (torque) of the motor",
"nl": "Pas de snelheid (draaimoment) van de motor aan"
},
"values": [
{
"id": "1",
"label": {
"en": "Slowest",
"nl": "Langzaamst"
}
},
{
"id": "2",
"label": {
"en": "Slow",
"nl": "Langzaam"
}
},
{
"id": "3",
"label": {
"en": "Normal",
"nl": "Normaal"
}
},
{
"id": "4",
"label": {
"en": "Fast",
"nl": "Snel"
}
},
{
"id": "5",
"label": {
"en": "Fastest",
"nl": "Snelst"
}
}
]
},
{
"id": "6",
"type": "checkbox",
"label": {
"en": "Enable the sound from latch or unlatch operations",
"nl": "Geluid bij ver-/ontgrendelen"
},
"value": true,
"hint": {
"en": "Sound when locking and unlocking",
"nl": "Geluid bij vergrendeling en ontgrendeling inschakelen"
}
},
{
"id": "8",
"type": "number",
"label": {
"en": "Battery alarm threshold",
"nl": "Batterij alarm grenswaarde"
},
"value": 15,
"attr": {
"min": 0,
"max": 100
},
"hint": {
"en": "When the battery level is below this value, the device will notify the user with a beep sound after latch or unlatch.",
"nl": "Als de batterij onder deze waarde zakt zal het apparaat de gebruiker op de hoogte brengen d.m.v. een pieptoon bij ver-/ontgrendelen."
}
},
{
"id": "9",
"type": "checkbox",
"label": {
"en": "Turn and go",
"nl": "Turn and go"
},
"value": false,
"hint": {
"en": "TurnAndGo on will turn automatically when manual turn is detected",
"nl": "TurnAndGo wordt automatisch ingeschakeld wanneer een handmatige draai wordt gedetecteerd"
}
}
]
},
{
"id": "danalock_v3",
"name": {
"en": "Danalock V3",
"nl": "Danalock V3"
},
"images": {
"large": "/drivers/danalock_v3/assets/images/large.jpg",
"small": "/drivers/danalock_v3/assets/images/small.jpg"
},
"class": "lock",
"capabilities": [
"locked",
"measure_battery",
"alarm_battery"
],
"zwave": {
"manufacturerId": 270,
"productTypeId": 9,
"productId": 1,
"requireSecure": true,
"productDocumentation": "https://products.z-wavealliance.org/ProductManual/File?folder=&filename=Manuals/2556/Danalock_V3_Product_manual_Z_Wave_V_0.9.1.pdf",
"pid": 2556,
"imageRemotePath": "https://products.z-wavealliance.org/ProductImages/Index?productName=ZC10-17095764",
"learnmode": {
"image": "/drivers/danalock_v3/assets/learnmode.svg",
"instruction": {
"en": "Put Homey in inclusion mode. Push the switch once and wait 5 seconds.",
"nl": "Zet Homey in inclusion modus. Druk 1 keer op de knop en wacht 5 seconden."
}
},
"unlearnmode": {
"image": "/drivers/danalock_v3/assets/learnmode.svg",
"instruction": {
"en": "Put Homey in inclusion mode. Push the switch once and wait 5 seconds.",
"nl": "Zet Homey in inclusion modus. Druk 1 keer op de knop en wacht 5 seconden."
}
},
"associationGroups": [
1
],
"associationGroupsOptions": {
"1": {
"hint": {
"en": "Z-Wave Plus Lifeline",
"nl": "Z-Wave Plus Lifeline"
}
}
}
},
"settings": [
{
"id": 1,
"value": false,
"label": {
"en": "Twist assist",
"nl": "Draai ondersteuning"
},
"hint": {
"en": "The lock helps with unlocking/locking.",
"nl": "Het slot helpt u met ver-/ontgrendelen."
},
"_size": 1,
"type": "checkbox"
},
{
"id": 2,
"label": {
"en": "Hold and release",
"nl": "Naast ontgrendelen ook aanhouden"
},
"hint": {
"en": "After an unlock operation the lock holds the lock, so the door can be opened.\nRange: 0 - 2147483647 seconds.",
"nl": "Na ontgrendeling extra ontsluiten zodat deur open valt.\nRange: 0 - 2147483647 seconden."
},
"_size": 4,
"type": "number",
"value": 0,
"attr": {
"min": 0,
"max": 2147483647
}
},
{
"id": 3,
"value": false,
"label": {
"en": "Lock till lock",
"nl": "Vergrendel tot blokkade"
},
"hint": {
"en": "The lock will run the motor until it hits resistance.",
"nl": "Het slot laat de motor lopen totdat het tegen een blokade aanloopt."
},
"_size": 1,
"type": "checkbox"
},
{
"id": 4,
"label": {
"en": "Bluetooth temporary allowed",
"nl": "Bluetooth tijdelijk toegestaan"
},
"hint": {
"en": "Enable Bluetooth for a number of seconds.\nRange: 0 - 2147483647 seconds.",
"nl": "Activeer Bluetooth voor een bepaalde tijd.\nRange: 0 - 2147483647 seconden."
},
"_size": 4,
"type": "number",
"value": 0,
"attr": {
"min": 0,
"max": 2147483647
}
},
{
"id": 5,
"value": false,
"label": {
"en": "Bluetooth always allowed",
"nl": "Bluetooth altijd toegestaan"
},
"_size": 1,
"type": "checkbox"
},
{
"id": 6,
"label": {
"en": "Autolock",
"nl": "Automatische vergrendeling"
},
"hint": {
"en": "Auto lock after an unlock.\nRange: 0 - 2147483647 seconds.",
"nl": "Vergrendel automatisch na ontgrendelen.\nRange: 0 - 2147483647 seconden."
},
"_size": 4,
"type": "number",
"value": 0,
"attr": {
"min": 0,
"max": 2147483647
}
}
]
}
],
"flow": {
"triggers": [
{
"id": "lockJammed",
"title": {
"en": "The lock is jammed",
"nl": "Het slot is geblokkeerd"
},
"hint": {
"en": "While trying to close the lock something obstructed the lock from closing completely.",
"nl": "Tijdens het sluiten van het slot blokkeerde er iets waardoor het slot niet kon worden gesloten."
},
"args": [
{
"name": "device",
"type": "device",
"filter": "driver_id=danalock_v2"
}
]
},
{
"id": "lockJammed",
"title": {
"en": "The lock is jammed",
"nl": "Het slot is geblokkeerd"
},
"hint": {
"en": "While trying to close the lock something obstructed the lock from closing completely.",
"nl": "Tijdens het sluiten van het slot blokkeerde er iets waardoor het slot niet kon worden gesloten."
},
"args": [
{
"name": "device",
"type": "device",
"filter": "driver_id=danalock_v3"
}
]
}
],
"actions": []
}
}