iobroker.smartcontrol 1.2.2 → 1.3.1

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.
@@ -8,6 +8,7 @@ on:
8
8
 
9
9
  jobs:
10
10
  auto-merge:
11
+ if: github.actor == 'dependabot[bot]'
11
12
  runs-on: ubuntu-latest
12
13
  steps:
13
14
  - name: Checkout code
@@ -26,10 +26,10 @@ jobs:
26
26
 
27
27
  steps:
28
28
  - name: Checkout code
29
- uses: actions/checkout@v2
29
+ uses: actions/checkout@v3
30
30
 
31
31
  - name: Use Node.js ${{ matrix.node-version }}
32
- uses: actions/setup-node@v1
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@v2
58
+ uses: actions/checkout@v3
59
59
 
60
60
  - name: Use Node.js ${{ matrix.node-version }}
61
- uses: actions/setup-node@v1
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: '14.x'
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,14 @@ 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.1 (2022-10-20)
94
+ * (simatec) (oelison) dark mode fix #5
95
+ * (oelison) log info type error #16
96
+
97
+ ### 1.3.0 (2022-10-14)
98
+ * (oelison) remove errors and warnings ocured during deploy
99
+ * (oelison) comment for zones added
100
+
93
101
  ### 1.2.2 (2022-10-11)
94
102
  * (oelison) migration to links in iobroker-community-adapters
95
103
  * (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
@@ -12,3 +12,4 @@ Hier definierst du alle "Zonen" (z.B. Badezimmer 1.OG, Kaffeeecke, usw.) und wei
12
12
  | ![image](https://github.com/iobroker-community-adapters/ioBroker.smartcontrol/blob/master/admin/doc-md/img/done_all-24px.svg?raw=true) | 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
+ | ![image](https://github.com/iobroker-community-adapters/ioBroker.smartcontrol/blob/master/admin/doc-md/img/liveInfo.png?raw=true) | 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
+ | ![image](https://github.com/iobroker-community-adapters/ioBroker.smartcontrol/blob/master/admin/doc-md/img/liveInfo.png?raw=true) | No | Left a comment here. Then you will know in the future, what you have done. |
@@ -88,7 +88,7 @@
88
88
  <p class="translate" style="font-size: 1.3em;">tabMain.Doc</p>
89
89
  </div>
90
90
  <!-- Importing Markdown -->
91
- <zero-md id="md-start" manual-render src="doc-md/start_en.md"></zero-md>
91
+ <zero-md id="md-start" manual-render src="doc-md/start_en.md"><template><style></style></template></zero-md>
92
92
  <div>
93
93
  <p style="margin-top: 25px"><span class="translate">Adapter Version</span>: <span id="adapter-version"></span></p>
94
94
  </div>
@@ -115,13 +115,12 @@
115
115
  </div>
116
116
  <div class="collapsible-body">
117
117
  <!-- Importing Markdown -->
118
- <zero-md id="md-targetDevices" manual-render src="doc-md/table-target-devices_en.md"></zero-md>
118
+ <zero-md id="md-targetDevices" manual-render src="doc-md/table-target-devices_en.md"><template><style></style></template></zero-md>
119
119
  </div>
120
120
  </li>
121
121
  </ul>
122
-
123
122
  <!-- Start Options Table -->
124
- <div class="col s12" id="tableTargetDevices">
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">
@@ -165,7 +164,7 @@
165
164
  <div class="collapsible-header config-section"><h5 class="translate">Targets: Enum functions</h5><i class="material-icons">help_outline</i></div>
166
165
  <div class="collapsible-body">
167
166
  <!-- Importing Markdown -->
168
- <zero-md id="md-tableTargetEnums" manual-render src="doc-md/table-target-enums_en.md"></zero-md>
167
+ <zero-md id="md-tableTargetEnums" manual-render src="doc-md/table-target-enums_en.md"><template><style></style></template></zero-md>
169
168
  </div>
170
169
  </li>
171
170
  </ul>
@@ -210,7 +209,7 @@
210
209
  <div class="collapsible-header config-section"><h5 class="translate">Targets: URLs</h5><i class="material-icons">help_outline</i></div>
211
210
  <div class="collapsible-body">
212
211
  <!-- Importing Markdown -->
213
- <zero-md id="md-tableTargetURLs" manual-render src="doc-md/table-target-url_en.md"></zero-md>
212
+ <zero-md id="md-tableTargetURLs" manual-render src="doc-md/table-target-url_en.md"><template><style></style></template></zero-md>
214
213
  </div>
215
214
  </li>
216
215
  </ul>
@@ -257,13 +256,12 @@
257
256
  <div class="collapsible-header config-section"><h5 class="translate">Additional conditions</h5><i class="material-icons">help_outline</i></div>
258
257
  <div class="collapsible-body">
259
258
  <!-- Importing Markdown -->
260
- <zero-md id="md-tableConditions" manual-render src="doc-md/table-conditions_en.md"></zero-md>
259
+ <zero-md id="md-tableConditions" manual-render src="doc-md/table-conditions_en.md"><template><style></style></template></zero-md>
261
260
  </div>
262
261
  </li>
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">
@@ -306,13 +304,12 @@
306
304
  <div class="collapsible-header config-section"><h5 class="translate">Motion sensors</h5><i class="material-icons">help_outline</i></div>
307
305
  <div class="collapsible-body">
308
306
  <!-- Importing Markdown -->
309
- <zero-md id="md-tableTriggerMotion" manual-render src="doc-md/table-trigger-motion_en.md"></zero-md>
307
+ <zero-md id="md-tableTriggerMotion" manual-render src="doc-md/table-trigger-motion_en.md"><template><style></style></template></zero-md>
310
308
  </div>
311
309
  </li>
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>
@@ -355,13 +351,12 @@
355
351
  <div class="collapsible-header config-section"><h5 class="translate">Other triggers</h5><i class="material-icons">help_outline</i></div>
356
352
  <div class="collapsible-body">
357
353
  <!-- Importing Markdown -->
358
- <zero-md id="md-tableTriggerDevices" manual-render src="doc-md/table-trigger-devices_en.md"></zero-md>
354
+ <zero-md id="md-tableTriggerDevices" manual-render src="doc-md/table-trigger-devices_en.md"><template><style></style></template></zero-md>
359
355
  </div>
360
356
  </li>
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>
@@ -400,14 +394,13 @@
400
394
  <div class="collapsible-header config-section"><h5 class="translate">Time based triggers</h5><i class="material-icons">help_outline</i></div>
401
395
  <div class="collapsible-body">
402
396
  <!-- Importing Markdown -->
403
- <zero-md id="md-tableTriggerTimes" manual-render src="doc-md/table-trigger-times_en.md"></zero-md>
397
+ <zero-md id="md-tableTriggerTimes" manual-render src="doc-md/table-trigger-times_en.md"><template><style></style></template></zero-md>
404
398
  </div>
405
399
  </li>
406
400
  </ul>
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>
@@ -457,14 +449,13 @@
457
449
  <div class="collapsible-header config-section"><h5 class="translate">Zones</h5><i class="material-icons">help_outline</i></div>
458
450
  <div class="collapsible-body">
459
451
  <!-- Importing Markdown -->
460
- <zero-md id="md-tableZones" manual-render src="doc-md/table-zones_en.md"></zero-md>
452
+ <zero-md id="md-tableZones" manual-render src="doc-md/table-zones_en.md"><template><style></style></template></zero-md>
461
453
  </div>
462
454
  </li>
463
455
  </ul>
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: 160px" class="header" data-buttons="up down copy_smart delete"></th>
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>
@@ -656,7 +647,7 @@
656
647
  </div>
657
648
  <div class="row" id="fancy-explanation"> <!-- will be hidden if editTargetVals is false -->
658
649
  <!-- Importing Markdown -->
659
- <zero-md id="md-tableZonesSelectTargets" manual-render src="doc-md/table-zones_select-targets_en.md"></zero-md>
650
+ <zero-md id="md-tableZonesSelectTargets" manual-render src="doc-md/table-zones_select-targets_en.md"><template><style></style></template></zero-md>
660
651
  <!-- <span class="translate">dialog.selectSettings.explanation</span> -->
661
652
  </div>
662
653
  <!-- The Fancy Tree -->
@@ -712,7 +703,7 @@
712
703
  <div class="collapsible-header config-section"><h5><span class="translate">Execution settings for zone</span> '<span class="zone-name">Placeholder</span>'</h5><i class="material-icons">help_outline</i></div>
713
704
  <div class="collapsible-body">
714
705
  <!-- Importing Markdown -->
715
- <zero-md id="md-tableExecution" manual-render src="doc-md/table-execution_en.md"></zero-md>
706
+ <zero-md id="md-tableExecution" manual-render src="doc-md/table-execution_en.md"><template><style></style></template></zero-md>
716
707
  </div>
717
708
  </li>
718
709
  </ul>
@@ -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,31 @@
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 -->
768
+ <ul>
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></div>
771
+ </li>
772
+ </ul>
773
+ <!-- END: Header -->
774
+
775
+ <!-- textbox info text -->
776
+ <div class="row">
777
+ <div class="input-field">
778
+ <input type="text" class="value" id="infoText" />
779
+ </div>
780
+ </div>
781
+ </div>
782
+ </div>
783
+ <div class="modal-footer">
784
+ <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>
785
+ <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>
786
+ </div>
787
+ </div>
774
788
 
775
789
  <!-- DIALOG: Verification Options - Called once user clicks SAVE -->
776
790
  <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
@@ -29,6 +29,16 @@
29
29
  .m .row .col.m1 { width: 14%; }
30
30
  #tab-area { padding-left:0;padding-right:0; margin-top: 0px; margin-bottom: 1px; background-color:#174475; box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2) }
31
31
 
32
+ /* Tabs menu react-dark */
33
+ .m.react-dark .tabs .tab a.active, .m .tabs .tab a:hover { color: #2196f3; }
34
+ .m.react-dark .tabs { background-color: #272727 !important;}
35
+ .m.react-dark .md-import { background-color: #E0EBF3; color:yellow !important;}
36
+
37
+ /* Tabs menu react-blue */
38
+ .m.react-blue .tabs .tab a.active, .m .tabs .tab a:hover { color: #2196f3; }
39
+ .m.react-blue .tabs { background-color: #272727 !important;}
40
+ .m.react-blue .md-import { background-color: #E0EBF3; color:yellow !important;}
41
+
32
42
  /* Table header */
33
43
  table.table-values th.header { background-color:#64BfF6; font-size:90%; text-align:center; line-height: 1em; padding:6px 2px;}
34
44
 
@@ -51,6 +61,8 @@ table.table-values { table-layout:fixed; }
51
61
  /* Table Zones: Hide execution option rows */
52
62
  #tableZones th:nth-of-type(14) { visibility: hidden; display: none; }
53
63
  #tableZones td:nth-of-type(14) { visibility: hidden; display: none; }
64
+ #tableZones th:nth-of-type(15) { visibility: hidden; display: none; }
65
+ #tableZones td:nth-of-type(15) { visibility: hidden; display: none; }
54
66
 
55
67
  /* add space at top/bottom */
56
68
  .spaceTop3em {margin-top: 3em; }
@@ -137,6 +149,19 @@ code { padding: 2px 4px; font-size: 1.05em !important; color: #2696ef; backgroun
137
149
  #dialog-select-settings #fancytree-select-settings {display:inline !important}
138
150
  #dialog-select-settings .modal-content {padding-bottom: 0 !important; padding-right: 0 !important; height: calc(100% - 50px)!important }
139
151
 
152
+ .m.react-dark #dialog-select-settings ul.fancytree-container {
153
+ background-color: #272727;
154
+ }
155
+ .m.react-blue #dialog-select-settings ul.fancytree-container {
156
+ background-color: #272727;
157
+ }
158
+
159
+ .m.react-dark #dialog-select-settings span.fancytree-title:hover {
160
+ background-color: rgb(59, 59, 59);
161
+ }
162
+ .m.react-blue #dialog-select-settings span.fancytree-title:hover {
163
+ background-color: rgb(59, 59, 59);
164
+ }
140
165
  /* Dialog called once SAVE button clicked and verification failed */
141
166
  #dialog-save-verification div.error-section { font-size: 1.3em; }
142
167
  #dialog-save-verification div.error-section ol>li { color:#d92626; padding-bottom:0.5em !important; }
package/admin/words.js CHANGED
@@ -20,6 +20,7 @@ systemDictionary = {
20
20
  "Further Options": { "en": "Further Options", "de": "Weitere Optionen", "ru": "Дополнительные возможности", "pt": "Opções Adicionais", "nl": "Verdere opties", "fr": "Autres options", "it": "Ulteriori opzioni", "es": "Más opciones", "pl": "Dalsze opcje", "zh-cn": "更多选择"},
21
21
  "Hello World": { "en": "Hello World", "de": "Hallo Welt", "ru": "Привет мир", "pt": "Olá Mundo", "nl": "Hallo Wereld", "fr": "Bonjour le monde", "it": "Ciao mondo", "es": "Hola Mundo", "pl": "Witaj świecie", "zh-cn": "你好,世界"},
22
22
  "Incorrect configuration": { "en": "Incorrect configuration", "de": "Fehlerhafte Konfiguration", "ru": "Неправильная конфигурация", "pt": "Configuração incorreta", "nl": "Onjuiste configuratie", "fr": "Mauvaise configuration", "it": "Configurazione errata", "es": "Configuracion incorrecta", "pl": "Nieprawidłowa konfiguracja", "zh-cn": "配置错误"},
23
+ "Informational note to the object": { "en": "Informational note to the object", "de": "Informationshinweis zum Objekt", "ru": "Информационное примечание к объекту", "pt": "Nota informativa ao objeto", "nl": "Informatie notitie van het object", "fr": "Note d ' information sur l ' objet", "it": "Nota informativa all'oggetto", "es": "Nota informativa al objeto", "pl": "Informacja na temat obiektu", "zh-cn": "目标说明"},
23
24
  "Input Validation": { "en": "Input Validation", "de": "Eingabe-Validierung", "ru": "Проверка ввода", "pt": "Validação de entrada", "nl": "Invoervalidatie", "fr": "Validation d'entrée", "it": "Convalida dell'input", "es": "Validación de entrada", "pl": "Walidacja danych wejściowych", "zh-cn": "输入验证"},
24
25
  "JSON state for recent successful zone activations": {"en": "JSON state for recent successful zone activations", "de": "JSON-Datenpunkt for die letzten erfolgreichen Zonen-Aktivierungen", "ru": "Состояние JSON для недавних успешных активаций зоны", "pt": "Estado JSON para recentes ativações de zona bem-sucedidas", "nl": "JSON-status voor recente succesvolle zone-activeringen", "fr": "État JSON pour les activations de zone récentes réussies", "it": "Stato JSON per le recenti attivazioni di zona riuscite", "es": "Estado JSON para activaciones de zona exitosas recientes", "pl": "Stan JSON dla ostatnich udanych aktywacji stref", "zh-cn": "近期成功成功激活区域的JSON状态"},
25
26
  "JSON states under .info": { "en": "JSON-Datenpunkte unter .info", "de": "JSON-Datenpunkte unter .info", "ru": "JSON-Datenpunkte под .info", "pt": "JSON-Datenpunkte unter .info", "nl": "JSON-gegevenspunkte onder .info", "fr": "JSON-Datenpunkte unter .info", "it": "JSON-Datenpunkte unter .info", "es": "JSON-Datenpunkte unter .info", "pl": "JSON-Datenpunkte unter .info", "zh-cn": "JSON-Datenpunkte unter .info"},
package/io-package.json CHANGED
@@ -1,8 +1,34 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "smartcontrol",
4
- "version": "1.2.2",
4
+ "version": "1.3.1",
5
5
  "news": {
6
+ "1.3.1": {
7
+ "en": "(oelison) dark mode fix #5\nlog info type error #16",
8
+ "de": "(oelison) dunkler modus fix #5\nlog info type fehler #16",
9
+ "ru": "(oelison) темный режим исправить #5\nтип лога ошибка #16",
10
+ "pt": "(oelison) correção de modo escuro #5\nlog info type error #16",
11
+ "nl": "duistere mode fix #5\nquality over quantity (qoq) releases vertaling:",
12
+ "fr": "(oelison) fixation du mode noir #5\njournal info type error #16",
13
+ "it": "(oelison) modalità dark fix #5\nlog info tipo errore #16",
14
+ "es": "(oelison) modo oscuro fijar #5\ntipo de registro error #16",
15
+ "pl": "(oelison) mroczny tryb ułożenia #5\nbłąd logiki #16",
16
+ "uk": "(oelison) темний режим виправити #5\nлог інформація типу помилка #16",
17
+ "zh-cn": "(oelison) 黑暗模式\n第16条"
18
+ },
19
+ "1.3.0": {
20
+ "en": "remove errors and warnings ocured during deploy\ncomment for zones added",
21
+ "de": "entfernen von fehlern und warnungen während des einsatzes\nkommentar zu zonen hinzugefügt",
22
+ "ru": "удаление ошибок и предупреждений, отмененных во время развертывания\nкомментарий для зон добавлен",
23
+ "pt": "remover erros e avisos ocurados durante a implementação\ncomentário para zonas adicionadas",
24
+ "nl": "verwijder fouten en waarschuwingen tijdens de inzet\nvertaling:",
25
+ "fr": "supprimer les erreurs et les avertissements ocured pendant le déploiement\ncommentaire pour les zones ajoutées",
26
+ "it": "rimuovere gli errori e gli avvisi verificati durante l'implementazione\ncommento per le zone aggiunte",
27
+ "es": "eliminar errores y advertencias ocurridas durante el despliegue\ncomentario para zonas agregadas",
28
+ "pl": "usunąć błędy i ostrzeżenia podczas wdrożenia\nkomentarze do stref",
29
+ "uk": "видалення помилок і попереджень, що виникли під час розгортання\nкоментар до зон",
30
+ "zh-cn": "在部署期间消除错误和警告\n对区域的评论"
31
+ },
6
32
  "1.2.2": {
7
33
  "en": "migration to links in iobroker-community-adapters\nupdate due to open PR of original repo\nnode testing to 12, 14, 16",
8
34
  "de": "migration auf links in iobroker-community-adapter\naktualisierung aufgrund der offenen PR des Originalrepo\nknotentests auf 12, 14, 16",
@@ -17,91 +43,54 @@
17
43
  "zh-cn": "移徙与奥罗布克-community-adapters之间的联系\n由于对原状进行公开审查,更新\n对12、14、16"
18
44
  },
19
45
  "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
- "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",
22
- "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",
23
- "ru": "Улучшение: теперь все проверки конфигурации адаптера происходят при сохранении конфигурации адаптера, и все выявленные ошибки отображаются в диалоговом окне. Решает проблему №61.",
24
- "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",
25
- "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",
26
- "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",
27
- "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",
28
- "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",
29
- "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",
30
- "zh-cn": "增强功能:现在,所有适配器配置验证都在保存适配器配置的同时进行,并且所有已识别的错误均显示在对话框中。解决了问题61"
31
- }
46
+ "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",
47
+ "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",
48
+ "ru": "Улучшение: теперь все проверки конфигурации адаптера происходят при сохранении конфигурации адаптера, и все выявленные ошибки отображаются в диалоговом окне. Решает проблему №61.",
49
+ "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",
50
+ "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",
51
+ "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",
52
+ "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",
53
+ "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",
54
+ "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",
55
+ "zh-cn": "增强功能:现在,所有适配器配置验证都在保存适配器配置的同时进行,并且所有已识别的错误均显示在对话框中。解决了问题61"
32
56
  },
33
57
  "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
- "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",
36
- "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",
37
- "ru": "Исправлено: проблема №60 - проблема связанных триггеров датчиков движения; Несколько улучшений кода; Проблемы №35 и №43 подтверждены как решенные, поэтому весь код обходного решения удален.",
38
- "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",
39
- "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",
40
- "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é",
41
- "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",
42
- "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.",
43
- "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",
44
- "zh-cn": "修复:问题60-运动传感器的链接触发器问题;几处代码改进;问题#35和#43确认已解决,因此删除了所有解决方法代码"
45
- }
58
+ "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",
59
+ "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",
60
+ "ru": "Исправлено: проблема №60 - проблема связанных триггеров датчиков движения; Несколько улучшений кода; Проблемы №35 и №43 подтверждены как решенные, поэтому весь код обходного решения удален.",
61
+ "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",
62
+ "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",
63
+ "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é",
64
+ "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",
65
+ "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.",
66
+ "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",
67
+ "zh-cn": "修复:问题60-运动传感器的链接触发器问题;几处代码改进;问题#35和#43确认已解决,因此删除了所有解决方法代码"
46
68
  },
47
69
  "1.1.1": {
48
- "Fix: Most likely finally fixes issue #43 as well as workaround for issue #35": {
49
- "en": "Fix: Most likely finally fixes issue #43 as well as workaround for issue #35",
50
- "de": "Fix: Behebt höchstwahrscheinlich endlich Issue 43 sowie Workaround für Issue 35",
51
- "ru": "Исправление: Скорее всего, наконец, исправлена проблема № 43, а также решение проблемы № 35.",
52
- "pt": "Correção: provavelmente, finalmente corrige o problema nº 43, bem como uma solução alternativa para o problema nº 35",
53
- "nl": "Oplossing: lost waarschijnlijk eindelijk probleem # 43 op, evenals een tijdelijke oplossing voor probleem # 35",
54
- "fr": "Correctif: corrige très probablement finalement le problème n ° 43 ainsi que la solution de contournement pour le problème n ° 35",
55
- "it": "Correzione: molto probabilmente risolve finalmente il problema # 43 e la soluzione alternativa per il problema # 35",
56
- "es": "Solución: lo más probable es que finalmente solucione el problema # 43, así como una solución para el problema # 35",
57
- "pl": "Poprawka: najprawdopodobniej ostatecznie rozwiązuje problem nr 43, a także obejście problemu nr 35",
58
- "zh-cn": "修复:最有可能最终解决了问题43和问题35的解决方法"
59
- }
70
+ "en": "Fix: Most likely finally fixes issue #43 as well as workaround for issue #35",
71
+ "de": "Fix: Behebt höchstwahrscheinlich endlich Issue 43 sowie Workaround für Issue 35",
72
+ "ru": "Исправление: Скорее всего, наконец, исправлена проблема № 43, а также решение проблемы № 35.",
73
+ "pt": "Correção: provavelmente, finalmente corrige o problema nº 43, bem como uma solução alternativa para o problema nº 35",
74
+ "nl": "Oplossing: lost waarschijnlijk eindelijk probleem # 43 op, evenals een tijdelijke oplossing voor probleem # 35",
75
+ "fr": "Correctif: corrige très probablement finalement le problème n ° 43 ainsi que la solution de contournement pour le problème n ° 35",
76
+ "it": "Correzione: molto probabilmente risolve finalmente il problema # 43 e la soluzione alternativa per il problema # 35",
77
+ "es": "Solución: lo más probable es que finalmente solucione el problema # 43, así como una solución para el problema # 35",
78
+ "pl": "Poprawka: najprawdopodobniej ostatecznie rozwiązuje problem nr 43, a także obejście problemu nr 35",
79
+ "zh-cn": "修复:最有可能最终解决了问题43和问题35的解决方法"
60
80
  },
61
81
  "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
- "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",
64
- "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",
65
- "ru": "Исправлено: если несколько датчиков движения назначены зоне, зона не будет отключаться, если любой другой датчик движения, назначенный той же зоне, все еще движется = true",
66
- "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",
67
- "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",
68
- "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",
69
- "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",
70
- "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",
71
- "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",
72
- "zh-cn": "修复:如果分配给区域的多个运动传感器,如果分配给同一区域的任何其他运动传感器仍然是motion = true,则区域将不会关闭"
73
- }
74
- },
75
- "1.0.0": {
76
- "No changes - just prepared versioning to add adapter to stable repository per Adapter development documentation": {
77
- "en": "No changes - just prepared versioning to add adapter to stable repository per Adapter development documentation",
78
- "de": "Keine Änderungen - nur vorbereitete Versionierung zum Hinzufügen des Adapters zum stabilen Repository gemäß der Adapter-Entwicklungs-Dokumentation",
79
- "ru": "Без изменений - просто подготовлено управление версиями для добавления адаптера в стабильный репозиторий согласно документации по разработке адаптера.",
80
- "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",
81
- "nl": "Geen wijzigingen - alleen versiebeheer voorbereid om adapter toe te voegen aan stabiele repository per ontwikkelingsdocumentatie voor adapter",
82
- "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",
83
- "it": "Nessuna modifica: solo il controllo delle versioni preparato per aggiungere l'adattatore al repository stabile secondo la documentazione di sviluppo dell'adattatore",
84
- "es": "Sin cambios: solo versiones preparadas para agregar el adaptador al repositorio estable según la documentación de desarrollo del adaptador",
85
- "pl": "Bez zmian - po prostu przygotowałem wersję w celu dodania adaptera do stabilnego repozytorium zgodnie z dokumentacją rozwoju adaptera",
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
- }
82
+ "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",
83
+ "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",
84
+ "ru": "Исправлено: если несколько датчиков движения назначены зоне, зона не будет отключаться, если любой другой датчик движения, назначенный той же зоне, все еще движется = true",
85
+ "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",
86
+ "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",
87
+ "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",
88
+ "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",
89
+ "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",
90
+ "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",
91
+ "zh-cn": "修复:如果分配给区域的多个运动传感器,如果分配给同一区域的任何其他运动传感器仍然是motion = true,则区域将不会关闭"
102
92
  }
103
93
  },
104
- "title": "Smart Control",
105
94
  "titleLang": {
106
95
  "en": "Smart Control",
107
96
  "de": "Smart Control",
@@ -159,7 +148,7 @@
159
148
  "messagebox": true,
160
149
  "dependencies": [
161
150
  {
162
- "js-controller": ">=1.4.2"
151
+ "js-controller": ">=3.3.22"
163
152
  }
164
153
  ],
165
154
  "plugins": {
@@ -390,7 +379,8 @@
390
379
  "neverOff": [],
391
380
  "neverOffAll": false,
392
381
  "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\"]}]"
382
+ "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\"]}]",
383
+ "infoText": "bewegung im Bad mit Licht und Radio"
394
384
  },
395
385
  {
396
386
  "active": true,
@@ -408,7 +398,8 @@
408
398
  "neverOff": [],
409
399
  "neverOffAll": false,
410
400
  "executeAlways": true,
411
- "executionJson": ""
401
+ "executionJson": "",
402
+ "infoText": "Flurlicht steuerung"
412
403
  },
413
404
  {
414
405
  "active": true,
@@ -424,7 +415,8 @@
424
415
  "neverOff": [],
425
416
  "neverOffAll": false,
426
417
  "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\":[]}]"
418
+ "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\":[]}]",
419
+ "infoText": "Leseecke Licht steuerung"
428
420
  }
429
421
  ],
430
422
  "tableConditions": [
@@ -111,9 +111,9 @@ class Trigger {
111
111
  } else {
112
112
  this.motionDuration = 0;
113
113
  }
114
- if (result.row.briThreshold && parseInt(result.row.briThreshold) > 0 && result.row.briStateId && result.row.briStateId.length > 5) {
114
+ if (result.row.briThreshold && (parseInt(result.row.briThreshold) > 0) && result.row.briStateId && result.row.briStateId.length > 5) {
115
115
  this.motionBriStatePath = result.row.briStateId;
116
- this.motionBriThreshold = result.row.briThreshold;
116
+ this.motionBriThreshold = parseInt(result.row.briThreshold);
117
117
  } else {
118
118
  this.motionBriStatePath = '';
119
119
  this.motionBriThreshold = 0;
@@ -188,8 +188,8 @@ class Trigger {
188
188
  /**
189
189
  * Prepare: If Motion Sensor triggered - verify brightness if bri is set
190
190
  */
191
- if (!this.mimicMotion && this.triggerIsMotion && !this.adapter.x.helper.isLikeEmpty(this.motionBriStatePath) && this.adapter.x.helper.isNumber(this.motionBriThreshold) && parseInt(this.motionBriThreshold) > 0) {
192
-
191
+ if (!this.mimicMotion && this.triggerIsMotion && !this.adapter.x.helper.isLikeEmpty(this.motionBriStatePath) && this.adapter.x.helper.isNumber(this.motionBriThreshold) && this.motionBriThreshold && (this.motionBriThreshold > 0)) {
192
+
193
193
  if (this.adapter.config.motionIgnoreBriIfZoneOn && this.adapter.x.zonesIsOn[zoneName]) {
194
194
  // Disregard Brightness if zone is on (if this.adapter.config.motionIgnoreBriIfZoneOn == true)
195
195
  this.adapter.log.debug(`Trigger [${this.triggerName}] Zone '${zoneName}' is on and new motion detected, therefore, we disregard any current brightness.`);
@@ -200,7 +200,7 @@ class Trigger {
200
200
  if (this.adapter.x.helper.isLikeEmpty(briStateValCurrent) || !this.adapter.x.helper.isNumber(briStateValCurrent) || parseInt(briStateValCurrent) < 0) {
201
201
  // Bri not valid, so disregard bri and continue
202
202
  this.adapter.log.debug(`Trigger [${this.triggerName}] Brightness of ${briStateValCurrent} of ${this.motionBriStatePath} is not valid. State Value: [${briStateValCurrent}]. Therefore, bri will be disregarded and we continue.`);
203
- } else if (parseInt(briStateValCurrent) < parseInt(this.motionBriThreshold)) {
203
+ } else if (parseInt(briStateValCurrent) < this.motionBriThreshold) {
204
204
  // continue
205
205
  this.adapter.log.debug(`Trigger [${this.triggerName}] Brightness of ${briStateValCurrent} is < threshold of ${this.motionBriThreshold}, so we continue.`);
206
206
  } else {
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
- mGot: require('got'), // https://github.com/sindresorhus/got || This is a 'request' replacement due to https://nodesource.com/blog/express-going-into-maintenance-mode#alternativestorequest
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
@@ -403,7 +404,6 @@ class SmartControl extends utils.Adapter {
403
404
  if (!res) {
404
405
  throw(`Certain error(s) occurred in asyncCreateStates().`);
405
406
  }
406
-
407
407
  // Delete all states which are no longer used.
408
408
  const allAdapterStates = await this.getStatesOfAsync('options');
409
409
  if (allAdapterStates != undefined) {
@@ -412,7 +412,7 @@ class SmartControl extends utils.Adapter {
412
412
  if ( (statePathsOnly.indexOf(statePath) == -1) && (statePath.endsWith('active') || (statePath.endsWith('name') ) ) ) {
413
413
  // State is no longer used.
414
414
  await this.delObjectAsync(statePath); // Delete state.
415
- this.x.helper.logExtendedInfo(`State '${statePath}' deleted, since option does no longer exist.'`);
415
+ this.x.helper.logExtendedInfo(`State ${statePath} deleted, since option does no longer exist.`);
416
416
  }
417
417
  }
418
418
  }
@@ -428,10 +428,17 @@ class SmartControl extends utils.Adapter {
428
428
  if(typeof optionObj.row[optionObj.field] == 'object') {
429
429
  val = JSON.stringify(optionObj.row[optionObj.field]);
430
430
  } else {
431
- val = optionObj.row[optionObj.field];
431
+ if (lpStatePath.endsWith('briThreshold')) {
432
+ val = parseInt(optionObj.row[optionObj.field]);
433
+ }
434
+ else if (lpStatePath.endsWith('duration')) {
435
+ val = parseInt(optionObj.row[optionObj.field]);
436
+ }
437
+ else {
438
+ val = optionObj.row[optionObj.field];
439
+ }
432
440
  }
433
441
  await this.setStateAsync(lpStatePath, {val:val, ack:true});
434
-
435
442
  }
436
443
 
437
444
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker.smartcontrol",
3
- "version": "1.2.2",
3
+ "version": "1.3.1",
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}}