iobroker.smartcontrol 1.2.2 → 1.3.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/.github/workflows/dependabot-auto-merge.yml +1 -0
- package/.github/workflows/test-and-release.yml +5 -5
- package/README.md +4 -0
- package/admin/admin.d.ts +1 -0
- package/admin/doc-md/img/liveInfo.png +0 -0
- package/admin/doc-md/info-text_de.md +1 -0
- package/admin/doc-md/info-text_en.md +1 -0
- package/admin/doc-md/table-zones_de.md +1 -0
- package/admin/doc-md/table-zones_en.md +2 -1
- package/admin/index_m.html +32 -14
- package/admin/index_m.js +30 -0
- package/admin/style.css +2 -0
- package/io-package.json +71 -80
- package/main.js +2 -1
- package/package.json +2 -2
- package/.github/workflows/npmpublish.yml +0 -30
|
@@ -26,10 +26,10 @@ jobs:
|
|
|
26
26
|
|
|
27
27
|
steps:
|
|
28
28
|
- name: Checkout code
|
|
29
|
-
uses: actions/checkout@
|
|
29
|
+
uses: actions/checkout@v3
|
|
30
30
|
|
|
31
31
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
32
|
-
uses: actions/setup-node@
|
|
32
|
+
uses: actions/setup-node@v3
|
|
33
33
|
with:
|
|
34
34
|
node-version: ${{ matrix.node-version }}
|
|
35
35
|
|
|
@@ -55,10 +55,10 @@ jobs:
|
|
|
55
55
|
|
|
56
56
|
steps:
|
|
57
57
|
- name: Checkout code
|
|
58
|
-
uses: actions/checkout@
|
|
58
|
+
uses: actions/checkout@v3
|
|
59
59
|
|
|
60
60
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
61
|
-
uses: actions/setup-node@
|
|
61
|
+
uses: actions/setup-node@v3
|
|
62
62
|
with:
|
|
63
63
|
node-version: ${{ matrix.node-version }}
|
|
64
64
|
|
|
@@ -91,7 +91,7 @@ jobs:
|
|
|
91
91
|
steps:
|
|
92
92
|
- uses: ioBroker/testing-action-deploy@v1
|
|
93
93
|
with:
|
|
94
|
-
node-version: '
|
|
94
|
+
node-version: '16.x'
|
|
95
95
|
# Uncomment the following line if your adapter cannot be installed using 'npm ci'
|
|
96
96
|
# install-command: 'npm install'
|
|
97
97
|
build: false
|
package/README.md
CHANGED
|
@@ -90,6 +90,10 @@ This is just to provide you an overview of the adapter options.
|
|
|
90
90
|
Placeholder for the next version (at the beginning of the line):
|
|
91
91
|
### **WORK IN PROGRESS**
|
|
92
92
|
-->
|
|
93
|
+
### 1.3.0 (2022-10-14)
|
|
94
|
+
* (oelison) remove errors and warnings ocured during deploy
|
|
95
|
+
* (oelison) comment for zones added
|
|
96
|
+
|
|
93
97
|
### 1.2.2 (2022-10-11)
|
|
94
98
|
* (oelison) migration to links in iobroker-community-adapters
|
|
95
99
|
* (oelison) update due to open PR of original repo
|
package/admin/admin.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
declare let systemDictionary: Record<string, Record<string, string>>;
|
|
2
2
|
declare var $: any; // for jQuerys like $('.collapsible').collapsible()
|
|
3
3
|
declare function values2table(any, any, any, any): any; // Quick and dirty
|
|
4
|
+
declare function table2values(any): any; // Quick and dirty
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Hier kann eine Objektbeschreibung abgelegt werden.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
You can set here some notes for your object.
|
|
@@ -12,3 +12,4 @@ Hier definierst du alle "Zonen" (z.B. Badezimmer 1.OG, Kaffeeecke, usw.) und wei
|
|
|
12
12
|
|  | Nein | Für *Nie ausschalten wenn...*: Wenn aktiviert, müssen alle Bedingungen zutreffen ('und'). Wenn deaktiviert, reicht es, wenn eine der Bedingungen zutrifft.<br>Falls du nur eine Bedingung auswählst, ist es egal, ob du das aktivierst oder nicht.|
|
|
13
13
|
| Ausführung | Nein | Durch Klicken auf diesen Button öffnet sich ein Dialog, in dem du weitere Bedingungen definieren kannst, wann die in der Zone definierten Zielgeräte geschaltet werden, sobald ein Auslöser auslöst. Detail-Informationen findest du hierzu in diesem Dialog. |
|
|
14
14
|
| Immer | Ja | Diese Option ist identisch mit "Immer ausführen" im Dialog 'Ausführung' (siehe oben): Falls aktiviert, dann wird immer ausgeführt, sofern etwaige zuvor definierte Bedingungen zutreffen. Falls nicht aktiviert, musst du im Dialog 'Ausführung' mindestens eine aktive Zeile anlegen. |
|
|
15
|
+
|  | Nein | Hier kannst Du einen Kommentar hinterlassen, damit Du später noch weißt, warum Du das gemacht hast. |
|
|
@@ -11,4 +11,5 @@ Here you bring everything together by defining all "zones" (e.g. bathroom 1st fl
|
|
|
11
11
|
| Never switch off if... | No | Here you can enter additional conditions, for example: No one at home, radio is on, etc. If these conditions apply, the target devices of this zone **will not** be turned off when a timer expires. This applies to both the timer *Switch zone off after x seconds* and motion sensor timers. |
|
|
12
12
|
| ✓✓ | No | For *Never switch off if...*: If activated, all conditions must apply ('and'). If disabled, it is enough if one of the conditions applies.<br>If you select only one condition, it doesn't matter if you enable it or not.|
|
|
13
13
|
| Execution | Yes | Clicking this button opens a dialog where you can define further conditions when the target devices, as defined in the zone, will be switched as soon as a trigger is triggered. Details are described in this dialog. |
|
|
14
|
-
| Always | Yes | This option is identical to "Execute always" in the 'Execution' dialog (see above): If activated, the adapter will always execute if any previously defined conditions apply. If not activated, you must create at least one active line in the 'Execution' dialog. |
|
|
14
|
+
| Always | Yes | This option is identical to "Execute always" in the 'Execution' dialog (see above): If activated, the adapter will always execute if any previously defined conditions apply. If not activated, you must create at least one active line in the 'Execution' dialog. |
|
|
15
|
+
|  | No | Left a comment here. Then you will know in the future, what you have done. |
|
package/admin/index_m.html
CHANGED
|
@@ -119,9 +119,8 @@
|
|
|
119
119
|
</div>
|
|
120
120
|
</li>
|
|
121
121
|
</ul>
|
|
122
|
-
|
|
123
122
|
<!-- Start Options Table -->
|
|
124
|
-
|
|
123
|
+
<div class="col s12" id="tableTargetDevices">
|
|
125
124
|
<div class="row valign-wrapper" style="margin-bottom:5px">
|
|
126
125
|
<div class="col"><a class="btn-floating waves-effect waves-light blue table-button-add"><i class="material-icons">add</i></a></div>
|
|
127
126
|
<div class="table-filter input-field col s12 m6 l12">
|
|
@@ -263,7 +262,6 @@
|
|
|
263
262
|
</ul>
|
|
264
263
|
<!-- Start Options Table -->
|
|
265
264
|
<div class="col s12" id="tableConditions">
|
|
266
|
-
|
|
267
265
|
<div class="row valign-wrapper" style="margin-bottom:5px">
|
|
268
266
|
<div class="col"><a class="btn-floating waves-effect waves-light blue table-button-add"><i class="material-icons">add</i></a></div>
|
|
269
267
|
<div class="table-filter input-field col s12 m6 l12">
|
|
@@ -312,7 +310,6 @@
|
|
|
312
310
|
</ul>
|
|
313
311
|
<!-- Start Options Table -->
|
|
314
312
|
<div class="col s12" id="tableTriggerMotion">
|
|
315
|
-
|
|
316
313
|
<div class="row valign-wrapper" style="margin-bottom:5px">
|
|
317
314
|
<div class="col"><a class="btn-floating waves-effect waves-light blue table-button-add"><i class="material-icons">add</i></a></div>
|
|
318
315
|
<div class="table-filter input-field col s12 m6 l12">
|
|
@@ -320,7 +317,6 @@
|
|
|
320
317
|
<button class="btn-floating waves-effect waves-light blue btn-small" title="Clear filter"><i class="material-icons">clear</i></button>
|
|
321
318
|
</div>
|
|
322
319
|
</div>
|
|
323
|
-
|
|
324
320
|
<div class="table-values-div">
|
|
325
321
|
<table class="table-values">
|
|
326
322
|
<thead>
|
|
@@ -361,7 +357,6 @@
|
|
|
361
357
|
</ul>
|
|
362
358
|
<!-- Start Options Table -->
|
|
363
359
|
<div class="col s12" id="tableTriggerDevices">
|
|
364
|
-
|
|
365
360
|
<div class="row valign-wrapper" style="margin-bottom:5px">
|
|
366
361
|
<div class="col"><a class="btn-floating waves-effect waves-light blue table-button-add"><i class="material-icons">add</i></a></div>
|
|
367
362
|
<div class="table-filter input-field col s12 m6 l12">
|
|
@@ -369,7 +364,6 @@
|
|
|
369
364
|
<button class="btn-floating waves-effect waves-light blue btn-small" title="Clear filter"><i class="material-icons">clear</i></button>
|
|
370
365
|
</div>
|
|
371
366
|
</div>
|
|
372
|
-
|
|
373
367
|
<div class="table-values-div">
|
|
374
368
|
<table class="table-values">
|
|
375
369
|
<thead>
|
|
@@ -407,7 +401,6 @@
|
|
|
407
401
|
|
|
408
402
|
<!-- Start Options Table -->
|
|
409
403
|
<div class="col s12" id="tableTriggerTimes">
|
|
410
|
-
|
|
411
404
|
<div class="row valign-wrapper" style="margin-bottom:5px">
|
|
412
405
|
<div class="col"><a class="btn-floating waves-effect waves-light blue table-button-add"><i class="material-icons">add</i></a></div>
|
|
413
406
|
<div class="table-filter input-field col s12 m6 l12">
|
|
@@ -415,7 +408,6 @@
|
|
|
415
408
|
<button class="btn-floating waves-effect waves-light blue btn-small" title="Clear filter"><i class="material-icons">clear</i></button>
|
|
416
409
|
</div>
|
|
417
410
|
</div>
|
|
418
|
-
|
|
419
411
|
<div class="table-values-div">
|
|
420
412
|
<table class="table-values">
|
|
421
413
|
<thead>
|
|
@@ -464,7 +456,6 @@
|
|
|
464
456
|
|
|
465
457
|
<!-- Start Options Table -->
|
|
466
458
|
<div class="col s12" id="tableZones">
|
|
467
|
-
|
|
468
459
|
<div class="row valign-wrapper" style="margin-bottom:5px">
|
|
469
460
|
<div class="col"><a class="btn-floating waves-effect waves-light blue table-button-add"><i class="material-icons">add</i></a></div>
|
|
470
461
|
<div class="table-filter input-field col s12 m6 l12">
|
|
@@ -472,7 +463,6 @@
|
|
|
472
463
|
<button class="btn-floating waves-effect waves-light blue btn-small" title="Clear filter"><i class="material-icons">clear</i></button>
|
|
473
464
|
</div>
|
|
474
465
|
</div>
|
|
475
|
-
|
|
476
466
|
<div class="table-values-div">
|
|
477
467
|
<table class="table-values">
|
|
478
468
|
<thead>
|
|
@@ -492,8 +482,9 @@
|
|
|
492
482
|
<th style="width: 30px" class="header translate" data-name="executeAlways" data-type="checkbox">Always</th>
|
|
493
483
|
<!-- Start: Execution Options, being hidden through CSS -->
|
|
494
484
|
<th class="header" data-name="executionJson" data-type="text"></th>
|
|
485
|
+
<th class="header" data-name="infoText" data-type="text"></th>
|
|
495
486
|
<!-- End: Execution Options, being hidden through CSS -->
|
|
496
|
-
<th style="width:
|
|
487
|
+
<th style="width: 200px" class="header" data-buttons="up down copy_smart delete info"></th>
|
|
497
488
|
</tr>
|
|
498
489
|
</thead>
|
|
499
490
|
</table>
|
|
@@ -729,13 +720,11 @@
|
|
|
729
720
|
|
|
730
721
|
<!-- Start Options Table -->
|
|
731
722
|
<div class="col s12 hide-if-always" id="tableZoneExecution">
|
|
732
|
-
|
|
733
723
|
<div class="row valign-wrapper" style="margin-bottom:5px">
|
|
734
724
|
<div class="col">
|
|
735
725
|
<a class="btn-floating waves-effect waves-light blue table-button-add"><i class="material-icons">add</i></a>
|
|
736
726
|
</div>
|
|
737
727
|
</div>
|
|
738
|
-
|
|
739
728
|
<div class="table-values-div">
|
|
740
729
|
<table class="table-values">
|
|
741
730
|
<thead>
|
|
@@ -771,6 +760,35 @@
|
|
|
771
760
|
</div>
|
|
772
761
|
</div>
|
|
773
762
|
|
|
763
|
+
<!-- DIALOG: description -->
|
|
764
|
+
<div id="dialog-edit-info" class="modal modal-fixed-footer">
|
|
765
|
+
<div class="modal-content">
|
|
766
|
+
<div class="row" style="padding-left:12px; padding-right:0">
|
|
767
|
+
<!-- START: Header with collapsible help contents -->
|
|
768
|
+
<ul class="collapsible">
|
|
769
|
+
<li>
|
|
770
|
+
<div class="collapsible-header config-section"><h5><span class="translate">Informational note to the object</span> '<span class="info-name">Placeholder</span>'</h5><i class="material-icons">help_outline</i></div>
|
|
771
|
+
<div class="collapsible-body">
|
|
772
|
+
<!-- Importing Markdown -->
|
|
773
|
+
<zero-md id="md-tableExecution" manual-render src="doc-md/info-text_en.md"></zero-md>
|
|
774
|
+
</div>
|
|
775
|
+
</li>
|
|
776
|
+
</ul>
|
|
777
|
+
<!-- END: Header with collapsible help contents -->
|
|
778
|
+
|
|
779
|
+
<!-- textbox info text -->
|
|
780
|
+
<div class="row">
|
|
781
|
+
<div class="input-field">
|
|
782
|
+
<input type="text" class="value" id="infoText" />
|
|
783
|
+
</div>
|
|
784
|
+
</div>
|
|
785
|
+
</div>
|
|
786
|
+
</div>
|
|
787
|
+
<div class="modal-footer">
|
|
788
|
+
<a class="modal-action modal-close waves-effect waves-green btn btn-set"><i class="large material-icons left">check_circle</i><span class="translate">Select</span></a>
|
|
789
|
+
<a class="modal-action modal-close waves-effect waves-green btn btn-close"><i class="large material-icons left">cancel</i><span class="translate">Cancel</span></a>
|
|
790
|
+
</div>
|
|
791
|
+
</div>
|
|
774
792
|
|
|
775
793
|
<!-- DIALOG: Verification Options - Called once user clicks SAVE -->
|
|
776
794
|
<div id="dialog-save-verification" class="modal modal-fixed-footer">
|
package/admin/index_m.js
CHANGED
|
@@ -237,6 +237,7 @@ function load2(settings, onChange) {
|
|
|
237
237
|
dialogConfigureZoneExecution();
|
|
238
238
|
updateTableButtonIcons(tableId, [{dataButton:'selectTriggers', icon:'pageview'},{dataButton:'selectTargetsMenu', icon:'pageview'},{dataButton:'selectNeverOff', icon:'pageview'},{dataButton:'configureExecution', icon:'schedule', regularSize:true}]);
|
|
239
239
|
addCopyTableRowSmarter(tableId);
|
|
240
|
+
addInfo(tableId);
|
|
240
241
|
break;
|
|
241
242
|
case 'tableZoneExecution':
|
|
242
243
|
dialogSelectSettings({tableId:tableId, triggerDataCmd:'selectAdditionalConditions', targetField:'additionalConditions', dialogTitle:_('Select additional conditions') });
|
|
@@ -516,6 +517,35 @@ function load2(settings, onChange) {
|
|
|
516
517
|
});
|
|
517
518
|
}
|
|
518
519
|
|
|
520
|
+
/**
|
|
521
|
+
* info button for textual explanation of the object
|
|
522
|
+
*/
|
|
523
|
+
function addInfo(tableId) {
|
|
524
|
+
// set the icon
|
|
525
|
+
updateTableButtonIcons(tableId, [{dataButton:'info', icon:'live_help'}]);
|
|
526
|
+
// Apply info editor
|
|
527
|
+
$(`#${tableId} table tbody td a.values-buttons[data-command="info"]`).on('click', function() {
|
|
528
|
+
const rowNum = $(this).data('index'); // table row number which was clicked, starting at zero.
|
|
529
|
+
const tableArr = table2values(tableId);
|
|
530
|
+
const actInfoText = tableArr[rowNum].infoText;
|
|
531
|
+
|
|
532
|
+
$('#dialog-edit-info #infoText').prop('value', actInfoText);
|
|
533
|
+
|
|
534
|
+
// Initialize dialog (modal)
|
|
535
|
+
initDialog('dialog-edit-info', dialogOkClose);
|
|
536
|
+
// Add Name to title
|
|
537
|
+
$('#dialog-edit-info span.info-name').text(tableArr[rowNum].name);
|
|
538
|
+
// Open dialog
|
|
539
|
+
$('#dialog-edit-info').modal('open');
|
|
540
|
+
|
|
541
|
+
// Called once user clicked "Ok" in the dialog
|
|
542
|
+
function dialogOkClose() {
|
|
543
|
+
onChange && onChange();
|
|
544
|
+
tableArr[rowNum].infoText = $('#dialog-edit-info #infoText').prop('value');
|
|
545
|
+
values2table(tableId, tableArr, onChange, function(){val2tableOnReady(tableId);});
|
|
546
|
+
}
|
|
547
|
+
});
|
|
548
|
+
}
|
|
519
549
|
/**
|
|
520
550
|
* We replace "copy table row" command from node_modules/iobroker.admin/www/js/adapter-settings.js
|
|
521
551
|
* Reason: rename name functionality does not work any longer if name keeps the same, therefore
|
package/admin/style.css
CHANGED
|
@@ -51,6 +51,8 @@ table.table-values { table-layout:fixed; }
|
|
|
51
51
|
/* Table Zones: Hide execution option rows */
|
|
52
52
|
#tableZones th:nth-of-type(14) { visibility: hidden; display: none; }
|
|
53
53
|
#tableZones td:nth-of-type(14) { visibility: hidden; display: none; }
|
|
54
|
+
#tableZones th:nth-of-type(15) { visibility: hidden; display: none; }
|
|
55
|
+
#tableZones td:nth-of-type(15) { visibility: hidden; display: none; }
|
|
54
56
|
|
|
55
57
|
/* add space at top/bottom */
|
|
56
58
|
.spaceTop3em {margin-top: 3em; }
|
package/io-package.json
CHANGED
|
@@ -1,8 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "smartcontrol",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.3.0",
|
|
5
5
|
"news": {
|
|
6
|
+
"1.3.0": {
|
|
7
|
+
"en": "remove errors and warnings ocured during deploy\ncomment for zones added",
|
|
8
|
+
"de": "entfernen von fehlern und warnungen während des einsatzes\nkommentar zu zonen hinzugefügt",
|
|
9
|
+
"ru": "удаление ошибок и предупреждений, отмененных во время развертывания\nкомментарий для зон добавлен",
|
|
10
|
+
"pt": "remover erros e avisos ocurados durante a implementação\ncomentário para zonas adicionadas",
|
|
11
|
+
"nl": "verwijder fouten en waarschuwingen tijdens de inzet\nvertaling:",
|
|
12
|
+
"fr": "supprimer les erreurs et les avertissements ocured pendant le déploiement\ncommentaire pour les zones ajoutées",
|
|
13
|
+
"it": "rimuovere gli errori e gli avvisi verificati durante l'implementazione\ncommento per le zone aggiunte",
|
|
14
|
+
"es": "eliminar errores y advertencias ocurridas durante el despliegue\ncomentario para zonas agregadas",
|
|
15
|
+
"pl": "usunąć błędy i ostrzeżenia podczas wdrożenia\nkomentarze do stref",
|
|
16
|
+
"uk": "видалення помилок і попереджень, що виникли під час розгортання\nкоментар до зон",
|
|
17
|
+
"zh-cn": "在部署期间消除错误和警告\n对区域的评论"
|
|
18
|
+
},
|
|
6
19
|
"1.2.2": {
|
|
7
20
|
"en": "migration to links in iobroker-community-adapters\nupdate due to open PR of original repo\nnode testing to 12, 14, 16",
|
|
8
21
|
"de": "migration auf links in iobroker-community-adapter\naktualisierung aufgrund der offenen PR des Originalrepo\nknotentests auf 12, 14, 16",
|
|
@@ -17,91 +30,66 @@
|
|
|
17
30
|
"zh-cn": "移徙与奥罗布克-community-adapters之间的联系\n由于对原状进行公开审查,更新\n对12、14、16"
|
|
18
31
|
},
|
|
19
32
|
"1.2.1": {
|
|
20
|
-
"Enhancement: Now, all adapter config validations take place while saving the adapter configuration, and all identified errors are shown in a dialog. Addresses issue #61"
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
"zh-cn": "增强功能:现在,所有适配器配置验证都在保存适配器配置的同时进行,并且所有已识别的错误均显示在对话框中。解决了问题61"
|
|
31
|
-
}
|
|
33
|
+
"en": "Enhancement: Now, all adapter config validations take place while saving the adapter configuration, and all identified errors are shown in a dialog. Addresses issue #61",
|
|
34
|
+
"de": "Erweiterung: Jetzt finden alle Überprüfungen der Adapterkonfiguration statt, während die Adapterkonfiguration gespeichert wird, und alle identifizierten Fehler werden in einem Dialogfeld angezeigt. Behebt das Problem Nr. 61",
|
|
35
|
+
"ru": "Улучшение: теперь все проверки конфигурации адаптера происходят при сохранении конфигурации адаптера, и все выявленные ошибки отображаются в диалоговом окне. Решает проблему №61.",
|
|
36
|
+
"pt": "Aprimoramento: agora, todas as validações de configuração do adaptador ocorrem ao salvar a configuração do adaptador e todos os erros identificados são mostrados em um diálogo. Resolve o problema # 61",
|
|
37
|
+
"nl": "Verbetering: nu vinden alle adapterconfiguratie-validaties plaats tijdens het opslaan van de adapterconfiguratie en worden alle geïdentificeerde fouten in een dialoogvenster weergegeven. Lost probleem # 61 op",
|
|
38
|
+
"fr": "Amélioration: Désormais, toutes les validations de configuration de l'adaptateur ont lieu lors de l'enregistrement de la configuration de l'adaptateur, et toutes les erreurs identifiées sont affichées dans une boîte de dialogue. Résolution du problème n ° 61",
|
|
39
|
+
"it": "Miglioramento: ora, tutte le convalide della configurazione dell'adattatore vengono eseguite durante il salvataggio della configurazione dell'adattatore e tutti gli errori identificati vengono visualizzati in una finestra di dialogo. Risolve il problema # 61",
|
|
40
|
+
"es": "Mejora: ahora, todas las validaciones de la configuración del adaptador tienen lugar mientras se guarda la configuración del adaptador, y todos los errores identificados se muestran en un cuadro de diálogo. Aborda el problema # 61",
|
|
41
|
+
"pl": "Ulepszenie: teraz wszystkie sprawdzanie poprawności konfiguracji adaptera mają miejsce podczas zapisywania konfiguracji adaptera, a wszystkie zidentyfikowane błędy są wyświetlane w oknie dialogowym. Rozwiązuje problem nr 61",
|
|
42
|
+
"zh-cn": "增强功能:现在,所有适配器配置验证都在保存适配器配置的同时进行,并且所有已识别的错误均显示在对话框中。解决了问题61"
|
|
32
43
|
},
|
|
33
44
|
"1.2.0": {
|
|
34
|
-
"Fix: issue #60 - Linked triggers of motion sensors issue; Several code improvements; Issues #35 and #43 confirmed as resolved, therefore all workaround code removed"
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
"zh-cn": "修复:问题60-运动传感器的链接触发器问题;几处代码改进;问题#35和#43确认已解决,因此删除了所有解决方法代码"
|
|
45
|
-
}
|
|
45
|
+
"en": "Fix: issue #60 - Linked triggers of motion sensors issue; Several code improvements; Issues #35 and #43 confirmed as resolved, therefore all workaround code removed",
|
|
46
|
+
"de": "Fix: Issue #60 - Problem mit verknüpften Auslösern von Bewegungssensoren; Mehrere Codeverbesserungen; Issues #35 und #43 wurden als behoben bestätigt, daher wurde der gesamte Workaround-Code entfernt",
|
|
47
|
+
"ru": "Исправлено: проблема №60 - проблема связанных триггеров датчиков движения; Несколько улучшений кода; Проблемы №35 и №43 подтверждены как решенные, поэтому весь код обходного решения удален.",
|
|
48
|
+
"pt": "Correção: problema nº 60 - Problemas vinculados aos sensores de movimento; Várias melhorias de código; Os problemas nº 35 e nº 43 foram confirmados como resolvidos, portanto, todo o código de solução alternativa foi removido",
|
|
49
|
+
"nl": "Oplossing: probleem # 60 - Probleem met gekoppelde triggers van bewegingssensoren; Diverse codeverbeteringen; Problemen # 35 en # 43 bevestigd als opgelost, daarom is alle tijdelijke code verwijderd",
|
|
50
|
+
"fr": "Correction: problème n ° 60 - Problème lié aux déclencheurs liés aux capteurs de mouvement; Plusieurs améliorations de code; Problèmes n ° 35 et n ° 43 confirmés comme résolus, par conséquent tout le code de solution de contournement a été supprimé",
|
|
51
|
+
"it": "Correzione: problema # 60 - Problemi relativi ai trigger collegati dei sensori di movimento; Diversi miglioramenti al codice; I problemi # 35 e # 43 sono stati confermati come risolti, quindi tutto il codice della soluzione alternativa è stato rimosso",
|
|
52
|
+
"es": "Solución: problema n. ° 60: problemas relacionados con los activadores de los sensores de movimiento; Varias mejoras de código; Los problemas n. ° 35 y n. ° 43 se confirmaron como resueltos, por lo tanto, se eliminó todo el código de solución.",
|
|
53
|
+
"pl": "Poprawka: problem # 60 - Problem z połączonymi wyzwalaczami czujników ruchu; Kilka ulepszeń kodu; Potwierdzono, że problemy 35 i 43 zostały rozwiązane, w związku z czym usunięto cały kod obejścia",
|
|
54
|
+
"zh-cn": "修复:问题60-运动传感器的链接触发器问题;几处代码改进;问题#35和#43确认已解决,因此删除了所有解决方法代码"
|
|
46
55
|
},
|
|
47
56
|
"1.1.1": {
|
|
48
|
-
"Fix: Most likely finally fixes issue #43 as well as workaround for issue #35"
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
"zh-cn": "修复:最有可能最终解决了问题43和问题35的解决方法"
|
|
59
|
-
}
|
|
57
|
+
"en": "Fix: Most likely finally fixes issue #43 as well as workaround for issue #35",
|
|
58
|
+
"de": "Fix: Behebt höchstwahrscheinlich endlich Issue 43 sowie Workaround für Issue 35",
|
|
59
|
+
"ru": "Исправление: Скорее всего, наконец, исправлена проблема № 43, а также решение проблемы № 35.",
|
|
60
|
+
"pt": "Correção: provavelmente, finalmente corrige o problema nº 43, bem como uma solução alternativa para o problema nº 35",
|
|
61
|
+
"nl": "Oplossing: lost waarschijnlijk eindelijk probleem # 43 op, evenals een tijdelijke oplossing voor probleem # 35",
|
|
62
|
+
"fr": "Correctif: corrige très probablement finalement le problème n ° 43 ainsi que la solution de contournement pour le problème n ° 35",
|
|
63
|
+
"it": "Correzione: molto probabilmente risolve finalmente il problema # 43 e la soluzione alternativa per il problema # 35",
|
|
64
|
+
"es": "Solución: lo más probable es que finalmente solucione el problema # 43, así como una solución para el problema # 35",
|
|
65
|
+
"pl": "Poprawka: najprawdopodobniej ostatecznie rozwiązuje problem nr 43, a także obejście problemu nr 35",
|
|
66
|
+
"zh-cn": "修复:最有可能最终解决了问题43和问题35的解决方法"
|
|
60
67
|
},
|
|
61
68
|
"1.1.0": {
|
|
62
|
-
"Improvement: if multiple motion sensors assigned to zone, zone will not switch off if any other motion sensor assigned to same zone is still motion=true"
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
"zh-cn": "修复:如果分配给区域的多个运动传感器,如果分配给同一区域的任何其他运动传感器仍然是motion = true,则区域将不会关闭"
|
|
73
|
-
}
|
|
69
|
+
"en": "Improvement: if multiple motion sensors assigned to zone, zone will not switch off if any other motion sensor assigned to same zone is still motion=true",
|
|
70
|
+
"de": "Verbesserung: Wenn der Zone mehrere Bewegungsmelder zugewiesen sind, wird die Zone nicht ausgeschaltet, wenn ein anderer Bewegungsmelder, der derselben Zone zugewiesen ist, noch Bewegung=true ist",
|
|
71
|
+
"ru": "Исправлено: если несколько датчиков движения назначены зоне, зона не будет отключаться, если любой другой датчик движения, назначенный той же зоне, все еще движется = true",
|
|
72
|
+
"pt": "Correção: se vários sensores de movimento atribuídos à zona, a zona não desligará se qualquer outro sensor de movimento atribuído à mesma zona ainda for movimento = verdadeiro",
|
|
73
|
+
"nl": "Oplossing: als er meerdere bewegingssensoren zijn toegewezen aan een zone, wordt de zone niet uitgeschakeld als een andere bewegingssensor die aan dezelfde zone is toegewezen nog steeds beweging = waar is",
|
|
74
|
+
"fr": "Correction: si plusieurs capteurs de mouvement affectés à la zone, la zone ne s'éteindra pas si un autre capteur de mouvement affecté à la même zone est toujours en mouvement = vrai",
|
|
75
|
+
"it": "Risolto: se più sensori di movimento sono assegnati alla zona, la zona non si spegne se qualsiasi altro sensore di movimento assegnato alla stessa zona è ancora motion = true",
|
|
76
|
+
"es": "Solución: si se asignan varios sensores de movimiento a la zona, la zona no se apagará si cualquier otro sensor de movimiento asignado a la misma zona sigue siendo movimiento = verdadero",
|
|
77
|
+
"pl": "Poprawka: jeśli wiele czujników ruchu jest przypisanych do strefy, strefa nie wyłączy się, jeśli jakikolwiek inny czujnik ruchu przypisany do tej samej strefy jest nadal ruch = prawda",
|
|
78
|
+
"zh-cn": "修复:如果分配给区域的多个运动传感器,如果分配给同一区域的任何其他运动传感器仍然是motion = true,则区域将不会关闭"
|
|
74
79
|
},
|
|
75
80
|
"1.0.0": {
|
|
76
|
-
"No changes - just prepared versioning to add adapter to stable repository per Adapter development documentation"
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
"zh-cn": "无需更改-只需准备版本,即可根据适配器开发文档将适配器添加到稳定的存储库中"
|
|
87
|
-
}
|
|
88
|
-
},
|
|
89
|
-
"0.6.0": {
|
|
90
|
-
"1. Several code improvements / fixes; 2. Enhancement: New 'Linked devices' options for tab '3. TRIGGER', motion sensors.": {
|
|
91
|
-
"en": "1. Several code improvements / fixes; 2. Enhancement: New 'Linked devices' options for tab '3. TRIGGER' -> motion sensors.",
|
|
92
|
-
"de": "1. Mehrere Codeverbesserungen/-korrekturen; 2. Erweiterung: Neue Optionen für verknüpfte Geräte für '3. TRIGGER' -> Bewegungsmelder.",
|
|
93
|
-
"ru": "1. Несколько улучшений / исправлений кода; 2. Улучшение: новые параметры «Связанные устройства» для вкладки «3. ТРИГГЕР, датчики движения.",
|
|
94
|
-
"pt": "1. Várias melhorias / correções de código; 2. Aprimoramento: Novas opções de 'Dispositivos vinculados' para a guia '3. TRIGGER ', sensores de movimento.",
|
|
95
|
-
"nl": "1. Diverse codeverbeteringen / fixes; 2. Verbetering: nieuwe opties voor 'Gekoppelde apparaten' voor tabblad '3. TRIGGER ', bewegingssensoren.",
|
|
96
|
-
"fr": "1. Plusieurs améliorations / corrections de code; 2. Amélioration: Nouvelles options «Appareils liés» pour l'onglet «3. TRIGGER ', capteurs de mouvement.",
|
|
97
|
-
"it": "1. Diversi miglioramenti / correzioni al codice; 2. Miglioramento: nuove opzioni \"Dispositivi collegati\" per la scheda \"3. TRIGGER ', sensori di movimento.",
|
|
98
|
-
"es": "1. Varias mejoras / correcciones de código; 2. Mejora: Nuevas opciones de 'Dispositivos vinculados' para la pestaña '3. TRIGGER ', sensores de movimiento.",
|
|
99
|
-
"pl": "1. Kilka ulepszeń / poprawek kodu; 2. Ulepszenie: Nowe opcje „Połączonych urządzeń” na karcie „3. TRIGGER ”, czujniki ruchu.",
|
|
100
|
-
"zh-cn": "1.若干代码改进/修复; 2.增强功能:选项卡'3新增了“链接的设备”选项。 TRIGGER',运动传感器。"
|
|
101
|
-
}
|
|
81
|
+
"en": "No changes - just prepared versioning to add adapter to stable repository per Adapter development documentation",
|
|
82
|
+
"de": "Keine Änderungen - nur vorbereitete Versionierung zum Hinzufügen des Adapters zum stabilen Repository gemäß der Adapter-Entwicklungs-Dokumentation",
|
|
83
|
+
"ru": "Без изменений - просто подготовлено управление версиями для добавления адаптера в стабильный репозиторий согласно документации по разработке адаптера.",
|
|
84
|
+
"pt": "Sem alterações - apenas controle de versão preparado para adicionar adaptador ao repositório estável de acordo com a documentação de desenvolvimento do adaptador",
|
|
85
|
+
"nl": "Geen wijzigingen - alleen versiebeheer voorbereid om adapter toe te voegen aan stabiele repository per ontwikkelingsdocumentatie voor adapter",
|
|
86
|
+
"fr": "Aucun changement - juste préparé la gestion des versions pour ajouter l'adaptateur au référentiel stable conformément à la documentation de développement de l'adaptateur",
|
|
87
|
+
"it": "Nessuna modifica: solo il controllo delle versioni preparato per aggiungere l'adattatore al repository stabile secondo la documentazione di sviluppo dell'adattatore",
|
|
88
|
+
"es": "Sin cambios: solo versiones preparadas para agregar el adaptador al repositorio estable según la documentación de desarrollo del adaptador",
|
|
89
|
+
"pl": "Bez zmian - po prostu przygotowałem wersję w celu dodania adaptera do stabilnego repozytorium zgodnie z dokumentacją rozwoju adaptera",
|
|
90
|
+
"zh-cn": "无需更改-只需准备版本,即可根据适配器开发文档将适配器添加到稳定的存储库中"
|
|
102
91
|
}
|
|
103
92
|
},
|
|
104
|
-
"title": "Smart Control",
|
|
105
93
|
"titleLang": {
|
|
106
94
|
"en": "Smart Control",
|
|
107
95
|
"de": "Smart Control",
|
|
@@ -159,7 +147,7 @@
|
|
|
159
147
|
"messagebox": true,
|
|
160
148
|
"dependencies": [
|
|
161
149
|
{
|
|
162
|
-
"js-controller": ">=
|
|
150
|
+
"js-controller": ">=3.3.22"
|
|
163
151
|
}
|
|
164
152
|
],
|
|
165
153
|
"plugins": {
|
|
@@ -390,7 +378,8 @@
|
|
|
390
378
|
"neverOff": [],
|
|
391
379
|
"neverOffAll": false,
|
|
392
380
|
"executeAlways": false,
|
|
393
|
-
"executionJson": "[{\"active\":true,\"start\":\"06:00\",\"end\":\"09:00\",\"mon\":true,\"tue\":true,\"wed\":true,\"thu\":true,\"fri\":true,\"sat\":false,\"sun\":false,\"additionalConditions\":[],\"never\":[\"Feiertag heute\",\"Keiner anwesend\"]},{\"active\":true,\"start\":\"08:00\",\"end\":\"11:00\",\"mon\":true,\"tue\":true,\"wed\":true,\"thu\":true,\"fri\":true,\"sat\":false,\"sun\":false,\"additionalConditions\":[\"Feiertag heute\"],\"never\":[\"Keiner anwesend\"]},{\"active\":true,\"start\":\"08:00\",\"end\":\"11:00\",\"mon\":false,\"tue\":false,\"wed\":false,\"thu\":false,\"fri\":false,\"sat\":true,\"sun\":true,\"additionalConditions\":[],\"never\":[\"Feiertag heute\",\"Keiner anwesend\"]}]"
|
|
381
|
+
"executionJson": "[{\"active\":true,\"start\":\"06:00\",\"end\":\"09:00\",\"mon\":true,\"tue\":true,\"wed\":true,\"thu\":true,\"fri\":true,\"sat\":false,\"sun\":false,\"additionalConditions\":[],\"never\":[\"Feiertag heute\",\"Keiner anwesend\"]},{\"active\":true,\"start\":\"08:00\",\"end\":\"11:00\",\"mon\":true,\"tue\":true,\"wed\":true,\"thu\":true,\"fri\":true,\"sat\":false,\"sun\":false,\"additionalConditions\":[\"Feiertag heute\"],\"never\":[\"Keiner anwesend\"]},{\"active\":true,\"start\":\"08:00\",\"end\":\"11:00\",\"mon\":false,\"tue\":false,\"wed\":false,\"thu\":false,\"fri\":false,\"sat\":true,\"sun\":true,\"additionalConditions\":[],\"never\":[\"Feiertag heute\",\"Keiner anwesend\"]}]",
|
|
382
|
+
"infoText": "bewegung im Bad mit Licht und Radio"
|
|
394
383
|
},
|
|
395
384
|
{
|
|
396
385
|
"active": true,
|
|
@@ -408,7 +397,8 @@
|
|
|
408
397
|
"neverOff": [],
|
|
409
398
|
"neverOffAll": false,
|
|
410
399
|
"executeAlways": true,
|
|
411
|
-
"executionJson": ""
|
|
400
|
+
"executionJson": "",
|
|
401
|
+
"infoText": "Flurlicht steuerung"
|
|
412
402
|
},
|
|
413
403
|
{
|
|
414
404
|
"active": true,
|
|
@@ -424,7 +414,8 @@
|
|
|
424
414
|
"neverOff": [],
|
|
425
415
|
"neverOffAll": false,
|
|
426
416
|
"executeAlways": false,
|
|
427
|
-
"executionJson": "[{\"active\":true,\"start\":\"sunset+30\",\"end\":\"sunrise\",\"mon\":true,\"tue\":true,\"wed\":true,\"thu\":true,\"fri\":true,\"sat\":false,\"sun\":false,\"additionalConditions\":[\"Jemand anwesend\"],\"never\":[]}]"
|
|
417
|
+
"executionJson": "[{\"active\":true,\"start\":\"sunset+30\",\"end\":\"sunrise\",\"mon\":true,\"tue\":true,\"wed\":true,\"thu\":true,\"fri\":true,\"sat\":false,\"sun\":false,\"additionalConditions\":[\"Jemand anwesend\"],\"never\":[]}]",
|
|
418
|
+
"infoText": "Leseecke Licht steuerung"
|
|
428
419
|
}
|
|
429
420
|
],
|
|
430
421
|
"tableConditions": [
|
package/main.js
CHANGED
|
@@ -49,7 +49,8 @@ class SmartControl extends utils.Adapter {
|
|
|
49
49
|
Trigger: require('./lib/trigger-class.js'), // Class for Triggers and Target devices handling
|
|
50
50
|
mSuncalc: require('suncalc2'), // https://github.com/andiling/suncalc2
|
|
51
51
|
mSchedule: require('node-schedule'), // https://github.com/node-schedule/node-schedule
|
|
52
|
-
|
|
52
|
+
//ToDo: need to be replaced by axios
|
|
53
|
+
mGot: require('@esm2cjs/got'), // https://github.com/sindresorhus/got || This is a 'request' replacement due to https://nodesource.com/blog/express-going-into-maintenance-mode#alternativestorequest
|
|
53
54
|
|
|
54
55
|
// {object} timers - All timer objects.
|
|
55
56
|
timersZoneOn: {}, // for option "onAfter" in Zones table
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "iobroker.smartcontrol",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "Control devices smarter: by grouping, including triggers like motion, opening window, etc. and set target devices accordingly",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Mic-M",
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
"url": "https://github.com/iobroker-community-adapters/ioBroker.smartcontrol"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
+
"@esm2cjs/got": "^12.5.2",
|
|
28
29
|
"@iobroker/adapter-core": "^2.4.0",
|
|
29
30
|
"@types/jquery": "^3.5.14",
|
|
30
31
|
"cheerio": "^1.0.0-rc.12",
|
|
31
|
-
"got": "^11.8.0",
|
|
32
32
|
"node-schedule": "^2.1.0",
|
|
33
33
|
"suncalc2": "^1.8.1"
|
|
34
34
|
},
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
name: Publish
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
release:
|
|
5
|
-
types: [created]
|
|
6
|
-
|
|
7
|
-
jobs:
|
|
8
|
-
build:
|
|
9
|
-
runs-on: ubuntu-latest
|
|
10
|
-
steps:
|
|
11
|
-
- uses: actions/checkout@v1
|
|
12
|
-
- uses: actions/setup-node@v1
|
|
13
|
-
with:
|
|
14
|
-
node-version: 12
|
|
15
|
-
- run: npm i
|
|
16
|
-
- run: npm test
|
|
17
|
-
|
|
18
|
-
publish-npm:
|
|
19
|
-
needs: build
|
|
20
|
-
runs-on: ubuntu-latest
|
|
21
|
-
steps:
|
|
22
|
-
- uses: actions/checkout@v1
|
|
23
|
-
- uses: actions/setup-node@v1
|
|
24
|
-
with:
|
|
25
|
-
node-version: 12
|
|
26
|
-
registry-url: https://registry.npmjs.org/
|
|
27
|
-
- run: npm i
|
|
28
|
-
- run: npm publish
|
|
29
|
-
env:
|
|
30
|
-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|