iobroker.smartcontrol 1.2.1 → 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.
Files changed (50) hide show
  1. package/.github/ISSUE_TEMPLATE/BugReport.md +36 -36
  2. package/.github/ISSUE_TEMPLATE/Enhancement.md +19 -19
  3. package/.github/auto-merge.yml +17 -17
  4. package/.github/workflows/dependabot-auto-merge.yml +23 -22
  5. package/.github/workflows/test-and-release.yml +92 -129
  6. package/.releaseconfig.json +3 -0
  7. package/LICENSE +21 -21
  8. package/README.md +378 -406
  9. package/admin/admin.d.ts +1 -0
  10. package/admin/doc-md/img/liveInfo.png +0 -0
  11. package/admin/doc-md/info-text_de.md +1 -0
  12. package/admin/doc-md/info-text_en.md +1 -0
  13. package/admin/doc-md/readme.txt +6 -6
  14. package/admin/doc-md/start_de.md +124 -124
  15. package/admin/doc-md/start_en.md +126 -126
  16. package/admin/doc-md/table-conditions_de.md +10 -10
  17. package/admin/doc-md/table-conditions_en.md +10 -10
  18. package/admin/doc-md/table-execution_de.md +12 -12
  19. package/admin/doc-md/table-execution_en.md +12 -12
  20. package/admin/doc-md/table-target-devices_de.md +18 -18
  21. package/admin/doc-md/table-target-devices_en.md +21 -21
  22. package/admin/doc-md/table-target-enums_de.md +13 -13
  23. package/admin/doc-md/table-target-enums_en.md +15 -15
  24. package/admin/doc-md/table-target-url_de.md +29 -29
  25. package/admin/doc-md/table-target-url_en.md +27 -27
  26. package/admin/doc-md/table-trigger-devices_de.md +12 -12
  27. package/admin/doc-md/table-trigger-devices_en.md +10 -10
  28. package/admin/doc-md/table-trigger-motion_de.md +23 -23
  29. package/admin/doc-md/table-trigger-motion_en.md +24 -24
  30. package/admin/doc-md/table-trigger-times_de.md +13 -13
  31. package/admin/doc-md/table-trigger-times_en.md +11 -11
  32. package/admin/doc-md/table-zones_de.md +15 -14
  33. package/admin/doc-md/table-zones_en.md +15 -14
  34. package/admin/doc-md/table-zones_select-targets_de.md +18 -18
  35. package/admin/doc-md/table-zones_select-targets_en.md +18 -18
  36. package/admin/index_m.html +32 -14
  37. package/admin/index_m.js +31 -1
  38. package/admin/style.css +2 -0
  39. package/admin/zero-md/webcomponents-loader.min.js +8 -8
  40. package/admin/zero-md/zero-md.min.js.js +8 -8
  41. package/io-package.json +453 -449
  42. package/lib/adapter-config.d.ts +15 -15
  43. package/lib/constants.js +128 -128
  44. package/lib/helper.js +1069 -1069
  45. package/lib/tools.js +93 -93
  46. package/lib/trigger-class.js +964 -964
  47. package/main.js +3 -2
  48. package/main.test.js +30 -30
  49. package/package.json +73 -70
  50. package/.github/workflows/npmpublish.yml +0 -30
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.
@@ -1,6 +1,6 @@
1
- SmartControl Adapter
2
-
3
- This folder expects Markdown files, which will be added to index_m.html by using https://github.com/zerodevx/zero-md
4
-
5
-
6
-
1
+ SmartControl Adapter
2
+
3
+ This folder expects Markdown files, which will be added to index_m.html by using https://github.com/zerodevx/zero-md
4
+
5
+
6
+
@@ -1,124 +1,124 @@
1
- <!-- Markdown Collapsible Section, see https://gist.github.com/pierrejoubert73/902cc94d79424356a8d20be2b382e1ab -->
2
- <details>
3
- <summary style="font-size:1.3em; border:1px solid #ddd; background-color:#E0EBF3; color:black; padding:10px 0 10px 5px">Über diesen Adapter</summary> <!-- Header -->
4
- <!-- Markdown Collapsible Section - We must have an empty line below (per link above) -->
5
-
6
- <br>In unserer Heim-Automation haben wir ja diverse **Auslöser**, z.B.
7
- * Bewegungsmelder im Flur löst aus,
8
- * ein Wandschalter wird gedrückt,
9
- * eine bestimmte Zeit tritt ein (etwa 30 Minuten nach Sonnenuntergang oder Mo-Fr um 7:00)
10
-
11
- Gleichzeitig möchten wir oftmals, dass dabei zusätzliche Bedingungen (nicht) zutreffen (z.B. 'Heute ist Feiertag', 'Wohnzimmer-Fenster ist offen', Helligkeit ist größer 100 Lux, etc.).
12
-
13
- Sobald also was auslöst, und optional Bedingungen zutreffen oder nicht zutreffen, sollen Ziel-Datenpunkte (d.h. **Zielgeräte**) geschaltet werden.
14
- Außerdem soll etwa nach ausgelöstem Bewegungungsmelder ein Timer laufen, der (sobald keine Bewegung mehr) nach der eingestellten Anzahl Sekunden die Zielgeräte wieder abschaltet.
15
-
16
- Smart Control kümmert sich entsprechend darum und führt alles gemäß IFTTT aus.
17
-
18
- Ziel ist, hiermit viele JavaScripts und Blockly abzulösen und eine sehr anwenderfreundliche Möglichkeit für diverse Szenarien zu bieten.
19
-
20
- </details>
21
- <!-- Markdown Collapsible Section - We must have an empty line below (per link above) -->
22
-
23
- <details>
24
- <summary style="font-size:1.3em; border:1px solid #ddd; background-color:#E0EBF3; color:black; padding:10px 0 10px 5px">Wie am besten starten?</summary> <!-- Header -->
25
- <!-- Markdown Collapsible Section - We must have an empty line below (per link above) -->
26
-
27
- <br>Du gehst einfach durch die einzelnen Options-Seiten (obige Reiter) wie folgt durch:
28
-
29
- | Reiter | Was machen |
30
- |--------|------------|
31
- |1. ZIELGERÄTE | Hier trägst du all deine zu schaltenden Ziel-Geräte ein, also Lichter, Radio, usw. Du kannst dort in der ersten Tabelle einzelne Geräte anlegen, und/oder in der zweiten Tabelle auch sogenannte "Aufzählungen" (Enums) nutzen. [Link zur Dokumentation: Aufzählungen](https://www.iobroker.net/#de/documentation/admin/enums.md) |
32
- |2. ZUSÄTZLICHE BEDINGUNGEN | *Optional*: Hier trägst du zusätzliche Bedingungen ein, die (nicht) zutreffen sollen, z.B.: keiner anwesend, Feiertag heute, usw. |
33
- |3. AUSLÖSER |Hier trägst du Auslöser ein, also z.B. Bewegungsmelder, Wandschalter, etc., sowie ggf. zeitabhängige Auslöser (z.B. jeden Tag um 8:00 Uhr). |
34
- |4. ZONEN |Hier führst du alles zusammen, in dem du alle "Zonen" definierst (z.B. Badezimmer 1.OG, Kaffeeecke, usw.) und Auslöser und zu schaltende Zielgeräte zuweist, sowie auch weitere Bedingungen zur Ausführung definierst. |
35
- | WEITERE OPTIONEN | Hier kannst du weitere Adapter-Optionen einstellen. |
36
-
37
- ### Durch Klicken auf die jeweils dunkelblau hinterlegte Überschrift erhältst du weitere Infos zu den Einstellungungen, Beispiel:
38
-
39
- ![image](https://github.com/Mic-M/ioBroker.smartcontrol/blob/master/admin/doc-md/img/start_show-explanation.gif?raw=true)
40
-
41
-
42
-
43
- ### Hinweis: Auswahl-Felder (Drop-Down) in Tabellen
44
-
45
- Auswahlfelder (Drop-Down-Menüs), die mehrere selektierbare Werte bieten, müssen "an der Seite" angeklickt werden. Dies ist ein Issue des ioBroker-Admin-Adapters, und nicht von Smart Control. [Das Issue ist gemeldet und adressiert](https://github.com/ioBroker/ioBroker.admin/issues/590) im ioBroker Admin Adapter, und wird mit dem nächsten Update kommen.
46
-
47
- ![image](https://github.com/Mic-M/ioBroker.smartcontrol/blob/master/admin/doc-md/img/start_dropdown-ani.gif?raw=true)
48
-
49
-
50
- <br>Einfache Abhilfe: Klicke einfach auf den blauen Button links daneben, dann bekommst du einen viel besseren Auswahl-Dialog:
51
-
52
- ![image](https://github.com/Mic-M/ioBroker.smartcontrol/blob/master/admin/doc-md/img/start_open-dialog.png?raw=true)
53
-
54
-
55
- </details>
56
- <!-- Markdown Collapsible Section - We must have an empty line below (per link above) -->
57
-
58
- <details>
59
- <summary style="font-size:1.3em; border:1px solid #ddd; background-color:#E0EBF3; color:black; padding:10px 0 10px 5px">Adapter-Datenpunkte</summary> <!-- Header -->
60
- <!-- Markdown Collapsible Section - We must have an empty line below (per link above) -->
61
-
62
- ### smartcontrol.x.info.astroTimes
63
-
64
- Hier findest du alle aktuellen Astrozeiten deiner Geo-Koordinaten, die du in den ioBroker-Admin-Optionen (Schraubschlüssel oben links) eingestellt hast.
65
-
66
- ![image](https://github.com/Mic-M/ioBroker.smartcontrol/blob/master/admin/doc-md/img/start_states-astro.png?raw=true)
67
-
68
- ### smartcontrol.x.info.log.zoneActivations.json
69
-
70
- Mit `smartcontrol.x.info.log.zoneActivations.json` stellt der Adapter einen Datenpunkt bereit, der, sobald eine Zone erfolgreich ausgeführt wurde, Informationen hierzu als JSON zur Verfügung stellt (dabei erscheint der neueste Eintrag jeweils oben). In den Adapter-Optionen, im Reiter "WEITERE OPTIONEN", kannst du unter "Logging" die Anzahl der JSON-Einträge einstellen.
71
-
72
- ### smartcontrol.x.options
73
-
74
- Hier kannst du für jede Optionen-Tabelle einzelne Zeilen an- und abschalten (Datenpunkt `active`).
75
- <br>Zudem kannst du für alle Bewegungsmelder die Zeit in Sekunden (Datenpunkt `duration`) und die Grenze für die Helligkeit (Datenpunkt `briThreshold`) ändern.
76
-
77
- ![image](https://github.com/Mic-M/ioBroker.smartcontrol/blob/master/admin/doc-md/img/start_states-options-motion.png?raw=true)
78
-
79
-
80
- **Bitte beachten:** Eine Änderung dieser Datenpunkte bewirkt einen Neustart der Adapter-Instanz, damit die Änderungen greifen können.
81
-
82
- ### smartcontrol.x.targetDevices
83
-
84
- Für jede Tabellenzeile unter "1. ZIELGERÄTE" fügt der Adapter hier verknüpfte Datenpunkte hinzu. Wenn du diese Datenpunkte änderst, wird der ursprüngliche Ziel-Datenpunkt entsprechend geändert, und umgekehrt.
85
-
86
- ![image](https://github.com/Mic-M/ioBroker.smartcontrol/blob/master/admin/doc-md/img/start_states-target-devices.png?raw=true)
87
-
88
-
89
- ### smartcontrol.x.Test
90
-
91
- Hier stehen dir Datenpunkte rein zum Testen des Adapters zur Verfügung. Diese Datenpunkte stellen keinerlei Funktionen oder Features zur Verfügung und dienen eben nur zum Testen dieses Adapters. Nach der ersten Installation einer Instanz dieses Adapters sind die Adapteroptionen mit einigen dieser Datenpunkte vorbelegt. Beginne z.B. mit dem Testen, indem du z.B. einen Auslöser-Datenpunkt aktivierst, also z.B. `smartcontrol.0.Test.trigger.Bathroom_motion` auf `true` setzt. Dann prüfst du, ob etwas ausgelöst wird (basierend auf den Einstellungen in "4. ZONEN" etc.).
92
- <br>Das ioBroker-Log (ioBroker Admin > Log) liefert detaillierte Informationen. Für das Debugging setzt du bitte den Log-Level der Adapterinstanz auf 'debug', damit du viel mehr Informationen im Log erhältst.
93
-
94
- ![image](https://github.com/Mic-M/ioBroker.smartcontrol/blob/master/admin/doc-md/img/start_states-test.png?raw=true)
95
-
96
- </details>
97
- <!-- Markdown Collapsible Section - We must have an empty line below (per link above) -->
98
-
99
- <details>
100
- <summary style="font-size:1.3em; border:1px solid #ddd; background-color:#E0EBF3; color:black; padding:10px 0 10px 5px">Fragen / Probleme / Verbesserungsvorschläge</summary> <!-- Header -->
101
- <!-- Markdown Collapsible Section - We must have an empty line below (per link above) -->
102
-
103
- ### Fragen zur Bedienung, etc.
104
-
105
- Frage am besten im ioBroker-Forum, idealerweise referenzierst du @Mic so dass ich als Entwickler eine Meldung bekomme. Aktueller Forum-Thread für diesen Adapter ist hier: [ioBroker-Forum: Smart Control](https://forum.iobroker.net/topic/36728/).
106
-
107
- ### Fehler / Bug
108
-
109
- Prüfe zunächst das ioBroker Log auf sämtliche Hinweise und gehe diesen entsprechend nach. Falls du nicht sicher bist, ob du alles richtig gemacht hast in den Adapter-Einstellungen, siehe oben -> *Fragen zur Bedienung, etc.*.
110
- <br>Falls du wirklich einen durch diesen Adapter verursachten Fehler hast:
111
- 1. Gehe zu [GitHub: Smart Control Issues](https://github.com/Mic-M/ioBroker.smartcontrol/issues) und erstelle ein neues Issue.
112
- 2. Beschreibe **ausführlich** die Problematik und Schritt für Schritt, was du getan hast als/bevor der Fehler auftrat. Setze außerdem das Log Level des Adapters auf "Debug", reproduziere den Fehler und stelle die Logausgabe in Code-Tags im Issue ein. ioBroker schneidet Log-Zeilen ab, daher gehst du dazu bitte direkt ins Logfile (durch Klicken auf "Download Log").
113
- 3. Füge Screenshots hinzu, soweit möglicherweise hilfreich für mich als Entwickler
114
- 4. Füge den Adapter-Optionen-Export hinzu, sofern möglicherweise sinnvoll zur Fehlersuche für mich: Ganz oben rechts in den SmartControl-Adapter-Optionen den blauen Button "Pfeil nach unten" anklicken.
115
-
116
- ### Erweiterungungswunsch (neues Feature)
117
-
118
- Mach am besten ein neues Github-Issue auf unter [GitHub: Smart Control Issues](https://github.com/Mic-M/ioBroker.smartcontrol/issues), in Deutsch oder Englisch. Wenn Deutsch deine Muttersprache ist, dann schreibe auch bitte in Deutsch und nicht Englisch auf Github. Das macht unsere Kommunikation deutlich einfacher und du brauchst dir keinen abbrechen :-) Nicht deutsch sprechende User können das dennoch dank Google Translate o.ä. super mitlesen und sich einbringen.
119
-
120
-
121
- </details>
122
- <!-- Markdown Collapsible Section - We must have an empty line below (per link above) -->
123
-
124
-
1
+ <!-- Markdown Collapsible Section, see https://gist.github.com/pierrejoubert73/902cc94d79424356a8d20be2b382e1ab -->
2
+ <details>
3
+ <summary style="font-size:1.3em; border:1px solid #ddd; background-color:#E0EBF3; color:black; padding:10px 0 10px 5px">Über diesen Adapter</summary> <!-- Header -->
4
+ <!-- Markdown Collapsible Section - We must have an empty line below (per link above) -->
5
+
6
+ <br>In unserer Heim-Automation haben wir ja diverse **Auslöser**, z.B.
7
+ * Bewegungsmelder im Flur löst aus,
8
+ * ein Wandschalter wird gedrückt,
9
+ * eine bestimmte Zeit tritt ein (etwa 30 Minuten nach Sonnenuntergang oder Mo-Fr um 7:00)
10
+
11
+ Gleichzeitig möchten wir oftmals, dass dabei zusätzliche Bedingungen (nicht) zutreffen (z.B. 'Heute ist Feiertag', 'Wohnzimmer-Fenster ist offen', Helligkeit ist größer 100 Lux, etc.).
12
+
13
+ Sobald also was auslöst, und optional Bedingungen zutreffen oder nicht zutreffen, sollen Ziel-Datenpunkte (d.h. **Zielgeräte**) geschaltet werden.
14
+ Außerdem soll etwa nach ausgelöstem Bewegungungsmelder ein Timer laufen, der (sobald keine Bewegung mehr) nach der eingestellten Anzahl Sekunden die Zielgeräte wieder abschaltet.
15
+
16
+ Smart Control kümmert sich entsprechend darum und führt alles gemäß IFTTT aus.
17
+
18
+ Ziel ist, hiermit viele JavaScripts und Blockly abzulösen und eine sehr anwenderfreundliche Möglichkeit für diverse Szenarien zu bieten.
19
+
20
+ </details>
21
+ <!-- Markdown Collapsible Section - We must have an empty line below (per link above) -->
22
+
23
+ <details>
24
+ <summary style="font-size:1.3em; border:1px solid #ddd; background-color:#E0EBF3; color:black; padding:10px 0 10px 5px">Wie am besten starten?</summary> <!-- Header -->
25
+ <!-- Markdown Collapsible Section - We must have an empty line below (per link above) -->
26
+
27
+ <br>Du gehst einfach durch die einzelnen Options-Seiten (obige Reiter) wie folgt durch:
28
+
29
+ | Reiter | Was machen |
30
+ |--------|------------|
31
+ |1. ZIELGERÄTE | Hier trägst du all deine zu schaltenden Ziel-Geräte ein, also Lichter, Radio, usw. Du kannst dort in der ersten Tabelle einzelne Geräte anlegen, und/oder in der zweiten Tabelle auch sogenannte "Aufzählungen" (Enums) nutzen. [Link zur Dokumentation: Aufzählungen](https://www.iobroker.net/#de/documentation/admin/enums.md) |
32
+ |2. ZUSÄTZLICHE BEDINGUNGEN | *Optional*: Hier trägst du zusätzliche Bedingungen ein, die (nicht) zutreffen sollen, z.B.: keiner anwesend, Feiertag heute, usw. |
33
+ |3. AUSLÖSER |Hier trägst du Auslöser ein, also z.B. Bewegungsmelder, Wandschalter, etc., sowie ggf. zeitabhängige Auslöser (z.B. jeden Tag um 8:00 Uhr). |
34
+ |4. ZONEN |Hier führst du alles zusammen, in dem du alle "Zonen" definierst (z.B. Badezimmer 1.OG, Kaffeeecke, usw.) und Auslöser und zu schaltende Zielgeräte zuweist, sowie auch weitere Bedingungen zur Ausführung definierst. |
35
+ | WEITERE OPTIONEN | Hier kannst du weitere Adapter-Optionen einstellen. |
36
+
37
+ ### Durch Klicken auf die jeweils dunkelblau hinterlegte Überschrift erhältst du weitere Infos zu den Einstellungungen, Beispiel:
38
+
39
+ ![image](https://github.com/iobroker-community-adapters/ioBroker.smartcontrol/blob/master/admin/doc-md/img/start_show-explanation.gif?raw=true)
40
+
41
+
42
+
43
+ ### Hinweis: Auswahl-Felder (Drop-Down) in Tabellen
44
+
45
+ Auswahlfelder (Drop-Down-Menüs), die mehrere selektierbare Werte bieten, müssen "an der Seite" angeklickt werden. Dies ist ein Issue des ioBroker-Admin-Adapters, und nicht von Smart Control. [Das Issue ist gemeldet und adressiert](https://github.com/ioBroker/ioBroker.admin/issues/590) im ioBroker Admin Adapter, und wird mit dem nächsten Update kommen.
46
+
47
+ ![image](https://github.com/iobroker-community-adapters/ioBroker.smartcontrol/blob/master/admin/doc-md/img/start_dropdown-ani.gif?raw=true)
48
+
49
+
50
+ <br>Einfache Abhilfe: Klicke einfach auf den blauen Button links daneben, dann bekommst du einen viel besseren Auswahl-Dialog:
51
+
52
+ ![image](https://github.com/iobroker-community-adapters/ioBroker.smartcontrol/blob/master/admin/doc-md/img/start_open-dialog.png?raw=true)
53
+
54
+
55
+ </details>
56
+ <!-- Markdown Collapsible Section - We must have an empty line below (per link above) -->
57
+
58
+ <details>
59
+ <summary style="font-size:1.3em; border:1px solid #ddd; background-color:#E0EBF3; color:black; padding:10px 0 10px 5px">Adapter-Datenpunkte</summary> <!-- Header -->
60
+ <!-- Markdown Collapsible Section - We must have an empty line below (per link above) -->
61
+
62
+ ### smartcontrol.x.info.astroTimes
63
+
64
+ Hier findest du alle aktuellen Astrozeiten deiner Geo-Koordinaten, die du in den ioBroker-Admin-Optionen (Schraubschlüssel oben links) eingestellt hast.
65
+
66
+ ![image](https://github.com/iobroker-community-adapters/ioBroker.smartcontrol/blob/master/admin/doc-md/img/start_states-astro.png?raw=true)
67
+
68
+ ### smartcontrol.x.info.log.zoneActivations.json
69
+
70
+ Mit `smartcontrol.x.info.log.zoneActivations.json` stellt der Adapter einen Datenpunkt bereit, der, sobald eine Zone erfolgreich ausgeführt wurde, Informationen hierzu als JSON zur Verfügung stellt (dabei erscheint der neueste Eintrag jeweils oben). In den Adapter-Optionen, im Reiter "WEITERE OPTIONEN", kannst du unter "Logging" die Anzahl der JSON-Einträge einstellen.
71
+
72
+ ### smartcontrol.x.options
73
+
74
+ Hier kannst du für jede Optionen-Tabelle einzelne Zeilen an- und abschalten (Datenpunkt `active`).
75
+ <br>Zudem kannst du für alle Bewegungsmelder die Zeit in Sekunden (Datenpunkt `duration`) und die Grenze für die Helligkeit (Datenpunkt `briThreshold`) ändern.
76
+
77
+ ![image](https://github.com/iobroker-community-adapters/ioBroker.smartcontrol/blob/master/admin/doc-md/img/start_states-options-motion.png?raw=true)
78
+
79
+
80
+ **Bitte beachten:** Eine Änderung dieser Datenpunkte bewirkt einen Neustart der Adapter-Instanz, damit die Änderungen greifen können.
81
+
82
+ ### smartcontrol.x.targetDevices
83
+
84
+ Für jede Tabellenzeile unter "1. ZIELGERÄTE" fügt der Adapter hier verknüpfte Datenpunkte hinzu. Wenn du diese Datenpunkte änderst, wird der ursprüngliche Ziel-Datenpunkt entsprechend geändert, und umgekehrt.
85
+
86
+ ![image](https://github.com/iobroker-community-adapters/ioBroker.smartcontrol/blob/master/admin/doc-md/img/start_states-target-devices.png?raw=true)
87
+
88
+
89
+ ### smartcontrol.x.Test
90
+
91
+ Hier stehen dir Datenpunkte rein zum Testen des Adapters zur Verfügung. Diese Datenpunkte stellen keinerlei Funktionen oder Features zur Verfügung und dienen eben nur zum Testen dieses Adapters. Nach der ersten Installation einer Instanz dieses Adapters sind die Adapteroptionen mit einigen dieser Datenpunkte vorbelegt. Beginne z.B. mit dem Testen, indem du z.B. einen Auslöser-Datenpunkt aktivierst, also z.B. `smartcontrol.0.Test.trigger.Bathroom_motion` auf `true` setzt. Dann prüfst du, ob etwas ausgelöst wird (basierend auf den Einstellungen in "4. ZONEN" etc.).
92
+ <br>Das ioBroker-Log (ioBroker Admin > Log) liefert detaillierte Informationen. Für das Debugging setzt du bitte den Log-Level der Adapterinstanz auf 'debug', damit du viel mehr Informationen im Log erhältst.
93
+
94
+ ![image](https://github.com/iobroker-community-adapters/ioBroker.smartcontrol/blob/master/admin/doc-md/img/start_states-test.png?raw=true)
95
+
96
+ </details>
97
+ <!-- Markdown Collapsible Section - We must have an empty line below (per link above) -->
98
+
99
+ <details>
100
+ <summary style="font-size:1.3em; border:1px solid #ddd; background-color:#E0EBF3; color:black; padding:10px 0 10px 5px">Fragen / Probleme / Verbesserungsvorschläge</summary> <!-- Header -->
101
+ <!-- Markdown Collapsible Section - We must have an empty line below (per link above) -->
102
+
103
+ ### Fragen zur Bedienung, etc.
104
+
105
+ Frage am besten im ioBroker-Forum, idealerweise referenzierst du @Mic so dass ich als Entwickler eine Meldung bekomme. Aktueller Forum-Thread für diesen Adapter ist hier: [ioBroker-Forum: Smart Control](https://forum.iobroker.net/topic/36728/).
106
+
107
+ ### Fehler / Bug
108
+
109
+ Prüfe zunächst das ioBroker Log auf sämtliche Hinweise und gehe diesen entsprechend nach. Falls du nicht sicher bist, ob du alles richtig gemacht hast in den Adapter-Einstellungen, siehe oben -> *Fragen zur Bedienung, etc.*.
110
+ <br>Falls du wirklich einen durch diesen Adapter verursachten Fehler hast:
111
+ 1. Gehe zu [GitHub: Smart Control Issues](https://github.com/iobroker-community-adapters/ioBroker.smartcontrol/issues) und erstelle ein neues Issue.
112
+ 2. Beschreibe **ausführlich** die Problematik und Schritt für Schritt, was du getan hast als/bevor der Fehler auftrat. Setze außerdem das Log Level des Adapters auf "Debug", reproduziere den Fehler und stelle die Logausgabe in Code-Tags im Issue ein. ioBroker schneidet Log-Zeilen ab, daher gehst du dazu bitte direkt ins Logfile (durch Klicken auf "Download Log").
113
+ 3. Füge Screenshots hinzu, soweit möglicherweise hilfreich für mich als Entwickler
114
+ 4. Füge den Adapter-Optionen-Export hinzu, sofern möglicherweise sinnvoll zur Fehlersuche für mich: Ganz oben rechts in den SmartControl-Adapter-Optionen den blauen Button "Pfeil nach unten" anklicken.
115
+
116
+ ### Erweiterungungswunsch (neues Feature)
117
+
118
+ Mach am besten ein neues Github-Issue auf unter [GitHub: Smart Control Issues](https://github.com/iobroker-community-adapters/ioBroker.smartcontrol/issues), in Deutsch oder Englisch. Wenn Deutsch deine Muttersprache ist, dann schreibe auch bitte in Deutsch und nicht Englisch auf Github. Das macht unsere Kommunikation deutlich einfacher und du brauchst dir keinen abbrechen :-) Nicht deutsch sprechende User können das dennoch dank Google Translate o.ä. super mitlesen und sich einbringen.
119
+
120
+
121
+ </details>
122
+ <!-- Markdown Collapsible Section - We must have an empty line below (per link above) -->
123
+
124
+
@@ -1,126 +1,126 @@
1
- <!-- Markdown Collapsible Section, see https://gist.github.com/pierrejoubert73/902cc94d79424356a8d20be2b382e1ab -->
2
- <details>
3
- <summary style="font-size:1.3em; border:1px solid #ddd; background-color:#E0EBF3; color:black; padding:10px 0 10px 5px">About this adapter</summary> <!-- Header -->
4
- <!-- Markdown Collapsible Section - We must have an empty line below (per link above) -->
5
-
6
- In our home automation we have several **triggers**, e.g.
7
- * motion sensor in the corridor triggers,
8
- * a wall switch is pressed,
9
- * a certain time occurs (e.g. 30 minutes after sunset or Mon-Fri at 7:00)
10
-
11
- In addition, we often want that additional conditions are (not) met (e.g. 'Today is a holiday', 'living room window is open', brightness is greater than 100 lux, etc.).
12
-
13
- So as soon as something triggers and optionally conditions apply or do not apply, target states (i.e. **Target devices**) should be switched.
14
- In addition, a timer should run after a motion sensor is triggered, which (as soon as there is no more motion) switches off the target devices after the set number of seconds.
15
-
16
- Smart Control takes care of this and executes everything according to IFTTT.
17
-
18
- The goal is to replace many JavaScript and Blockly's and to provide a very user-friendly environment for various scenarios.
19
-
20
- </details>
21
- <!-- Markdown Collapsible Section - We must have an empty line below (per link above) -->
22
-
23
- <details>
24
- <summary style="font-size:1.3em; border:1px solid #ddd; background-color:#E0EBF3; color:black; padding:10px 0 10px 5px">How to start?</summary> <!-- Header -->
25
- <!-- Markdown Collapsible Section - We must have an empty line below (per link above) -->
26
-
27
- You simply go through the individual options pages (tabs) as follows:
28
-
29
- | Tab | What to do |
30
- |--------|------------|
31
- |1. TARGET DEVICES | Here you enter all your target devices to be switched, e.g. lights, radio, etc. You can enter single device states in the first table, and/or use so-called enumerations ("enums") in the second table. [Documentation link : Enumerations](https://www.iobroker.net/#en/documentation/admin/enums.md) |
32
- |2. ADDITIONAL CONDITIONS | *optional*: Here you enter additional conditions that should (not) apply, e.g.: nobody present, holiday today, etc. |
33
- |3. TRIGGERS |Here you enter triggers, e.g. motion sensors, wall switches, etc., as well as any time-dependent triggers (e.g. every day at 8:00 am). |
34
- |4 ZONES |Here you bring everything together by defining all "zones" (e.g. bathroom 1st floor, coffee corner, etc.) and assigning triggers and target devices to be switched, as well as defining further conditions for execution. |
35
- | FURTHER OPTIONS | Here you can set additional adapter options. |
36
-
37
- ### By clicking on the dark blue highlighted headline you will get more information about the settings, example:
38
-
39
- ![image](https://github.com/Mic-M/ioBroker.smartcontrol/blob/master/admin/doc-md/img/start_show-explanation.gif?raw=true)
40
-
41
-
42
-
43
- ### Note: Drop-down fields in tables
44
-
45
- Drop-down fields that offer several selectable values must be clicked "on the side". This is an issue of the ioBroker admin adapter, not of Smart Control. [The issue is reported and addressed](https://github.com/ioBroker/ioBroker.admin/issues/590) in the ioBroker admin adapter, and will come with the next update.
46
-
47
- ![image](https://github.com/Mic-M/ioBroker.smartcontrol/blob/master/admin/doc-md/img/start_dropdown-ani.gif?raw=true)
48
-
49
-
50
- <br>Simple remedy: Just click on the blue button to the left of it and you will get a much better selection dialog:
51
-
52
- ![image](https://github.com/Mic-M/ioBroker.smartcontrol/blob/master/admin/doc-md/img/start_open-dialog.png?raw=true)
53
-
54
-
55
- </details>
56
- <!-- Markdown Collapsible Section - We must have an empty line below (per link above) -->
57
-
58
- <details>
59
- <summary style="font-size:1.3em; border:1px solid #ddd; background-color:#E0EBF3; color:black; padding:10px 0 10px 5px">Adapter states</summary> <!-- Header -->
60
- <!-- Markdown Collapsible Section - We must have an empty line below (per link above) -->
61
-
62
- ### smartcontrol.x.info.astroTimes
63
-
64
- Here you see all current astro times of your geo-coordinates, which you have set in the ioBroker-Admin-Options (wrench top left).
65
-
66
- ![image](https://github.com/Mic-M/ioBroker.smartcontrol/blob/master/admin/doc-md/img/start_states-astro.png?raw=true)
67
-
68
-
69
- ### smartcontrol.x.info.log.zoneActivations.json
70
-
71
- With <code>smartcontrol.x.info.log.zoneActivations.json</code> the adapter provides a state, which provides information as JSON once a a zone has been successfully executed (the newest entry appears at the top). In the adapter options, tab "FURTHER OPTIONS" -> "Logging", you can set the number of JSON entries accordingly.
72
-
73
-
74
- ### smartcontrol.x.options
75
-
76
- Here you can switch on and off individual rows for each options table (state 'active').
77
- <br>In addition you can change the time in seconds (state 'duration') and the brightness threshold (state 'briThreshold') for all motion sensors.
78
-
79
- ![image](https://github.com/Mic-M/ioBroker.smartcontrol/blob/master/admin/doc-md/img/start_states-options-motion.png?raw=true)
80
-
81
-
82
- **Please note:** A change of these states causes a restart of the adapter instance so that the changes can take effect.
83
-
84
- ### smartcontrol.x.targetDevices
85
-
86
- For each table row under "1. TARGET DEVICES" the adapter adds linked states here. If you change these states, the original target state is changed accordingly, and vice versa.
87
-
88
- ![image](https://github.com/Mic-M/ioBroker.smartcontrol/blob/master/admin/doc-md/img/start_states-target-devices.png?raw=true)
89
-
90
-
91
- ### smartcontrol.x.Test
92
-
93
- Here you have states purely for testing the adapter. These states do not provide any functions or features and are only used to test the adapter. After the first installation of an instance of this adapter, the adapter options are preset with some of these states. For example, start testing by activating a trigger state, e.g. set 'smartcontrol.0.Test.trigger.Bathroom_motion' to 'true'. Then you check if something is triggered (based on the settings in '4. ZONES' etc.).
94
- <br>The ioBroker Log (ioBroker Admin > Log) provides detailed information. For debugging, please set the log level of the adapter instance to 'debug' to get much more information in the log.
95
-
96
- ![image](https://github.com/Mic-M/ioBroker.smartcontrol/blob/master/admin/doc-md/img/start_states-test.png?raw=true)
97
-
98
- </details>
99
- <!-- Markdown Collapsible Section - We must have an empty line below (per link above) -->
100
-
101
- <details>
102
- <summary style="font-size:1.3em; border:1px solid #ddd; background-color:#E0EBF3; color:black; padding:10px 0 10px 5px">Questions / problems / suggestions for improvement</summary> <!-- Header -->
103
- <!-- Markdown Collapsible Section - We must have an empty line below (per link above) -->
104
-
105
- ### Questions about usage, etc.
106
-
107
- The best way is to ask a question in the ioBroker forum, ideally you reference @Mic so that I, as the developer, get a notification. Current forum thread for this adapter is here: [ioBroker-Forum: Smart Control](https://forum.iobroker.net/topic/36728/). Feel free to write in English or German.
108
-
109
- ### Error / Bug
110
-
111
- First check the ioBroker log for all hints and follow them accordingly. If you are not sure if you have done everything correctly in the adapter settings, see above -> *Questions about usage, etc.*.
112
- <br>If you really have an error caused by this adapter:
113
- 1. go to [GitHub: Smart Control Issues](https://github.com/Mic-M/ioBroker.smartcontrol/issues) and open a new issue.
114
- 2. describe **in detail** the issue and step-by-step what you were doing when/before the bug occurred. Also set the log level of the adapter to "debug", reproduce the error and set the log output in code tags in the issue. ioBroker cuts off log lines, so please go directly to the log file (by clicking on "Download Log").
115
- 3. add screenshots, if likely helpful for me as developer
116
- 4. add the adapter options export, if possibly useful for troubleshooting for me, by clicking on the blue "arrow down" button in the top right corner of the SmartControl adapter options
117
-
118
- ### Enhancement/feature requests
119
-
120
- Open a new Github issue at [GitHub: Smart Control Issues](https://github.com/Mic-M/ioBroker.smartcontrol/issues), in English or German.
121
-
122
-
123
- </details>
124
- <!-- Markdown Collapsible Section - We must have an empty line below (per link above) -->
125
-
126
-
1
+ <!-- Markdown Collapsible Section, see https://gist.github.com/pierrejoubert73/902cc94d79424356a8d20be2b382e1ab -->
2
+ <details>
3
+ <summary style="font-size:1.3em; border:1px solid #ddd; background-color:#E0EBF3; color:black; padding:10px 0 10px 5px">About this adapter</summary> <!-- Header -->
4
+ <!-- Markdown Collapsible Section - We must have an empty line below (per link above) -->
5
+
6
+ In our home automation we have several **triggers**, e.g.
7
+ * motion sensor in the corridor triggers,
8
+ * a wall switch is pressed,
9
+ * a certain time occurs (e.g. 30 minutes after sunset or Mon-Fri at 7:00)
10
+
11
+ In addition, we often want that additional conditions are (not) met (e.g. 'Today is a holiday', 'living room window is open', brightness is greater than 100 lux, etc.).
12
+
13
+ So as soon as something triggers and optionally conditions apply or do not apply, target states (i.e. **Target devices**) should be switched.
14
+ In addition, a timer should run after a motion sensor is triggered, which (as soon as there is no more motion) switches off the target devices after the set number of seconds.
15
+
16
+ Smart Control takes care of this and executes everything according to IFTTT.
17
+
18
+ The goal is to replace many JavaScript and Blockly's and to provide a very user-friendly environment for various scenarios.
19
+
20
+ </details>
21
+ <!-- Markdown Collapsible Section - We must have an empty line below (per link above) -->
22
+
23
+ <details>
24
+ <summary style="font-size:1.3em; border:1px solid #ddd; background-color:#E0EBF3; color:black; padding:10px 0 10px 5px">How to start?</summary> <!-- Header -->
25
+ <!-- Markdown Collapsible Section - We must have an empty line below (per link above) -->
26
+
27
+ You simply go through the individual options pages (tabs) as follows:
28
+
29
+ | Tab | What to do |
30
+ |--------|------------|
31
+ |1. TARGET DEVICES | Here you enter all your target devices to be switched, e.g. lights, radio, etc. You can enter single device states in the first table, and/or use so-called enumerations ("enums") in the second table. [Documentation link : Enumerations](https://www.iobroker.net/#en/documentation/admin/enums.md) |
32
+ |2. ADDITIONAL CONDITIONS | *optional*: Here you enter additional conditions that should (not) apply, e.g.: nobody present, holiday today, etc. |
33
+ |3. TRIGGERS |Here you enter triggers, e.g. motion sensors, wall switches, etc., as well as any time-dependent triggers (e.g. every day at 8:00 am). |
34
+ |4 ZONES |Here you bring everything together by defining all "zones" (e.g. bathroom 1st floor, coffee corner, etc.) and assigning triggers and target devices to be switched, as well as defining further conditions for execution. |
35
+ | FURTHER OPTIONS | Here you can set additional adapter options. |
36
+
37
+ ### By clicking on the dark blue highlighted headline you will get more information about the settings, example:
38
+
39
+ ![image](https://github.com/iobroker-community-adapters/ioBroker.smartcontrol/blob/master/admin/doc-md/img/start_show-explanation.gif?raw=true)
40
+
41
+
42
+
43
+ ### Note: Drop-down fields in tables
44
+
45
+ Drop-down fields that offer several selectable values must be clicked "on the side". This is an issue of the ioBroker admin adapter, not of Smart Control. [The issue is reported and addressed](https://github.com/ioBroker/ioBroker.admin/issues/590) in the ioBroker admin adapter, and will come with the next update.
46
+
47
+ ![image](https://github.com/iobroker-community-adapters/ioBroker.smartcontrol/blob/master/admin/doc-md/img/start_dropdown-ani.gif?raw=true)
48
+
49
+
50
+ <br>Simple remedy: Just click on the blue button to the left of it and you will get a much better selection dialog:
51
+
52
+ ![image](https://github.com/iobroker-community-adapters/ioBroker.smartcontrol/blob/master/admin/doc-md/img/start_open-dialog.png?raw=true)
53
+
54
+
55
+ </details>
56
+ <!-- Markdown Collapsible Section - We must have an empty line below (per link above) -->
57
+
58
+ <details>
59
+ <summary style="font-size:1.3em; border:1px solid #ddd; background-color:#E0EBF3; color:black; padding:10px 0 10px 5px">Adapter states</summary> <!-- Header -->
60
+ <!-- Markdown Collapsible Section - We must have an empty line below (per link above) -->
61
+
62
+ ### smartcontrol.x.info.astroTimes
63
+
64
+ Here you see all current astro times of your geo-coordinates, which you have set in the ioBroker-Admin-Options (wrench top left).
65
+
66
+ ![image](https://github.com/iobroker-community-adapters/ioBroker.smartcontrol/blob/master/admin/doc-md/img/start_states-astro.png?raw=true)
67
+
68
+
69
+ ### smartcontrol.x.info.log.zoneActivations.json
70
+
71
+ With <code>smartcontrol.x.info.log.zoneActivations.json</code> the adapter provides a state, which provides information as JSON once a a zone has been successfully executed (the newest entry appears at the top). In the adapter options, tab "FURTHER OPTIONS" -> "Logging", you can set the number of JSON entries accordingly.
72
+
73
+
74
+ ### smartcontrol.x.options
75
+
76
+ Here you can switch on and off individual rows for each options table (state 'active').
77
+ <br>In addition you can change the time in seconds (state 'duration') and the brightness threshold (state 'briThreshold') for all motion sensors.
78
+
79
+ ![image](https://github.com/iobroker-community-adapters/ioBroker.smartcontrol/blob/master/admin/doc-md/img/start_states-options-motion.png?raw=true)
80
+
81
+
82
+ **Please note:** A change of these states causes a restart of the adapter instance so that the changes can take effect.
83
+
84
+ ### smartcontrol.x.targetDevices
85
+
86
+ For each table row under "1. TARGET DEVICES" the adapter adds linked states here. If you change these states, the original target state is changed accordingly, and vice versa.
87
+
88
+ ![image](https://github.com/iobroker-community-adapters/ioBroker.smartcontrol/blob/master/admin/doc-md/img/start_states-target-devices.png?raw=true)
89
+
90
+
91
+ ### smartcontrol.x.Test
92
+
93
+ Here you have states purely for testing the adapter. These states do not provide any functions or features and are only used to test the adapter. After the first installation of an instance of this adapter, the adapter options are preset with some of these states. For example, start testing by activating a trigger state, e.g. set 'smartcontrol.0.Test.trigger.Bathroom_motion' to 'true'. Then you check if something is triggered (based on the settings in '4. ZONES' etc.).
94
+ <br>The ioBroker Log (ioBroker Admin > Log) provides detailed information. For debugging, please set the log level of the adapter instance to 'debug' to get much more information in the log.
95
+
96
+ ![image](https://github.com/iobroker-community-adapters/ioBroker.smartcontrol/blob/master/admin/doc-md/img/start_states-test.png?raw=true)
97
+
98
+ </details>
99
+ <!-- Markdown Collapsible Section - We must have an empty line below (per link above) -->
100
+
101
+ <details>
102
+ <summary style="font-size:1.3em; border:1px solid #ddd; background-color:#E0EBF3; color:black; padding:10px 0 10px 5px">Questions / problems / suggestions for improvement</summary> <!-- Header -->
103
+ <!-- Markdown Collapsible Section - We must have an empty line below (per link above) -->
104
+
105
+ ### Questions about usage, etc.
106
+
107
+ The best way is to ask a question in the ioBroker forum, ideally you reference @Mic so that I, as the developer, get a notification. Current forum thread for this adapter is here: [ioBroker-Forum: Smart Control](https://forum.iobroker.net/topic/36728/). Feel free to write in English or German.
108
+
109
+ ### Error / Bug
110
+
111
+ First check the ioBroker log for all hints and follow them accordingly. If you are not sure if you have done everything correctly in the adapter settings, see above -> *Questions about usage, etc.*.
112
+ <br>If you really have an error caused by this adapter:
113
+ 1. go to [GitHub: Smart Control Issues](https://github.com/iobroker-community-adapters/ioBroker.smartcontrol/issues) and open a new issue.
114
+ 2. describe **in detail** the issue and step-by-step what you were doing when/before the bug occurred. Also set the log level of the adapter to "debug", reproduce the error and set the log output in code tags in the issue. ioBroker cuts off log lines, so please go directly to the log file (by clicking on "Download Log").
115
+ 3. add screenshots, if likely helpful for me as developer
116
+ 4. add the adapter options export, if possibly useful for troubleshooting for me, by clicking on the blue "arrow down" button in the top right corner of the SmartControl adapter options
117
+
118
+ ### Enhancement/feature requests
119
+
120
+ Open a new Github issue at [GitHub: Smart Control Issues](https://github.com/iobroker-community-adapters/ioBroker.smartcontrol/issues), in English or German.
121
+
122
+
123
+ </details>
124
+ <!-- Markdown Collapsible Section - We must have an empty line below (per link above) -->
125
+
126
+
@@ -1,10 +1,10 @@
1
- Diese Tabelle ist optional:
2
- <br>Hier trägst du zusätzliche Bedingungen ein, die (nicht) zutreffen sollen, z.B.: Jemand ist anwesend, Keiner ist anwesend, Heute ist Feiertag, etc. Diese Bedingungen kannst du dann in den entsprechenden anderen Optionen-Tabellen auswählen.
3
-
4
- | Spalte | Pflichtfeld | Beschreibung |
5
- |----------|:------------:|-------|
6
- | ![image](https://github.com/Mic-M/ioBroker.smartcontrol/blob/master/admin/doc-md/img/check_box-24px.svg?raw=true) | Ja | Aktiviert/Deaktiviert diese Tabellenzeile. Falls nicht aktiviert, wird diese Tabellenzeile vom Adapter nicht beachtet. In den Adapter-Optionen, unter 'WEITERE OPTIONEN > Eingabe-Validierung' kannst du übrigens einstellen, dass auch deaktivierte Zeilen auf Gültigkeit geprüft werden. |
7
- | Name der Bedingung | Ja | Hier beliebigen Namen deiner Bedingung eintragen, z.B. 'Feiertag Heute'. |
8
- | Datenpunkt der Bedingung | Ja | Datenpunkt für diese Bedingung, wie `javascript.0.Holiday.isHolidayToday`. |
9
- | DP-Wert | Ja | Datenpunkt-Wert der Bedingung, wenn sie zutreffen soll. Du kannst `true`, `false`, Nummern wie `144`, or Strings wie `Oma schläft jetzt` verwenden. Sämtliche Leerzeichen und Anführungszeichen (wie `"`) am Anfang und Ende werden automatisch entfernt. <br>**Hinweis**: Du kannst auch Vergleichsoperatoren vor Nummern hinzufügen, also `<`, `>`, `>=` und `<=`, dann wird auf diese geprüft. |
10
-
1
+ Diese Tabelle ist optional:
2
+ <br>Hier trägst du zusätzliche Bedingungen ein, die (nicht) zutreffen sollen, z.B.: Jemand ist anwesend, Keiner ist anwesend, Heute ist Feiertag, etc. Diese Bedingungen kannst du dann in den entsprechenden anderen Optionen-Tabellen auswählen.
3
+
4
+ | Spalte | Pflichtfeld | Beschreibung |
5
+ |----------|:------------:|-------|
6
+ | ![image](https://github.com/iobroker-community-adapters/ioBroker.smartcontrol/blob/master/admin/doc-md/img/check_box-24px.svg?raw=true) | Ja | Aktiviert/Deaktiviert diese Tabellenzeile. Falls nicht aktiviert, wird diese Tabellenzeile vom Adapter nicht beachtet. In den Adapter-Optionen, unter 'WEITERE OPTIONEN > Eingabe-Validierung' kannst du übrigens einstellen, dass auch deaktivierte Zeilen auf Gültigkeit geprüft werden. |
7
+ | Name der Bedingung | Ja | Hier beliebigen Namen deiner Bedingung eintragen, z.B. 'Feiertag Heute'. |
8
+ | Datenpunkt der Bedingung | Ja | Datenpunkt für diese Bedingung, wie `javascript.0.Holiday.isHolidayToday`. |
9
+ | DP-Wert | Ja | Datenpunkt-Wert der Bedingung, wenn sie zutreffen soll. Du kannst `true`, `false`, Nummern wie `144`, or Strings wie `Oma schläft jetzt` verwenden. Sämtliche Leerzeichen und Anführungszeichen (wie `"`) am Anfang und Ende werden automatisch entfernt. <br>**Hinweis**: Du kannst auch Vergleichsoperatoren vor Nummern hinzufügen, also `<`, `>`, `>=` und `<=`, dann wird auf diese geprüft. |
10
+
@@ -1,10 +1,10 @@
1
- This table is optional:
2
- <br>Here you enter additional conditions that should (not) apply, e.g: Someone is present, No one is present, Today is a holiday, etc. You can then select these conditions in the corresponding other option tables.
3
-
4
- | Column | Mandatory | Description |
5
- |----------|:------------:|-------|
6
- | ![image](https://github.com/Mic-M/ioBroker.smartcontrol/blob/master/admin/doc-md/img/check_box-24px.svg?raw=true) | Yes | Enables/disables this table row. If not activated, this table row is ignored by the adapter. In the Adapter Options, under 'FURTHER OPTIONS > Input Validation', you can set that even disabled rows are checked for validity. |
7
- | Name of condition | Yes | Enter any name of your condition here, e.g. 'Holiday today'. |
8
- | State of condition | Yes | State for this condition, e.g. `javascript.0.Holiday.isHolidayToday`. |
9
- | State value | Yes | States value of the condition, if it should apply. You can use `true`, `false`, numbers like `144`, or strings. All spaces and quotation marks (like `"`) at the beginning and end are automatically removed. <br>**Note**: You can also use comparison operators `<`, `>`, `>=` and `<=` before numbers, to check for these. |
10
-
1
+ This table is optional:
2
+ <br>Here you enter additional conditions that should (not) apply, e.g: Someone is present, No one is present, Today is a holiday, etc. You can then select these conditions in the corresponding other option tables.
3
+
4
+ | Column | Mandatory | Description |
5
+ |----------|:------------:|-------|
6
+ | ![image](https://github.com/iobroker-community-adapters/ioBroker.smartcontrol/blob/master/admin/doc-md/img/check_box-24px.svg?raw=true) | Yes | Enables/disables this table row. If not activated, this table row is ignored by the adapter. In the Adapter Options, under 'FURTHER OPTIONS > Input Validation', you can set that even disabled rows are checked for validity. |
7
+ | Name of condition | Yes | Enter any name of your condition here, e.g. 'Holiday today'. |
8
+ | State of condition | Yes | State for this condition, e.g. `javascript.0.Holiday.isHolidayToday`. |
9
+ | State value | Yes | States value of the condition, if it should apply. You can use `true`, `false`, numbers like `144`, or strings. All spaces and quotation marks (like `"`) at the beginning and end are automatically removed. <br>**Note**: You can also use comparison operators `<`, `>`, `>=` and `<=` before numbers, to check for these. |
10
+