iobroker.smartcontrol 2.1.0 → 2.2.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.
Files changed (115) hide show
  1. package/README.md +21 -10
  2. package/admin/custom/assets/Components-CevOCMYi.js +77 -0
  3. package/admin/custom/assets/Components-DIpDvtxi.js +1 -0
  4. package/admin/custom/assets/_virtual_mf-localSharedImportMap___mfe_internal__SmartcontrolSet__mf_owner__1-C9SdP7_s.js +1 -0
  5. package/admin/custom/assets/_virtual_mf___mfe_internal__SmartcontrolSet__mf_owner__108197177487852__loadShare___mf_0_iobroker_mf_1_gui_mf_2_components__loadShare__.js-Ca-6Y14s.js +1525 -0
  6. package/admin/custom/assets/_virtual_mf___mfe_internal__SmartcontrolSet__mf_owner__108197177487852__loadShare__shared-4MdeZwge.js +2 -0
  7. package/admin/custom/assets/_virtual_mf___mfe_internal__SmartcontrolSet__mf_owner__108197177487852__prebuild___mf_0_iobroker_mf_1_json_mf_2_config__prebuild__-QT6he7QZ.js +122 -0
  8. package/admin/custom/assets/_virtual_mf___mfe_internal__SmartcontrolSet__mf_owner__108197177487852__prebuild__react_mf_1_jsx_mf_2_runtime__prebuild__-BWTOCVCn.js +1 -0
  9. package/admin/custom/assets/dist-Cnxr-ruU.js +1 -0
  10. package/admin/custom/assets/helpers-CNHzo155.js +1 -0
  11. package/admin/custom/assets/hostInit-BVoHSU7s.js +1 -0
  12. package/admin/custom/assets/iconLibraryData-B5fiyl1C.js +1 -0
  13. package/admin/custom/assets/index-DKuAVH1b.js +1 -0
  14. package/admin/custom/assets/lib-CgOpGT17.js +3 -0
  15. package/admin/custom/assets/mf-entry-bootstrap-0-c2b3685a.js +54 -0
  16. package/admin/custom/assets/pendingShares-CEz9fejL.js +2 -0
  17. package/admin/custom/assets/prod-XWAlCKxB.js +492 -0
  18. package/admin/custom/assets/rolldown-runtime-9C0vUP4u.js +1 -0
  19. package/admin/custom/assets/utils-DmVoYT7i.js +4 -0
  20. package/admin/custom/assets/vite-preload-helper-nldAWQd6.js +1 -0
  21. package/admin/custom/customComponents.js +12 -0
  22. package/admin/custom/i18n/de.json +59 -0
  23. package/admin/custom/i18n/en.json +59 -0
  24. package/admin/custom/i18n/es.json +59 -0
  25. package/admin/custom/i18n/fr.json +59 -0
  26. package/admin/custom/i18n/it.json +59 -0
  27. package/admin/custom/i18n/nl.json +59 -0
  28. package/admin/custom/i18n/pl.json +59 -0
  29. package/admin/custom/i18n/pt.json +59 -0
  30. package/admin/custom/i18n/ru.json +59 -0
  31. package/admin/custom/i18n/uk.json +59 -0
  32. package/admin/custom/i18n/zh-cn.json +59 -0
  33. package/admin/custom/mf-manifest.json +1 -0
  34. package/admin/doc-md/readme.txt +2 -6
  35. package/admin/doc-md/start_de.md +34 -89
  36. package/admin/doc-md/start_en.md +33 -90
  37. package/admin/doc-md/table-conditions_de.md +7 -9
  38. package/admin/doc-md/table-conditions_en.md +7 -9
  39. package/admin/doc-md/table-execution_de.md +11 -10
  40. package/admin/doc-md/table-execution_en.md +12 -11
  41. package/admin/doc-md/table-options_de.md +58 -0
  42. package/admin/doc-md/table-options_en.md +58 -0
  43. package/admin/doc-md/table-target-devices_de.md +20 -16
  44. package/admin/doc-md/table-target-devices_en.md +18 -16
  45. package/admin/doc-md/table-target-enums_de.md +13 -13
  46. package/admin/doc-md/table-target-enums_en.md +12 -14
  47. package/admin/doc-md/table-target-url_de.md +14 -25
  48. package/admin/doc-md/table-target-url_en.md +14 -23
  49. package/admin/doc-md/table-trigger-devices_de.md +10 -11
  50. package/admin/doc-md/table-trigger-devices_en.md +10 -10
  51. package/admin/doc-md/table-trigger-motion_de.md +41 -24
  52. package/admin/doc-md/table-trigger-motion_en.md +35 -19
  53. package/admin/doc-md/table-trigger-times_de.md +11 -12
  54. package/admin/doc-md/table-trigger-times_en.md +11 -11
  55. package/admin/doc-md/table-zones_de.md +19 -14
  56. package/admin/doc-md/table-zones_en.md +19 -14
  57. package/admin/doc-md/table-zones_select-targets_de.md +7 -15
  58. package/admin/doc-md/table-zones_select-targets_en.md +7 -15
  59. package/admin/i18n/{de/translations.json → de.json} +2 -1
  60. package/admin/i18n/{en/translations.json → en.json} +2 -1
  61. package/admin/i18n/{es/translations.json → es.json} +2 -1
  62. package/admin/i18n/{fr/translations.json → fr.json} +2 -1
  63. package/admin/i18n/{it/translations.json → it.json} +2 -1
  64. package/admin/i18n/{nl/translations.json → nl.json} +2 -1
  65. package/admin/i18n/{pl/translations.json → pl.json} +2 -1
  66. package/admin/i18n/{pt/translations.json → pt.json} +2 -1
  67. package/admin/i18n/{ru/translations.json → ru.json} +2 -1
  68. package/admin/i18n/uk.json +110 -0
  69. package/admin/i18n/{zh-cn/translations.json → zh-cn.json} +2 -1
  70. package/admin/img/option-screenshots/tab-conditions.png +0 -0
  71. package/admin/img/option-screenshots/tab-further-options.png +0 -0
  72. package/admin/img/option-screenshots/tab-start.png +0 -0
  73. package/admin/img/option-screenshots/tab-target-devices.png +0 -0
  74. package/admin/img/option-screenshots/tab-triggers-motion.png +0 -0
  75. package/admin/img/option-screenshots/tab-triggers-other.png +0 -0
  76. package/admin/img/option-screenshots/tab-triggers-time.png +0 -0
  77. package/admin/img/option-screenshots/tab-zones-execution.png +0 -0
  78. package/admin/img/option-screenshots/tab-zones.png +0 -0
  79. package/admin/jsonConfig.json5 +569 -0
  80. package/io-package.json +30 -27
  81. package/lib/helper.js +40 -6
  82. package/lib/trigger-class.js +185 -80
  83. package/lib/trigger-match.js +76 -0
  84. package/main.js +132 -62
  85. package/package.json +11 -21
  86. package/admin/admin.d.ts +0 -4
  87. package/admin/css/LICENSE-github-markdown-css.txt +0 -24
  88. package/admin/css/github-markdown-dark.min.css +0 -8
  89. package/admin/css/github-markdown.min.css +0 -8
  90. package/admin/doc-md/img/start_dropdown-ani.gif +0 -0
  91. package/admin/doc-md/img/start_open-dialog.png +0 -0
  92. package/admin/doc-md/img/start_show-explanation.gif +0 -0
  93. package/admin/doc-md/img/table-zones_select-target-devices-overwrite.gif +0 -0
  94. package/admin/fancytree/skin-lion/icons-rtl.gif +0 -0
  95. package/admin/fancytree/skin-lion/icons.gif +0 -0
  96. package/admin/fancytree/skin-lion/loading.gif +0 -0
  97. package/admin/fancytree/skin-lion/ui.fancytree.min.css +0 -6
  98. package/admin/fancytree/skin-lion/vline-rtl.gif +0 -0
  99. package/admin/fancytree/skin-lion/vline.gif +0 -0
  100. package/admin/img/info-big.png +0 -0
  101. package/admin/img/info-big.png_README.txt +0 -6
  102. package/admin/img/sc_always.png +0 -0
  103. package/admin/img/select-target-devices-overwrite.gif +0 -0
  104. package/admin/img/smartControl_options1.gif +0 -0
  105. package/admin/img/smartControl_options_dropdown.gif +0 -0
  106. package/admin/img/smartControl_options_dropdown_2.gif +0 -0
  107. package/admin/index_m.html +0 -812
  108. package/admin/index_m.js +0 -1659
  109. package/admin/style.css +0 -255
  110. package/admin/tsconfig.json +0 -45
  111. package/admin/words.js +0 -113
  112. package/admin/zero-md/readme.txt +0 -1
  113. package/admin/zero-md/webcomponents-loader.min.js +0 -9
  114. package/admin/zero-md/zero-md.min.js.js +0 -9
  115. package/lib/tools.js +0 -99
@@ -0,0 +1,569 @@
1
+ {
2
+ // Tabs nur als ROOT — in einem Panel (type:tabs als Kind) zeigt Admin nichts außer Custom.
3
+ // Prüfleiste deshalb in jedem Tab (beim Wechsel neu gemountet, Save-Sperre über isVerifyOk).
4
+ type: 'panel',
5
+ i18n: true,
6
+ items: {
7
+ _host: {
8
+ type: 'custom',
9
+ i18n: true,
10
+ url: 'custom/customComponents.js',
11
+ name: 'SmartcontrolSet/Components/TabHost',
12
+ guiApi: 2,
13
+ doNotSave: true,
14
+ xs: 12,
15
+ sm: 12,
16
+ md: 12,
17
+ lg: 12,
18
+ xl: 12,
19
+ // items gehört nicht zu type:custom (CI-Schema). TabHost liest custom.items.
20
+ custom: {
21
+ items: {
22
+ _tabStart: {
23
+ type: 'panel',
24
+ label: { en: 'Start', de: 'Start' },
25
+ items: {
26
+
27
+ _intro: {
28
+ type: 'staticText',
29
+ text: {
30
+ en: 'Define target devices, then optional conditions, then triggers, then zones that connect them. After changes: use Check configuration above the tabs. Save stays locked until it is green. The instance must be running.',
31
+ de: 'Zuerst Zielgeräte, dann optional Bedingungen, dann Auslöser, dann Zonen die alles verbinden. Nach Änderungen: oben „Konfiguration prüfen“. Speichern bleibt gesperrt, bis das grün ist. Die Instanz muss laufen.',
32
+ },
33
+ sm: 12,
34
+ },
35
+ _divAlive: {
36
+ type: 'divider',
37
+ color: 'primary',
38
+ sm: 12,
39
+ newLine: true,
40
+ },
41
+ _hdrAlive: {
42
+ type: 'staticText',
43
+ text: { en: 'Instance', de: 'Instanz' },
44
+ sm: 12,
45
+ // Wie Weitere Optionen / Zonen: MUI subtitle2
46
+ style: { fontSize: '0.875rem', fontWeight: 500, marginTop: 4, marginBottom: 0 },
47
+ },
48
+ _alive: {
49
+ type: 'alive',
50
+ sm: 12,
51
+ },
52
+ _divHelp: {
53
+ type: 'divider',
54
+ color: 'primary',
55
+ sm: 12,
56
+ newLine: true,
57
+ },
58
+ _helpStart: {
59
+ type: 'custom',
60
+ i18n: true,
61
+ url: 'custom/customComponents.js',
62
+ name: 'SmartcontrolSet/Components/HelpMd',
63
+ guiApi: 2,
64
+ doNotSave: true,
65
+ sm: 12,
66
+ custom: { file: 'start', defaultOpen: true },
67
+ label: { en: 'About this adapter', de: 'Über diesen Adapter' },
68
+ },
69
+ },
70
+ },
71
+ _tabDevices: {
72
+ type: 'panel',
73
+ label: { en: '1. Target devices', de: '1. Zielgeräte' },
74
+ items: {
75
+
76
+ _helpDevices: {
77
+ type: 'custom',
78
+ i18n: true,
79
+ url: 'custom/customComponents.js',
80
+ name: 'SmartcontrolSet/Components/HelpMd',
81
+ guiApi: 2,
82
+ doNotSave: true,
83
+ sm: 12,
84
+ custom: { file: 'table-target-devices' },
85
+ label: { en: 'Help: Target devices', de: 'Hilfe: Zielgeräte' },
86
+ },
87
+ tableTargetDevices: {
88
+ type: 'table',
89
+ label: { en: 'Target devices', de: 'Zielgeräte' },
90
+ sm: 12,
91
+ clone: 'name',
92
+ items: [
93
+ { type: 'checkbox', attr: 'active', title: { en: 'Active', de: 'Aktiv' }, width: '4%' },
94
+ { type: 'text', attr: 'name', title: { en: 'Device Name', de: 'Geräte-Name' }, width: '14%' },
95
+ { type: 'objectId', attr: 'onState', title: { en: "State to switch device on", de: 'State zum Einschalten' }, width: '18%' },
96
+ { type: 'text', attr: 'onValue', title: { en: "Value for 'on'", de: "Wert für 'an'" }, width: '8%' },
97
+ { type: 'checkbox', attr: 'noTargetOnCheck', title: { en: 'Do not verify', de: 'Prüfung deaktiv.' }, width: '6%' },
98
+ { type: 'objectId', attr: 'offState', title: { en: "State to switch device off", de: 'State zum Ausschalten' }, width: '18%' },
99
+ { type: 'text', attr: 'offValue', title: { en: "Value for 'off'", de: "Wert für 'aus'" }, width: '8%' },
100
+ { type: 'number', attr: 'onAfter', title: { en: 'Delay ON (s)', de: 'Verzögerung AN (s)' }, width: '8%' },
101
+ { type: 'checkbox', attr: 'noTargetOffCheck', title: { en: 'Do not verify off', de: 'Prüfung aus deaktiv.' }, width: '8%' },
102
+ ],
103
+ },
104
+ _helpEnums: {
105
+ type: 'custom',
106
+ i18n: true,
107
+ url: 'custom/customComponents.js',
108
+ name: 'SmartcontrolSet/Components/HelpMd',
109
+ guiApi: 2,
110
+ doNotSave: true,
111
+ sm: 12,
112
+ newLine: true,
113
+ custom: { file: 'table-target-enums' },
114
+ label: { en: 'Help: Enum functions', de: 'Hilfe: Aufzählungen' },
115
+ },
116
+ tableTargetEnums: {
117
+ type: 'table',
118
+ label: { en: 'Targets: Enum functions', de: 'Ziele: Aufzählungen' },
119
+ sm: 12,
120
+ newLine: true,
121
+ clone: 'name',
122
+ items: [
123
+ { type: 'checkbox', attr: 'active', title: { en: 'Active', de: 'Aktiv' }, width: '5%' },
124
+ { type: 'text', attr: 'name', title: { en: 'Name', de: 'Name' }, width: '15%' },
125
+ {
126
+ type: 'custom',
127
+ attr: 'enumId',
128
+ title: { en: 'Enum Function Name', de: 'Funktions-Name' },
129
+ width: '20%',
130
+ i18n: true,
131
+ url: 'custom/customComponents.js',
132
+ name: 'SmartcontrolSet/Components/EnumSelectFunctions',
133
+ guiApi: 2,
134
+ },
135
+ {
136
+ type: 'custom',
137
+ attr: 'enumRooms',
138
+ title: { en: 'Limit to rooms', de: 'Limitiert auf Räume' },
139
+ width: '20%',
140
+ i18n: true,
141
+ url: 'custom/customComponents.js',
142
+ name: 'SmartcontrolSet/Components/EnumSelectRooms',
143
+ guiApi: 2,
144
+ },
145
+ { type: 'text', attr: 'onValue', title: { en: "Value for 'on'", de: "Wert für 'an'" }, width: '10%' },
146
+ { type: 'checkbox', attr: 'noTargetOnCheck', title: { en: 'Do not verify', de: 'Prüfung deaktiv.' }, width: '8%' },
147
+ { type: 'text', attr: 'offValue', title: { en: "Value for 'off'", de: "Wert für 'aus'" }, width: '10%' },
148
+ { type: 'checkbox', attr: 'noTargetOffCheck', title: { en: 'Do not verify off', de: 'Prüfung aus deaktiv.' }, width: '8%' },
149
+ ],
150
+ },
151
+ _helpUrls: {
152
+ type: 'custom',
153
+ i18n: true,
154
+ url: 'custom/customComponents.js',
155
+ name: 'SmartcontrolSet/Components/HelpMd',
156
+ guiApi: 2,
157
+ doNotSave: true,
158
+ sm: 12,
159
+ newLine: true,
160
+ custom: { file: 'table-target-url' },
161
+ label: { en: 'Help: URLs', de: 'Hilfe: URLs' },
162
+ },
163
+ tableTargetURLs: {
164
+ type: 'table',
165
+ label: { en: 'Targets: URLs', de: 'Ziele: URLs' },
166
+ sm: 12,
167
+ newLine: true,
168
+ clone: 'name',
169
+ items: [
170
+ { type: 'checkbox', attr: 'active', title: { en: 'Active', de: 'Aktiv' }, width: '5%' },
171
+ { type: 'text', attr: 'name', title: { en: 'Name', de: 'Name' }, width: '20%' },
172
+ { type: 'text', attr: 'urlOn', title: { en: 'URL for switching on', de: 'URL zum Einschalten' }, width: '37%' },
173
+ { type: 'text', attr: 'urlOff', title: { en: 'URL for switching off', de: 'URL zum Ausschalten' }, width: '38%' },
174
+ ],
175
+ },
176
+ },
177
+ },
178
+ _tabConditions: {
179
+ type: 'panel',
180
+ label: { en: '2. Additional conditions', de: '2. Bedingungen' },
181
+ items: {
182
+
183
+ _helpConditions: {
184
+ type: 'custom',
185
+ i18n: true,
186
+ url: 'custom/customComponents.js',
187
+ name: 'SmartcontrolSet/Components/HelpMd',
188
+ guiApi: 2,
189
+ doNotSave: true,
190
+ sm: 12,
191
+ custom: { file: 'table-conditions' },
192
+ label: { en: 'Help: Conditions', de: 'Hilfe: Bedingungen' },
193
+ },
194
+ tableConditions: {
195
+ type: 'table',
196
+ sm: 12,
197
+ clone: 'name',
198
+ items: [
199
+ { type: 'checkbox', attr: 'active', title: { en: 'Active', de: 'Aktiv' }, width: '5%' },
200
+ { type: 'text', attr: 'name', title: { en: 'Name of condition', de: 'Name der Bedingung' }, width: '25%' },
201
+ { type: 'objectId', attr: 'conditionState', title: { en: 'State of condition', de: 'State der Bedingung' }, width: '45%' },
202
+ { type: 'text', attr: 'conditionValue', title: { en: 'State value', de: 'State-Wert' }, width: '25%' },
203
+ ],
204
+ },
205
+ },
206
+ },
207
+ _tabTriggers: {
208
+ type: 'panel',
209
+ label: { en: '3. Triggers', de: '3. Auslöser' },
210
+ items: {
211
+
212
+ _helpMotion: {
213
+ type: 'custom',
214
+ i18n: true,
215
+ url: 'custom/customComponents.js',
216
+ name: 'SmartcontrolSet/Components/HelpMd',
217
+ guiApi: 2,
218
+ doNotSave: true,
219
+ sm: 12,
220
+ custom: { file: 'table-trigger-motion' },
221
+ label: { en: 'Help: Motion sensors', de: 'Hilfe: Bewegungsmelder' },
222
+ },
223
+ tableTriggerMotion: {
224
+ type: 'table',
225
+ label: { en: 'Motion sensors', de: 'Bewegungsmelder' },
226
+ sm: 12,
227
+ clone: 'name',
228
+ items: [
229
+ { type: 'checkbox', attr: 'active', title: { en: 'Active', de: 'Aktiv' }, width: '4%' },
230
+ { type: 'text', attr: 'name', title: { en: 'Name of motion sensor', de: 'Name des Melders' }, width: '14%' },
231
+ { type: 'objectId', attr: 'stateId', title: { en: 'Motion datapoint', de: 'Datenpunkt Melder' }, width: '18%' },
232
+ { type: 'number', attr: 'duration', title: { en: 'Sec', de: 'Sek' }, width: '6%' },
233
+ { type: 'checkbox', attr: 'notIfManual', title: { en: 'Not if already on', de: 'Nicht wenn schon an' }, width: '6%' },
234
+ { type: 'objectId', attr: 'briStateId', title: { en: 'Brightness (Lux)', de: 'Helligkeit (Lux)' }, width: '16%' },
235
+ { type: 'number', attr: 'briThreshold', title: { en: 'Threshold', de: 'Grenze' }, width: '6%' },
236
+ {
237
+ type: 'custom',
238
+ attr: 'motionLinkedTrigger',
239
+ title: { en: 'Linked triggers', de: 'Verknüpfte Auslöser' },
240
+ width: '16%',
241
+ i18n: true,
242
+ url: 'custom/customComponents.js',
243
+ name: 'SmartcontrolSet/Components/NameSelectOtherTriggers',
244
+ guiApi: 2,
245
+ },
246
+ {
247
+ type: 'number',
248
+ attr: 'motionLinkedDuration',
249
+ title: { en: 'Sec', de: 'Sek' },
250
+ tooltip: {
251
+ en: 'Off delay when a linked trigger switched on (not the motion-sensor Sec column).',
252
+ de: 'Aus-Zeit, wenn ein verknüpfter Auslöser eingeschaltet hat — nicht die Sek-Spalte des Melders.',
253
+ },
254
+ width: '6%',
255
+ },
256
+ { type: 'checkbox', attr: 'ignoreMotionOn', title: { en: 'Ignore motion on', de: 'Bewegung-AN ignorieren' }, width: '8%' },
257
+ ],
258
+ },
259
+ _helpOther: {
260
+ type: 'custom',
261
+ i18n: true,
262
+ url: 'custom/customComponents.js',
263
+ name: 'SmartcontrolSet/Components/HelpMd',
264
+ guiApi: 2,
265
+ doNotSave: true,
266
+ sm: 12,
267
+ newLine: true,
268
+ custom: { file: 'table-trigger-devices' },
269
+ label: { en: 'Help: Other triggers', de: 'Hilfe: Andere Auslöser' },
270
+ },
271
+ tableTriggerDevices: {
272
+ type: 'table',
273
+ label: { en: 'Other triggers', de: 'Andere Auslöser' },
274
+ sm: 12,
275
+ newLine: true,
276
+ clone: 'name',
277
+ items: [
278
+ { type: 'checkbox', attr: 'active', title: { en: 'Active', de: 'Aktiv' }, width: '5%' },
279
+ { type: 'text', attr: 'name', title: { en: 'Name', de: 'Name' }, width: '18%' },
280
+ {
281
+ type: 'checkbox',
282
+ attr: 'userState',
283
+ title: { en: 'SC user state', de: 'SC-Userstate' },
284
+ tooltip: {
285
+ en: 'If checked, State is only the short name under smartcontrol.x.userstates. (created automatically).',
286
+ de: 'Wenn an: in State nur den kurzen Namen unter smartcontrol.x.userstates. eintragen (wird automatisch angelegt).',
287
+ },
288
+ width: '8%',
289
+ },
290
+ {
291
+ type: 'custom',
292
+ attr: 'stateId',
293
+ title: { en: 'State', de: 'State' },
294
+ width: '48%',
295
+ i18n: true,
296
+ url: 'custom/customComponents.js',
297
+ name: 'SmartcontrolSet/Components/TriggerStateId',
298
+ guiApi: 2,
299
+ },
300
+ { type: 'text', attr: 'stateVal', title: { en: 'State value', de: 'State-Wert' }, width: '15%' },
301
+ { type: 'checkbox', attr: 'targetOff', title: { en: 'Target off', de: 'Ziele aus' }, width: '10%' },
302
+ { type: 'checkbox', attr: 'isToggle', title: { en: 'Toggle', de: 'Toggle' }, width: '12%' },
303
+ ],
304
+ },
305
+ _helpTimes: {
306
+ type: 'custom',
307
+ i18n: true,
308
+ url: 'custom/customComponents.js',
309
+ name: 'SmartcontrolSet/Components/HelpMd',
310
+ guiApi: 2,
311
+ doNotSave: true,
312
+ sm: 12,
313
+ newLine: true,
314
+ custom: { file: 'table-trigger-times' },
315
+ label: { en: 'Help: Time triggers', de: 'Hilfe: Zeit-Auslöser' },
316
+ },
317
+ tableTriggerTimes: {
318
+ type: 'table',
319
+ label: { en: 'Time based triggers', de: 'Zeit-Auslöser' },
320
+ sm: 12,
321
+ newLine: true,
322
+ clone: 'name',
323
+ items: [
324
+ { type: 'checkbox', attr: 'active', title: { en: 'Active', de: 'Aktiv' }, width: '5%' },
325
+ { type: 'text', attr: 'name', title: { en: 'Name of trigger', de: 'Name' }, width: '18%' },
326
+ {
327
+ type: 'text',
328
+ attr: 'time',
329
+ title: { en: 'Time (cron/astro)', de: 'Zeit (Cron/Astro)' },
330
+ tooltip: {
331
+ en: 'Cron like 0 22 * * 1-5 or astro like sunset+30',
332
+ de: 'Cron z. B. 0 22 * * 1-5 oder Astro z. B. sunset+30',
333
+ },
334
+ width: '18%',
335
+ },
336
+ {
337
+ type: 'custom',
338
+ attr: 'additionalConditions',
339
+ title: { en: 'Additional conditions', de: 'Zusätzliche Bedingungen' },
340
+ width: '18%',
341
+ i18n: true,
342
+ url: 'custom/customComponents.js',
343
+ name: 'SmartcontrolSet/Components/NameSelectConditions',
344
+ guiApi: 2,
345
+ },
346
+ { type: 'checkbox', attr: 'additionalConditionsAll', title: { en: 'AND', de: 'UND' }, width: '6%' },
347
+ {
348
+ type: 'custom',
349
+ attr: 'never',
350
+ title: { en: 'Never if...', de: 'Nie wenn…' },
351
+ width: '18%',
352
+ i18n: true,
353
+ url: 'custom/customComponents.js',
354
+ name: 'SmartcontrolSet/Components/NameSelectConditions',
355
+ guiApi: 2,
356
+ },
357
+ { type: 'checkbox', attr: 'neverAll', title: { en: 'AND', de: 'UND' }, width: '6%' },
358
+ { type: 'checkbox', attr: 'targetOff', title: { en: 'Target off', de: 'Ziele aus' }, width: '8%' },
359
+ ],
360
+ },
361
+ },
362
+ },
363
+ _tabZones: {
364
+ type: 'panel',
365
+ label: { en: '4. Zones', de: '4. Zonen' },
366
+ items: {
367
+
368
+ tableZones: {
369
+ type: 'custom',
370
+ i18n: true,
371
+ url: 'custom/customComponents.js',
372
+ name: 'SmartcontrolSet/Components/ZonesEditor',
373
+ guiApi: 2,
374
+ xs: 12,
375
+ sm: 12,
376
+ md: 12,
377
+ lg: 12,
378
+ xl: 12,
379
+ },
380
+ },
381
+ },
382
+ _tabOptions: {
383
+ type: 'panel',
384
+ label: { en: 'Further Options', de: 'Weitere Optionen' },
385
+ items: {
386
+
387
+ _helpOptions: {
388
+ type: 'custom',
389
+ i18n: true,
390
+ url: 'custom/customComponents.js',
391
+ name: 'SmartcontrolSet/Components/HelpMd',
392
+ guiApi: 2,
393
+ doNotSave: true,
394
+ sm: 12,
395
+ custom: { file: 'table-options' },
396
+ label: { en: 'Help: Further options', de: 'Hilfe: Weitere Optionen' },
397
+ },
398
+
399
+ _divMotion: {
400
+ type: 'divider',
401
+ color: 'primary',
402
+ sm: 12,
403
+ newLine: true,
404
+ },
405
+ _hdrMotion: {
406
+ // Kein type:header: der malt einen Vollbreite-Balken (h5 war dazu noch zu klein).
407
+ type: 'staticText',
408
+ text: { en: 'Motion sensors', de: 'Bewegungsmelder' },
409
+ sm: 12,
410
+ // Wie ZonesEditor/Hilfe: MUI subtitle2, nicht eigene Überschrift.
411
+ style: { fontSize: '0.875rem', fontWeight: 500, marginTop: 4, marginBottom: 0 },
412
+ },
413
+ motionIgnoreBriIfZoneOn: {
414
+ type: 'checkbox',
415
+ label: { en: 'Do not verify brightness if zone is on', de: 'Helligkeit (Bri) nicht prüfen falls Zone an' },
416
+ sm: 12,
417
+ },
418
+ _divAstro: {
419
+ type: 'divider',
420
+ color: 'primary',
421
+ sm: 12,
422
+ newLine: true,
423
+ },
424
+ _hdrAstro: {
425
+ type: 'staticText',
426
+ text: { en: 'Time schedule and astro', de: 'Zeitplan und Astro' },
427
+ sm: 12,
428
+ // Wie ZonesEditor/Hilfe: MUI subtitle2, nicht eigene Überschrift.
429
+ style: { fontSize: '0.875rem', fontWeight: 500, marginTop: 4, marginBottom: 0 },
430
+ },
431
+ fixNightNightEnd: {
432
+ type: 'checkbox',
433
+ label: {
434
+ en: 'Set 0:00/2:00 if night/nightEnd is not available',
435
+ de: 'Setze 0:00/2:00, falls kein night/nightEnd verfügbar',
436
+ },
437
+ sm: 12,
438
+ newLine: true,
439
+ },
440
+ _divTrigger: {
441
+ type: 'divider',
442
+ color: 'primary',
443
+ sm: 12,
444
+ newLine: true,
445
+ },
446
+ _hdrTrigger: {
447
+ type: 'staticText',
448
+ text: { en: 'Trigger', de: 'Auslöser' },
449
+ sm: 12,
450
+ // Wie ZonesEditor/Hilfe: MUI subtitle2, nicht eigene Überschrift.
451
+ style: { fontSize: '0.875rem', fontWeight: 500, marginTop: 4, marginBottom: 0 },
452
+ },
453
+ triggerStatesAck: {
454
+ type: 'select',
455
+ label: { en: 'Trigger ACK', de: 'Trigger-ACK' },
456
+ sm: 12,
457
+ md: 4,
458
+ newLine: true,
459
+ options: [
460
+ {
461
+ label: {
462
+ en: 'ack:false only (ignore ack:true)',
463
+ de: 'Nur ack:false (ignoriere ack:true)',
464
+ ru: 'Только ack:false (игнорировать ack:true)',
465
+ pt: 'Apenas ack:false (ignorar ack:true)',
466
+ nl: 'Alleen ack:false (ack:true negeren)',
467
+ fr: 'Uniquement ack:false (ignorer ack:true)',
468
+ it: 'Solo ack:false (ignora ack:true)',
469
+ es: 'Solo ack:false (ignorar ack:true)',
470
+ pl: 'Tylko ack:false (ignoruj ack:true)',
471
+ uk: 'Лише ack:false (ігнорувати ack:true)',
472
+ 'zh-cn': '仅 ack:false(忽略 ack:true)',
473
+ },
474
+ value: 'false',
475
+ },
476
+ {
477
+ label: {
478
+ en: 'ack:true only (ignore ack:false)',
479
+ de: 'Nur ack:true (ignoriere ack:false)',
480
+ ru: 'Только ack:true (игнорировать ack:false)',
481
+ pt: 'Apenas ack:true (ignorar ack:false)',
482
+ nl: 'Alleen ack:true (ack:false negeren)',
483
+ fr: 'Uniquement ack:true (ignorer ack:false)',
484
+ it: 'Solo ack:true (ignora ack:false)',
485
+ es: 'Solo ack:true (ignorar ack:false)',
486
+ pl: 'Tylko ack:true (ignoruj ack:false)',
487
+ uk: 'Лише ack:true (ігнорувати ack:false)',
488
+ 'zh-cn': '仅 ack:true(忽略 ack:false)',
489
+ },
490
+ value: 'true',
491
+ },
492
+ {
493
+ label: {
494
+ en: 'Any (ack:true or ack:false)',
495
+ de: 'Egal (ack:true oder ack:false)',
496
+ ru: 'Любой (ack:true или ack:false)',
497
+ pt: 'Qualquer (ack:true ou ack:false)',
498
+ nl: 'Willekeurig (ack:true of ack:false)',
499
+ fr: 'Tous (ack:true ou ack:false)',
500
+ it: 'Qualsiasi (ack:true o ack:false)',
501
+ es: 'Cualquiera (ack:true o ack:false)',
502
+ pl: 'Dowolny (ack:true lub ack:false)',
503
+ uk: 'Будь-який (ack:true або ack:false)',
504
+ 'zh-cn': '任意(ack:true 或 ack:false)',
505
+ },
506
+ value: 'any',
507
+ },
508
+ ],
509
+ },
510
+ limitTriggerInterval: {
511
+ type: 'number',
512
+ label: { en: 'Min. seconds between same trigger', de: 'Min. Sekunden zwischen gleichen Auslösern' },
513
+ min: 1,
514
+ sm: 12,
515
+ md: 4,
516
+ },
517
+ _divLog: {
518
+ type: 'divider',
519
+ color: 'primary',
520
+ sm: 12,
521
+ newLine: true,
522
+ },
523
+ _hdrLog: {
524
+ type: 'staticText',
525
+ text: { en: 'Logging', de: 'Logging' },
526
+ sm: 12,
527
+ // Wie ZonesEditor/Hilfe: MUI subtitle2, nicht eigene Überschrift.
528
+ style: { fontSize: '0.875rem', fontWeight: 500, marginTop: 4, marginBottom: 0 },
529
+ },
530
+ jsonMaxEntries: {
531
+ type: 'number',
532
+ label: { en: 'JSON log entries (0–500)', de: 'JSON-Log-Einträge (0–500)' },
533
+ min: 0,
534
+ max: 500,
535
+ sm: 12,
536
+ md: 4,
537
+ newLine: true,
538
+ },
539
+ extendedInfoLog: {
540
+ type: 'checkbox',
541
+ label: { en: 'Extended info log', de: 'Erweiterte Info-Log-Ausgaben' },
542
+ sm: 12,
543
+ },
544
+ _divValid: {
545
+ type: 'divider',
546
+ color: 'primary',
547
+ sm: 12,
548
+ newLine: true,
549
+ },
550
+ _hdrValid: {
551
+ type: 'staticText',
552
+ text: { en: 'Input validation', de: 'Eingabe-Validierung' },
553
+ sm: 12,
554
+ // Wie ZonesEditor/Hilfe: MUI subtitle2, nicht eigene Überschrift.
555
+ style: { fontSize: '0.875rem', fontWeight: 500, marginTop: 4, marginBottom: 0 },
556
+ },
557
+ validateDeactivatedRows: {
558
+ type: 'checkbox',
559
+ label: { en: 'Also check deactivated table rows', de: 'Auch deaktivierte Tabellenzeilen prüfen' },
560
+ sm: 12,
561
+ newLine: true,
562
+ },
563
+ },
564
+ },
565
+ },
566
+ },
567
+ },
568
+ },
569
+ }