iobroker.device-watcher 2.4.1 → 2.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -0
- package/admin/i18n/de/translations.json +120 -104
- package/admin/i18n/en/translations.json +17 -1
- package/admin/i18n/es/translations.json +17 -1
- package/admin/i18n/fr/translations.json +17 -1
- package/admin/i18n/it/translations.json +17 -1
- package/admin/i18n/nl/translations.json +17 -1
- package/admin/i18n/pl/translations.json +17 -1
- package/admin/i18n/pt/translations.json +17 -1
- package/admin/i18n/ru/translations.json +17 -1
- package/admin/i18n/uk/translations.json +17 -1
- package/admin/i18n/zh-cn/translations.json +17 -1
- package/admin/jsonConfig.json +274 -13
- package/io-package.json +174 -88
- package/lib/arrApart.js +9 -0
- package/main.js +1517 -695
- package/package.json +7 -6
package/admin/jsonConfig.json
CHANGED
|
@@ -6,9 +6,21 @@
|
|
|
6
6
|
"type": "panel",
|
|
7
7
|
"label": "Options",
|
|
8
8
|
"items": {
|
|
9
|
+
"_headerAdapter": {
|
|
10
|
+
"type": "header",
|
|
11
|
+
"text": "Create lists for instances",
|
|
12
|
+
"size": 2
|
|
13
|
+
},
|
|
14
|
+
"checkAdapterInstances": {
|
|
15
|
+
"type": "checkbox",
|
|
16
|
+
"sm": 12,
|
|
17
|
+
"md": 12,
|
|
18
|
+
"lg": 6,
|
|
19
|
+
"label": "Watch instances"
|
|
20
|
+
},
|
|
9
21
|
"_headerDevices": {
|
|
10
22
|
"type": "header",
|
|
11
|
-
"text": "
|
|
23
|
+
"text": "Create lists for devices",
|
|
12
24
|
"size": 2
|
|
13
25
|
},
|
|
14
26
|
"alexa2Devices": {
|
|
@@ -228,6 +240,13 @@
|
|
|
228
240
|
"lg": 3,
|
|
229
241
|
"label": "Ping"
|
|
230
242
|
},
|
|
243
|
+
"proxmoxDevices": {
|
|
244
|
+
"type": "checkbox",
|
|
245
|
+
"sm": 6,
|
|
246
|
+
"md": 6,
|
|
247
|
+
"lg": 3,
|
|
248
|
+
"label": "Proxmox"
|
|
249
|
+
},
|
|
231
250
|
"roombaDevices": {
|
|
232
251
|
"type": "checkbox",
|
|
233
252
|
"sm": 6,
|
|
@@ -346,9 +365,190 @@
|
|
|
346
365
|
"type": "panel",
|
|
347
366
|
"label": "Notifications",
|
|
348
367
|
"items": {
|
|
368
|
+
"_headerAdapterInstances": {
|
|
369
|
+
"type": "header",
|
|
370
|
+
"text": "Adapter & Instances Notification Settings",
|
|
371
|
+
"size": 2
|
|
372
|
+
},
|
|
373
|
+
"checkSendAdapterUpdateMsg": {
|
|
374
|
+
"newLine": "true",
|
|
375
|
+
"type": "checkbox",
|
|
376
|
+
"sm": 12,
|
|
377
|
+
"md": 12,
|
|
378
|
+
"lg": 6,
|
|
379
|
+
"label": "Adapter update message",
|
|
380
|
+
"help": "Receive a message when an update for an adapter is available"
|
|
381
|
+
},
|
|
382
|
+
"checkSendAdapterUpdateMsgDaily": {
|
|
383
|
+
"type": "checkbox",
|
|
384
|
+
"sm": 12,
|
|
385
|
+
"md": 12,
|
|
386
|
+
"lg": 6,
|
|
387
|
+
"label": "Overview of updatable adapter",
|
|
388
|
+
"help": "Get a message with an overview of all updatable adapter"
|
|
389
|
+
},
|
|
390
|
+
"_sendIntervallAdapterUpdateDay": {
|
|
391
|
+
"newLine": true,
|
|
392
|
+
"sm": 12,
|
|
393
|
+
"md": 12,
|
|
394
|
+
"lg": 6,
|
|
395
|
+
"hidden": "!data.checkSendAdapterUpdateMsgDaily",
|
|
396
|
+
"hideOnlyControl": true,
|
|
397
|
+
"items": {
|
|
398
|
+
"_textDays": {
|
|
399
|
+
"type": "staticText",
|
|
400
|
+
"text": "Choose the day(s) where you want to get the overview of updatable Adapter:",
|
|
401
|
+
"style": {
|
|
402
|
+
"fontSize": 16,
|
|
403
|
+
"marginTop": 20
|
|
404
|
+
}
|
|
405
|
+
},
|
|
406
|
+
"checkAdapterUpdateMonday": {
|
|
407
|
+
"newLine": true,
|
|
408
|
+
"type": "checkbox",
|
|
409
|
+
"label": "Mon"
|
|
410
|
+
},
|
|
411
|
+
"checkAdapterUpdateTuesday": {
|
|
412
|
+
"type": "checkbox",
|
|
413
|
+
"label": "Tue"
|
|
414
|
+
},
|
|
415
|
+
"checkAdapterUpdateWednesday": {
|
|
416
|
+
"type": "checkbox",
|
|
417
|
+
"label": "Wed"
|
|
418
|
+
},
|
|
419
|
+
"checkAdapterUpdateThursday": {
|
|
420
|
+
"type": "checkbox",
|
|
421
|
+
"label": "Thu"
|
|
422
|
+
},
|
|
423
|
+
"checkAdapterUpdateFriday": {
|
|
424
|
+
"type": "checkbox",
|
|
425
|
+
"label": "Fri"
|
|
426
|
+
},
|
|
427
|
+
"checkAdapterUpdateSaturday": {
|
|
428
|
+
"type": "checkbox",
|
|
429
|
+
"label": "Sat"
|
|
430
|
+
},
|
|
431
|
+
"checkAdapterUpdateSunday": {
|
|
432
|
+
"type": "checkbox",
|
|
433
|
+
"label": "Sun"
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
},
|
|
437
|
+
"_sendIntervallAdapterUpdateMsgTime": {
|
|
438
|
+
"sm": 12,
|
|
439
|
+
"md": 12,
|
|
440
|
+
"lg": 6,
|
|
441
|
+
"hidden": "!data.checkSendAdapterUpdateMsgDaily",
|
|
442
|
+
"hideOnlyControl": true,
|
|
443
|
+
"items": {
|
|
444
|
+
"_textTime": {
|
|
445
|
+
"type": "staticText",
|
|
446
|
+
"text": "Choose the Time:",
|
|
447
|
+
"style": {
|
|
448
|
+
"fontSize": 16,
|
|
449
|
+
"marginTop": 20
|
|
450
|
+
}
|
|
451
|
+
},
|
|
452
|
+
"checkSendAdapterUpdateTime": {
|
|
453
|
+
"newLine": true,
|
|
454
|
+
"type": "text",
|
|
455
|
+
"help": "Format hh:mm"
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
},
|
|
459
|
+
"trennerUpdatableAdapter": {
|
|
460
|
+
"newLine": true,
|
|
461
|
+
"type": "divider"
|
|
462
|
+
},
|
|
463
|
+
"checkSendInstanceFailedMsg": {
|
|
464
|
+
"newLine": "true",
|
|
465
|
+
"type": "checkbox",
|
|
466
|
+
"sm": 12,
|
|
467
|
+
"md": 12,
|
|
468
|
+
"lg": 6,
|
|
469
|
+
"label": "Instance failed message",
|
|
470
|
+
"help": "Receive a message when an instance failed"
|
|
471
|
+
},
|
|
472
|
+
"checkSendInstanceFailedDaily": {
|
|
473
|
+
"type": "checkbox",
|
|
474
|
+
"sm": 12,
|
|
475
|
+
"md": 12,
|
|
476
|
+
"lg": 6,
|
|
477
|
+
"label": "Overview of failed instances",
|
|
478
|
+
"help": "Get a message with an overview of all failed instances"
|
|
479
|
+
},
|
|
480
|
+
"_sendIntervallFailedInstancesDay": {
|
|
481
|
+
"newLine": true,
|
|
482
|
+
"sm": 12,
|
|
483
|
+
"md": 12,
|
|
484
|
+
"lg": 6,
|
|
485
|
+
"hidden": "!data.checkSendInstanceFailedDaily",
|
|
486
|
+
"hideOnlyControl": true,
|
|
487
|
+
"items": {
|
|
488
|
+
"_textDays": {
|
|
489
|
+
"type": "staticText",
|
|
490
|
+
"text": "Choose the day(s) where you want to get the overview of failed instances:",
|
|
491
|
+
"style": {
|
|
492
|
+
"fontSize": 16,
|
|
493
|
+
"marginTop": 20
|
|
494
|
+
}
|
|
495
|
+
},
|
|
496
|
+
"checkFailedInstancesMonday": {
|
|
497
|
+
"newLine": true,
|
|
498
|
+
"type": "checkbox",
|
|
499
|
+
"label": "Mon"
|
|
500
|
+
},
|
|
501
|
+
"checkFailedInstancesTuesday": {
|
|
502
|
+
"type": "checkbox",
|
|
503
|
+
"label": "Tue"
|
|
504
|
+
},
|
|
505
|
+
"checkFailedInstancesWednesday": {
|
|
506
|
+
"type": "checkbox",
|
|
507
|
+
"label": "Wed"
|
|
508
|
+
},
|
|
509
|
+
"checkFailedInstancesThursday": {
|
|
510
|
+
"type": "checkbox",
|
|
511
|
+
"label": "Thu"
|
|
512
|
+
},
|
|
513
|
+
"checkFailedInstancesFriday": {
|
|
514
|
+
"type": "checkbox",
|
|
515
|
+
"label": "Fri"
|
|
516
|
+
},
|
|
517
|
+
"checkFailedInstancesSaturday": {
|
|
518
|
+
"type": "checkbox",
|
|
519
|
+
"label": "Sat"
|
|
520
|
+
},
|
|
521
|
+
"checkFailedInstancesSunday": {
|
|
522
|
+
"type": "checkbox",
|
|
523
|
+
"label": "Sun"
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
},
|
|
527
|
+
"_sendIntervallInstanceFailedMsgTime": {
|
|
528
|
+
"sm": 12,
|
|
529
|
+
"md": 12,
|
|
530
|
+
"lg": 6,
|
|
531
|
+
"hidden": "!data.checkSendInstanceFailedDaily",
|
|
532
|
+
"hideOnlyControl": true,
|
|
533
|
+
"items": {
|
|
534
|
+
"_textTime": {
|
|
535
|
+
"type": "staticText",
|
|
536
|
+
"text": "Choose the Time:",
|
|
537
|
+
"style": {
|
|
538
|
+
"fontSize": 16,
|
|
539
|
+
"marginTop": 20
|
|
540
|
+
}
|
|
541
|
+
},
|
|
542
|
+
"checkSendInstanceFailedTime": {
|
|
543
|
+
"newLine": true,
|
|
544
|
+
"type": "text",
|
|
545
|
+
"help": "Format hh:mm"
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
},
|
|
349
549
|
"_headerCommon": {
|
|
350
550
|
"type": "header",
|
|
351
|
-
"text": "
|
|
551
|
+
"text": "Devices Notification Settings",
|
|
352
552
|
"size": 2
|
|
353
553
|
},
|
|
354
554
|
"checkSendOfflineMsg": {
|
|
@@ -631,14 +831,18 @@
|
|
|
631
831
|
"label": "Add adapter name in notifcations",
|
|
632
832
|
"help": "Will add the adaptername from the device",
|
|
633
833
|
"hidden": "!data.checkSendBatteryMsg && !data.checkSendBatteryMsgDaily && !data.checkSendOfflineMsgDaily && !data.checkSendOfflineMsg && !data.checkSendDeviceUpgrade && !data.checkSendUpgradeMsgDaily"
|
|
634
|
-
}
|
|
834
|
+
}
|
|
835
|
+
}
|
|
836
|
+
},
|
|
837
|
+
"_notificationServices": {
|
|
838
|
+
"type": "panel",
|
|
839
|
+
"label": "Notification Service",
|
|
840
|
+
"items": {
|
|
635
841
|
"_headerMSGservice": {
|
|
636
842
|
"newLine": true,
|
|
637
843
|
"type": "header",
|
|
638
844
|
"text": "Notification Service",
|
|
639
|
-
"size": 2
|
|
640
|
-
"hidden": "!data.checkSendBatteryMsg && !data.checkSendBatteryMsgDaily && !data.checkSendOfflineMsgDaily && !data.checkSendOfflineMsg && !data.checkSendDeviceUpgrade",
|
|
641
|
-
"hideOnlyControl": false
|
|
845
|
+
"size": 2
|
|
642
846
|
},
|
|
643
847
|
"msgServiceText": {
|
|
644
848
|
"type": "staticText",
|
|
@@ -646,9 +850,7 @@
|
|
|
646
850
|
"style": {
|
|
647
851
|
"fontSize": 16,
|
|
648
852
|
"marginTop": 20
|
|
649
|
-
}
|
|
650
|
-
"hidden": "!data.checkSendBatteryMsg && !data.checkSendBatteryMsgDaily && !data.checkSendOfflineMsgDaily && !data.checkSendOfflineMsg && !data.checkSendDeviceUpgrade",
|
|
651
|
-
"hideOnlyControl": false
|
|
853
|
+
}
|
|
652
854
|
},
|
|
653
855
|
"msgService": {
|
|
654
856
|
"newLine": true,
|
|
@@ -664,9 +866,7 @@
|
|
|
664
866
|
{ "label": "Lovelace", "value": "lovelace" },
|
|
665
867
|
{ "label": "Synochat", "value": "synochat" }
|
|
666
868
|
],
|
|
667
|
-
"default": "none"
|
|
668
|
-
"hidden": "!data.checkSendBatteryMsg && !data.checkSendBatteryMsgDaily && !data.checkSendOfflineMsgDaily && !data.checkSendOfflineMsg && !data.checkSendDeviceUpgrade",
|
|
669
|
-
"hideOnlyControl": false
|
|
869
|
+
"default": "none"
|
|
670
870
|
},
|
|
671
871
|
"_headerPushover": {
|
|
672
872
|
"newLine": true,
|
|
@@ -935,9 +1135,14 @@
|
|
|
935
1135
|
"type": "panel",
|
|
936
1136
|
"label": "Blacklist",
|
|
937
1137
|
"items": {
|
|
1138
|
+
"headerDevices": {
|
|
1139
|
+
"newLine": "true",
|
|
1140
|
+
"type": "header",
|
|
1141
|
+
"text": "Devices Blacklist",
|
|
1142
|
+
"size": 2
|
|
1143
|
+
},
|
|
938
1144
|
"tableBlacklist": {
|
|
939
1145
|
"type": "table",
|
|
940
|
-
"label": "Blacklist",
|
|
941
1146
|
"nodelete": true,
|
|
942
1147
|
"sm": 12,
|
|
943
1148
|
"md": 12,
|
|
@@ -976,6 +1181,50 @@
|
|
|
976
1181
|
"alsoDependsOn": ["devices"]
|
|
977
1182
|
}
|
|
978
1183
|
]
|
|
1184
|
+
},
|
|
1185
|
+
"headerBlacklistInstances": {
|
|
1186
|
+
"newLine": "true",
|
|
1187
|
+
"type": "header",
|
|
1188
|
+
"text": "Instances Blacklist",
|
|
1189
|
+
"size": 2,
|
|
1190
|
+
"hidden": "!data.checkAdapterInstances && !data.checkSendInstanceFailedMsg && !data.checkSendInstanceFailedMsgDaily",
|
|
1191
|
+
"hideOnlyControl": false
|
|
1192
|
+
},
|
|
1193
|
+
"tableBlacklistInstances": {
|
|
1194
|
+
"type": "table",
|
|
1195
|
+
"nodelete": true,
|
|
1196
|
+
"sm": 12,
|
|
1197
|
+
"md": 12,
|
|
1198
|
+
"lg": 12,
|
|
1199
|
+
"hidden": "!data.checkAdapterInstances && !data.checkSendInstanceFailedMsg && !data.checkSendInstanceFailedMsgDaily",
|
|
1200
|
+
"hideOnlyControl": false,
|
|
1201
|
+
"items": [
|
|
1202
|
+
{
|
|
1203
|
+
"type": "selectSendTo",
|
|
1204
|
+
"title": "Choose which instances should be excluded",
|
|
1205
|
+
"attr": "instances",
|
|
1206
|
+
"filter": false,
|
|
1207
|
+
"allowAddByFilter": false,
|
|
1208
|
+
"sort": false,
|
|
1209
|
+
"jsonData": "{\"instanceName\":\"${globalData.instanceName}\",\"adapter\":\"${globalData.adapter}\",\"path\":\"${globalData.path}\"}",
|
|
1210
|
+
"command": "instancesList",
|
|
1211
|
+
"width": "60%"
|
|
1212
|
+
},
|
|
1213
|
+
{
|
|
1214
|
+
"type": "checkbox",
|
|
1215
|
+
"title": "Ignor in notifications",
|
|
1216
|
+
"attr": "checkIgnorNotify",
|
|
1217
|
+
"width": "15%",
|
|
1218
|
+
"alsoDependsOn": ["devices"]
|
|
1219
|
+
},
|
|
1220
|
+
{
|
|
1221
|
+
"type": "checkbox",
|
|
1222
|
+
"title": "Ignore in lists",
|
|
1223
|
+
"attr": "checkIgnorLists",
|
|
1224
|
+
"width": "10%",
|
|
1225
|
+
"alsoDependsOn": ["devices"]
|
|
1226
|
+
}
|
|
1227
|
+
]
|
|
979
1228
|
}
|
|
980
1229
|
}
|
|
981
1230
|
},
|
|
@@ -1458,6 +1707,18 @@
|
|
|
1458
1707
|
"hidden": "!data.pingDevices",
|
|
1459
1708
|
"hideOnlyControl": false
|
|
1460
1709
|
},
|
|
1710
|
+
"proxmoxMaxMinutes": {
|
|
1711
|
+
"type": "number",
|
|
1712
|
+
"min": -1,
|
|
1713
|
+
"max": 100000,
|
|
1714
|
+
"sm": 6,
|
|
1715
|
+
"md": 6,
|
|
1716
|
+
"lg": 3,
|
|
1717
|
+
"label": "Proxmox",
|
|
1718
|
+
"help": "in minutes",
|
|
1719
|
+
"hidden": "!data.proxmoxDevices",
|
|
1720
|
+
"hideOnlyControl": false
|
|
1721
|
+
},
|
|
1461
1722
|
"roombaMaxMinutes": {
|
|
1462
1723
|
"type": "number",
|
|
1463
1724
|
"min": -1,
|