-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.json
549 lines (549 loc) · 16.7 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
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
{
"_comment": "This file is generated. Please edit .homeycompose/app.json instead.",
"id": "nl.daanleenders.fiatuconnect",
"version": "1.0.0",
"compatibility": ">=12.2.0",
"platforms": [
"local"
],
"sdk": 3,
"brandColor": "#d13640",
"name": {
"en": "Fiat UConnect",
"nl": "Fiat UConnect"
},
"description": {
"en": "Connect your FIAT to Homey to see its information and control some functions",
"nl": "Verbind jouw FIAT met Homey om er informatie van te kunnen zien en sommige functies te bedienen"
},
"category": [
"internet"
],
"tags": {
"en": [
"car",
"ev",
"Electric Vehicle",
"Fiat",
"UConnect"
],
"nl": [
"auto",
"ev",
"Elektrisch Voertuig",
"Fiat",
"UConnect"
]
},
"images": {
"small": "/assets/images/small.jpg",
"large": "/assets/images/large.jpg",
"xlarge": "/assets/images/xlarge.jpg"
},
"permissions": [],
"author": {
"name": "Daan Leenders",
"email": "daanleenders@gmail.com"
},
"bugs": {
"url": "https://github.com/daanleenders/homeyfiatuconnect/issues"
},
"source": "https://github.com/daanleenders/homeyfiatuconnect",
"contributing": {
"donate": {
"githubSponsors": {
"username": "daanleenders"
},
"paypal": {
"username": "daanleenders"
}
}
},
"flow": {
"triggers": [
{
"id": "fiat_vehicle_measurement_distance_to_empty_changed",
"title": {
"en": "Distance to empty updated",
"nl": "Afstand tot leeg bijgewerkt"
},
"hint": {
"en": "Triggers when we detect a change to the battery level and a new distance until it is empty is calculated. This happens during driving and charging but can take a while to update, do not expect this to be realtime.",
"nl": "Gaat af wanneer we een verandering in het batterijniveau detecteren en er een nieuwe afstand tot leeg is berekend. Dit kan gebeuren tijdens het rijden en opladen, maar het kan even duren voor het is bijgewerkt. Verwacht niet dat dit realtime is."
},
"tokens": [
{
"type": "number",
"name": "fiat_vehicle_measurement_distance_to_empty",
"title": {
"en": "Distance to empty",
"nl": "Afstand tot leeg"
},
"example": "61"
}
],
"args": [
{
"type": "device",
"name": "device",
"filter": "driver_id=fiatVehicle"
}
]
},
{
"id": "fiat_vehicle_measurement_distance_to_service_changed",
"title": {
"en": "Distance to service updated",
"nl": "Afstand tot service bijgewerkt"
},
"hint": {
"en": "Triggers when we detect a change to the odometer which means the distance to the next service is also changed. This usually happens at the end of a trip but can happen while driving.",
"nl": "Gaat af bij een verandering in de kilometerstand waarna de afstand tot de volgende service afspraak ook is veranderd. Dit gebeurt meestal aan het einde van een rit maar kan ook tijdens het rijden veranderen."
},
"tokens": [
{
"type": "number",
"name": "fiat_vehicle_measurement_distance_to_service",
"title": {
"en": "Distance to service",
"nl": "Afstand tot service"
},
"example": "14279.0"
}
],
"args": [
{
"type": "device",
"name": "device",
"filter": "driver_id=fiatVehicle"
}
]
},
{
"id": "fiat_vehicle_measurement_odometer_changed",
"title": {
"en": "Odometer updated",
"nl": "Kilometerstand bijgewerkt"
},
"hint": {
"en": "Triggers when we detect a change in the odometer. This usually happens at the end of a trip but can happen while driving.",
"nl": "Gaat af bij een verandering in de kilometerstand. Dit gebeurt meestal aan het einde van een rit maar kan ook tijdens het rijden veranderen."
},
"tokens": [
{
"type": "number",
"name": "fiat_vehicle_measurement_odometer",
"title": {
"en": "Odometer",
"nl": "Kilometerstand"
},
"example": "1086"
}
],
"args": [
{
"type": "device",
"name": "device",
"filter": "driver_id=fiatVehicle"
}
]
},
{
"id": "fiat_vehicle_measurement_time_to_fully_charge_l2_changed",
"title": {
"en": "Time to full battery on a L2 charger updated",
"nl": "Tijd tot een volle batterij bij L2 laden bijgewerkt"
},
"hint": {
"en": "Level 2 are any EV specific AC chargers (your wall charger, public chargers at destinations, etc.). Triggers when we detect a change to the battery level and a new time unitll full is calculated. This happens during driving and charging but can take a while to update, do not expect this to be realtime. This is an estimate by your vehicle for a generic l2 charger, not depended on the current charging speed.",
"nl": "Niveau 2 laden gaat over EV specifieke AC laders (je eigen thuislader, publieke laders bij bestemmingen, e.d.). Gaat af wanneer we een verandering in het batterij niveau detecteren en de tijd om de batterij weer volledig op te laden opnieuw wordt berekend. Dit kan gebeuren tijdens het rijden en opladen, maar het kan even duren voor het is bijgewerkt. Verwacht niet dat dit realtime is. Dit is de schatting van uw voertuig voor een generieke l2-lader en is niet afhankelijk van een evt. huidige werkelijke laadsnelheid."
},
"tokens": [
{
"type": "number",
"name": "fiat_vehicle_measurement_time_to_fully_charge_l2",
"title": {
"en": "L2 charge time",
"nl": "L2 oplaadtijd"
},
"example": "81"
}
],
"args": [
{
"type": "device",
"name": "device",
"filter": "driver_id=fiatVehicle"
}
]
},
{
"id": "fiat_vehicle_measurement_time_to_fully_charge_l3_changed",
"title": {
"en": "Time to full on a L3 charger updated",
"nl": "Tijd tot een volle batterij bij L3 laden bijgewerkt"
},
"hint": {
"en": "Level 3 are DC chargers (fastest way to charge, usually used during trips to top up your battery). Triggers when we detect a change to the battery level and a new distance until it is empty is calculated. This happens during driving and charging but can take a while to update, do not expect this to be realtime. This is an estimate by your vehicle for a generic l3 charger, not depended on the current charging speed.",
"nl": "Niveau 3 laden gaat over DC laders (snelste manier van laden, meestal tijdens een rit weer bijladen). Gaat af wanneer we een verandering in het batterij niveau detecteren en de tijd om de batterij weer volledig op te laden opnieuw wordt berekend. Dit kan gebeuren tijdens het rijden en opladen, maar het kan even duren voor het is bijgewerkt. Verwacht niet dat dit realtime is. Dit is de schatting van uw voertuig voor een generieke l3-lader en is niet afhankelijk van een evt. huidige werkelijke laadsnelheid."
},
"tokens": [
{
"type": "number",
"name": "fiat_vehicle_measurement_time_to_fully_charge_l3",
"title": {
"en": "L3 charge time",
"nl": "L3 oplaadtijd"
},
"example": "81"
}
],
"args": [
{
"type": "device",
"name": "device",
"filter": "driver_id=fiatVehicle"
}
]
}
],
"actions": [
{
"id": "fiat_vehicle_flow_action_hvac",
"title": {
"en": "Start A/C",
"nl": "Start A/C"
},
"hint": {
"en": "Start the A/C of your vehicle",
"nl": "Start de airconditioning van jouw auto"
},
"highlight": true,
"args": [
{
"type": "device",
"name": "device",
"filter": "driver_id=fiatVehicle"
}
]
},
{
"id": "fiat_vehicle_flow_action_lock",
"title": {
"en": "Lock vehicle",
"nl": "Vergrendel auto"
},
"args": [
{
"type": "device",
"name": "device",
"filter": "driver_id=fiatVehicle"
}
]
},
{
"id": "fiat_vehicle_flow_action_unlock",
"title": {
"en": "Unlock vehicle",
"nl": "Ontgrendel auto"
},
"args": [
{
"type": "device",
"name": "device",
"filter": "driver_id=fiatVehicle"
}
]
}
]
},
"drivers": [
{
"name": {
"en": "Fiat",
"nl": "Fiat"
},
"class": "car",
"capabilities": [
"measure_battery",
"alarm_battery",
"battery_charging_state",
"fiat_vehicle_action_lock",
"fiat_vehicle_action_unlock",
"fiat_vehicle_action_hvac",
"fiat_vehicle_measurement_distance_to_empty",
"fiat_vehicle_measurement_distance_to_service",
"fiat_vehicle_measurement_odometer",
"fiat_vehicle_measurement_time_to_fully_charge_l2",
"fiat_vehicle_measurement_time_to_fully_charge_l3"
],
"platforms": [
"local"
],
"connectivity": [
"cloud"
],
"images": {
"small": "/drivers/fiatVehicle/assets/images/small.jpg",
"large": "/drivers/fiatVehicle/assets/images/large.jpg",
"xlarge": "/drivers/fiatVehicle/assets/images/xlarge.jpg"
},
"energy": {
"batteries": [
"INTERNAL"
]
},
"pair": [
{
"id": "login",
"template": "login_credentials",
"options": {
"logo": "icon.svg",
"title": {
"en": "Login with your uConnect credentials",
"nl": "Login met jouw uConnect gegevens"
},
"usernameLabel": {
"en": "E-mail address",
"nl": "E-mailadres"
},
"usernamePlaceholder": {
"en": "john@doe.com",
"nl": "jan@jansen.nl"
},
"passwordLabel": {
"en": "Password",
"nl": "Wachtwoord"
},
"passwordPlaceholder": {
"en": "Password",
"nl": "Wachtwoord"
}
}
},
{
"id": "pincode",
"template": "pincode",
"options": {
"title": {
"en": "Enter security PIN",
"nl": "Voer de pincode in"
},
"hint": {
"en": "Enter the pincode that gets asked when you lock the car from the Fiat uConnect site or app",
"nl": "De pincode waar om wordt gevraagd als je jouw auto vergrendeld vanuit de Fiat uConnect site of app"
},
"type": "number",
"length": 4
}
},
{
"id": "list_devices",
"template": "list_devices",
"options": {
"singular": true
},
"navigation": {
"next": "add_devices"
}
},
{
"id": "add_devices",
"template": "add_devices"
}
],
"id": "fiatVehicle",
"settings": [
{
"type": "group",
"label": {
"en": "Login credentials",
"nl": "Inloggegevens"
},
"children": [
{
"id": "username",
"type": "text",
"label": {
"en": "E-mail address",
"nl": "E-mailadres"
},
"value": "john@doe.com",
"hint": {
"en": "The email u use to login to the UConnect site/app",
"nl": "Het e-mailadres waarmee je inlog bij de uConnect site/app"
}
},
{
"id": "password",
"type": "password",
"label": {
"en": "Password",
"nl": "Wachtwoord"
},
"value": "secret",
"hint": {
"en": "The password to login to the UConnect site/app",
"nl": "Het wachtwoord waarmee je inlog bij de uConnect site/app"
}
}
]
},
{
"id": "pin",
"type": "password",
"label": {
"en": "Security PIN",
"nl": "Pincode"
},
"value": "0000",
"hint": {
"en": "Enter the vehicle's pincode. Used on an action to the vehicle. This is the pin you need to enter when you try to lock/unlock/etc. from the Uconnect site/app.",
"nl": "Vul de pincode in van het voertuig. Die wordt gebruikt om een actie op het voertuig uit te voeren vanuit de uconnect site/app zoals het vergrendelen of ongrendelen van het voertuig"
},
"pattern": "[0-9]{4}"
}
]
}
],
"capabilities": {
"fiat_vehicle_action_hvac": {
"type": "boolean",
"title": {
"en": "Start A/C",
"nl": "Start A/C"
},
"getable": false,
"setable": true,
"uiComponent": "button",
"uiQuickAction": false,
"icon": "/assets/air-conditioner.svg",
"insights": false
},
"fiat_vehicle_action_lock": {
"type": "boolean",
"title": {
"en": "Lock the car",
"nl": "Vergrendel auto"
},
"getable": false,
"setable": true,
"uiComponent": "button",
"uiQuickAction": false,
"icon": "/assets/car-door-lock.svg",
"insights": false
},
"fiat_vehicle_action_unlock": {
"type": "boolean",
"title": {
"en": "Unlock the car",
"nl": "Ontgrendel auto"
},
"getable": false,
"setable": true,
"uiComponent": "button",
"uiQuickAction": false,
"icon": "/assets/car-door-lock-open.svg",
"insights": false
},
"fiat_vehicle_measurement_distance_to_empty": {
"type": "number",
"title": {
"en": "Distance to empty",
"nl": "Afstand tot leeg"
},
"getable": true,
"setable": false,
"uiComponent": "sensor",
"uiQuickAction": false,
"icon": "/assets/map-marker-distance.svg",
"insights": true,
"units": {
"en": "km",
"nl": "km"
},
"min": 0,
"step": 1,
"decimals": 0
},
"fiat_vehicle_measurement_distance_to_service": {
"type": "number",
"title": {
"en": "Distance to service",
"nl": "Afstand tot service"
},
"getable": true,
"setable": false,
"uiComponent": "sensor",
"uiQuickAction": false,
"icon": "/assets/car-wrench.svg",
"insights": true,
"units": {
"en": "km",
"nl": "km"
},
"step": 0.1,
"decimals": 1
},
"fiat_vehicle_measurement_odometer": {
"type": "number",
"title": {
"en": "Odometer",
"nl": "Kilometerstand"
},
"getable": true,
"setable": false,
"uiComponent": "sensor",
"uiQuickAction": false,
"icon": "/assets/counter.svg",
"insights": true,
"units": {
"en": "km",
"nl": "km"
},
"min": 0,
"step": 1,
"decimals": 0
},
"fiat_vehicle_measurement_time_to_fully_charge_l2": {
"type": "number",
"title": {
"en": "L2 charge time",
"nl": "L2 oplaadtijd"
},
"getable": true,
"setable": false,
"uiComponent": "sensor",
"uiQuickAction": false,
"icon": "/assets/ev-plug-type2.svg",
"insights": true,
"units": {
"en": "minutes",
"nl": "minuten"
},
"min": 0,
"step": 1,
"decimals": 0
},
"fiat_vehicle_measurement_time_to_fully_charge_l3": {
"type": "number",
"title": {
"en": "L3 charge time",
"nl": "L3 oplaadtijd"
},
"getable": true,
"setable": false,
"uiComponent": "sensor",
"uiQuickAction": false,
"icon": "/assets/ev-plug-ccs2.svg",
"insights": true,
"units": {
"en": "minutes",
"nl": "minuten"
},
"min": 0,
"step": 1,
"decimals": 0
}
}
}