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
@@ -1,13 +1,13 @@
1
- Diese Auslöser werden aktiviert, sobald die entsprechende Zeit eintritt.
2
-
3
- | Spalte | Pflichtfeld | Beschreibung |
4
- |----------|:------------:|-------|
5
- | ![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. |
6
- | Name des Auslösers | Ja | Beliebiger Name für den Auslöser. |
7
- | Zeit | Ja | Hier kannst du eine Uhrzeit in Stunde/Minute, wie `23:30`, eingeben. Außerdem kannst du einen Astro-Namen wie `sunset` eingeben und dabei einen Versatz ("Offset") in Minuten hinzufügen, z.B. `goldenHourEnd+30` oder `sunset-60`.<br>Die aktuellen Astrozeiten findest du übrigens als Info-Datenpunkte in diesem Adapter: `smartcontrol.x.info.astroTimes`.<br>Außerdem kannst du hier Cron verwenden, also z.B. `5 4 * * *`. Zum einfachen Ermittlung der zu verwendeten Cron-Syntax kannst du z.B. folgende Website verwenden: [Crontab.guru](https://crontab.guru/).<br><br>Für Stunde/Minute (wie `23:30`) oder Astrozeiten (wie `sunset`) ist die Ausführung jeden Tag. In "4. ZONEN" kannst du das dann weiter entsprechend limitieren. |
8
- | Zusätzliche Bedingungen | Nein | Hier kannst du zusätzliche Bedingungen eintragen, die zusätzlich zutreffen müssen, z.B.: Jemand ist anwesend, Heute ist Feiertag, Oma schläft, usw. |
9
- | ![image](https://github.com/Mic-M/ioBroker.smartcontrol/blob/master/admin/doc-md/img/done_all-24px.svg?raw=true) | Nein | Für *Zusätzlich muss erfüllt sein*: 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.|
10
- | Nie auslösen wenn... | Nein | Hier kannst du zusätzliche Bedingungen eintragen, die nie zutreffen dürfen, z.B.: Keiner zu Hause, Radio läuft, usw.|
11
- | ![image](https://github.com/Mic-M/ioBroker.smartcontrol/blob/master/admin/doc-md/img/done_all-24px.svg?raw=true) | Nein | Für *Nie auslösen 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.|
12
- | Ziel aus | Nein | Normalerweise werden die Ziel-Geräte beim Auslösen eingeschaltet (1. ZIELGERÄTE > 'Datenpunkt zum einschalten' / 'Wert für an'). Wenn du den Haken aktivierst, werden die Ziele nicht ein- sondern ausgeschaltet (1. ZIELGERÄTE > 'Datenpunkt zum ausschalten' / 'Wert für aus').|
13
-
1
+ Diese Auslöser werden aktiviert, sobald die entsprechende Zeit eintritt.
2
+
3
+ | Spalte | Pflichtfeld | Beschreibung |
4
+ |----------|:------------:|-------|
5
+ | ![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. |
6
+ | Name des Auslösers | Ja | Beliebiger Name für den Auslöser. |
7
+ | Zeit | Ja | Hier kannst du eine Uhrzeit in Stunde/Minute, wie `23:30`, eingeben. Außerdem kannst du einen Astro-Namen wie `sunset` eingeben und dabei einen Versatz ("Offset") in Minuten hinzufügen, z.B. `goldenHourEnd+30` oder `sunset-60`.<br>Die aktuellen Astrozeiten findest du übrigens als Info-Datenpunkte in diesem Adapter: `smartcontrol.x.info.astroTimes`.<br>Außerdem kannst du hier Cron verwenden, also z.B. `5 4 * * *`. Zum einfachen Ermittlung der zu verwendeten Cron-Syntax kannst du z.B. folgende Website verwenden: [Crontab.guru](https://crontab.guru/).<br><br>Für Stunde/Minute (wie `23:30`) oder Astrozeiten (wie `sunset`) ist die Ausführung jeden Tag. In "4. ZONEN" kannst du das dann weiter entsprechend limitieren. |
8
+ | Zusätzliche Bedingungen | Nein | Hier kannst du zusätzliche Bedingungen eintragen, die zusätzlich zutreffen müssen, z.B.: Jemand ist anwesend, Heute ist Feiertag, Oma schläft, usw. |
9
+ | ![image](https://github.com/iobroker-community-adapters/ioBroker.smartcontrol/blob/master/admin/doc-md/img/done_all-24px.svg?raw=true) | Nein | Für *Zusätzlich muss erfüllt sein*: 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.|
10
+ | Nie auslösen wenn... | Nein | Hier kannst du zusätzliche Bedingungen eintragen, die nie zutreffen dürfen, z.B.: Keiner zu Hause, Radio läuft, usw.|
11
+ | ![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 auslösen 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.|
12
+ | Ziel aus | Nein | Normalerweise werden die Ziel-Geräte beim Auslösen eingeschaltet (1. ZIELGERÄTE > 'Datenpunkt zum einschalten' / 'Wert für an'). Wenn du den Haken aktivierst, werden die Ziele nicht ein- sondern ausgeschaltet (1. ZIELGERÄTE > 'Datenpunkt zum ausschalten' / 'Wert für aus').|
13
+
@@ -1,12 +1,12 @@
1
- These triggers are activated once the according time is reached.
2
-
3
- | Column | Mandatory | Description |
4
- |----------|:------------:|-------|
5
- | ![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. |
6
- | Name of trigger | Yes | Any trigger name. |
7
- | Time | Yes | Here you can enter a time in hour/minute, like '23:30'. You can also enter an astro name like `sunset` and add an offset in minutes, e.g. `goldenHourEnd+30` or `sunset-60`.<br>The current astro times can be found as info states of this adapter: `smartcontrol.x.info.astroTimes`.<br> You can also use Cron here, e.g. `5 4 * * *`. To easily determine the cron syntax to use, you can use the following website: [Crontab.guru](https://crontab.guru/).<br><br>For hours/minutes (like `23:30`) or astro times (like `sunset`) the execution is every day. In "4. ZONES" you can further limit this accordingly. |
8
- | Additional conditions | No | Here you can enter additional conditions that must be fulfilled additionally, e.g: Someone is present, today is a holiday, grandma is sleeping, etc. |
9
- | ![image](https://github.com/Mic-M/ioBroker.smartcontrol/blob/master/admin/doc-md/img/done_all-24px.svg?raw=true) | No | For *Additional conditions*: 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.|
10
- | Never if... | No | Here you can enter additional conditions that must never apply, for example No one at home, radio on, etc. |
11
- | ![image](https://github.com/Mic-M/ioBroker.smartcontrol/blob/master/admin/doc-md/img/done_all-24px.svg?raw=true) | No | For *Never 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.|
1
+ These triggers are activated once the according time is reached.
2
+
3
+ | Column | Mandatory | Description |
4
+ |----------|:------------:|-------|
5
+ | ![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. |
6
+ | Name of trigger | Yes | Any trigger name. |
7
+ | Time | Yes | Here you can enter a time in hour/minute, like '23:30'. You can also enter an astro name like `sunset` and add an offset in minutes, e.g. `goldenHourEnd+30` or `sunset-60`.<br>The current astro times can be found as info states of this adapter: `smartcontrol.x.info.astroTimes`.<br> You can also use Cron here, e.g. `5 4 * * *`. To easily determine the cron syntax to use, you can use the following website: [Crontab.guru](https://crontab.guru/).<br><br>For hours/minutes (like `23:30`) or astro times (like `sunset`) the execution is every day. In "4. ZONES" you can further limit this accordingly. |
8
+ | Additional conditions | No | Here you can enter additional conditions that must be fulfilled additionally, e.g: Someone is present, today is a holiday, grandma is sleeping, etc. |
9
+ | ![image](https://github.com/iobroker-community-adapters/ioBroker.smartcontrol/blob/master/admin/doc-md/img/done_all-24px.svg?raw=true) | No | For *Additional conditions*: 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.|
10
+ | Never if... | No | Here you can enter additional conditions that must never apply, for example No one at home, radio on, etc. |
11
+ | ![image](https://github.com/iobroker-community-adapters/ioBroker.smartcontrol/blob/master/admin/doc-md/img/done_all-24px.svg?raw=true) | No | For *Never 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.|
12
12
  | Target off | No | Normally, the target devices are switched on when the triggering occurs (1. TARGET DEVICES > 'State to switch device on' / 'Value for on'). If you activate this option, the state is not turned on but off (1. TARGET DEVICES > 'State to switch device off' / 'Value for off'). |
@@ -1,14 +1,15 @@
1
- Hier definierst du alle "Zonen" (z.B. Badezimmer 1.OG, Kaffeeecke, usw.) und weist Auslöser und zu schaltende Zielgeräte zu.
2
-
3
- | Spalte | Pflichtfeld | Beschreibung |
4
- |----------|:------------:|-------|
5
- | ![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. |
6
- | Name der Zone | Ja | Beliebiger Name für die Zone. |
7
- | Auslöser | Ja | Wähle hier einen oder mehrere Auslöser aus, um dieser Zone zuzuordnen. Falls du hier mehrere Bewegungsmelder einträgst, wird nur dann wieder ausgeschaltet, wenn keiner dieser Bewegungsmelder mehr eine Bewegung registriert hat. |
8
- | Zielgeräte | Ja | Wähle hier ein oder mehrere zu schaltende Zielgeräte aus, die geschalten werden, sobald ein Auslöser auslöst und die Bedingungen zutreffen.<br><br>Mit dem blauen Button links daneben kannst du bei vielen Zielgeräten deutlich schneller auswählen. Es öffnet sich ein Dialog, in dem du die Zielgeräte leichter finden, filtern und auswählen kannst.<br><br>**Funktion 'Individuelle Optionen für Zielgerät setzen'**:<br>Im Dialog, der erscheint, wenn man auf den blauen Button links daneben klickt, kann man durch Doppelklick oder `F2` individuelle Werte für Zielgeräte setzen, Beispiel **{**`val:Radio Chillout, delay:20`**}**.<br>Mit `val` wird der *Wert für 'an'* von *1. ZIELGERÄTE* überschrieben.<br>Mit `delay` wird das Zielgerät bei Aktivierung der Zone um diese Anzahl an Sekunden verzögert eingeschaltet.<br><br>Deine eingetragenen Optionen erscheinen dann in geschweiften Klammern hinter dem Namen.<br>![image](https://github.com/Mic-M/ioBroker.smartcontrol/blob/master/admin/doc-md/img/table-zones_select-target-devices-overwrite.gif?raw=true)<br><br>**Tipp**: Wähle im Reiter "1. ZIELGERÄTE" für die Zielgeräte-Namen Punkte als Trennung und organisere diese z.B. nach Räumen und Geräten, z.B. "Wohnzimmer.Lichter.Decke", "Wohnzimmer.Lichter.Wand links", etc. Damit werden dir hier die Zielgeräte dann als Ordner angezeigt: "Wohnzimmer > Lichter > Decke", etc. |
9
- | ![image](https://github.com/Mic-M/ioBroker.smartcontrol/blob/master/admin/doc-md/img/timelapse-24px.svg?raw=true)| Nein | **Verzögertes Einschalten der Zone (in Sekunden)**: Hiermit kannst du eine Verzögerung einstellen: erst nach dieser Anzahl an Sekunden wird die Zone tatsächlich eingeschaltet.<br>Durch leer lassen oder `0` wird diese Option ignoriert. |
10
- | ![image](https://github.com/Mic-M/ioBroker.smartcontrol/blob/master/admin/doc-md/img/timer-24px.svg?raw=true) | Nein | **Zone aus nach x Sekunden**: Hiermit wird die Zone nach der angegebenen Anzahl an Sekunden ausgeschaltet (unabhängig von etwaigen Bewegungsmeldern). Der Timer zum Ausschalten startet, sobald die Zone eingeschaltet wurde. Gibt es zwischendurch ein erneutes Einschalten der Zone, wird dieser Timer neu gestartet.<br>Durch leer lassen oder `0` wird diese Option ignoriert. |
11
- | Nie ausschalten wenn... | Nein | Hier kannst du zusätzliche Bedingungen eintragen, z.B.: Keiner zu Hause, Radio läuft, usw. Wenn diese Bedingungen zutreffen, werden die Zielgeräte dieser Zone **nicht** ausgeschaltet, wenn ein Timer abgelaufen ist. Dies betrifft sowohl den Timer *Zone aus nach x Sekunden* als auch etwaige Bewegungsmelder-Timer. |
12
- | ![image](https://github.com/Mic-M/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
- | 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
- | 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. |
1
+ Hier definierst du alle "Zonen" (z.B. Badezimmer 1.OG, Kaffeeecke, usw.) und weist Auslöser und zu schaltende Zielgeräte zu.
2
+
3
+ | Spalte | Pflichtfeld | Beschreibung |
4
+ |----------|:------------:|-------|
5
+ | ![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. |
6
+ | Name der Zone | Ja | Beliebiger Name für die Zone. |
7
+ | Auslöser | Ja | Wähle hier einen oder mehrere Auslöser aus, um dieser Zone zuzuordnen. Falls du hier mehrere Bewegungsmelder einträgst, wird nur dann wieder ausgeschaltet, wenn keiner dieser Bewegungsmelder mehr eine Bewegung registriert hat. |
8
+ | Zielgeräte | Ja | Wähle hier ein oder mehrere zu schaltende Zielgeräte aus, die geschalten werden, sobald ein Auslöser auslöst und die Bedingungen zutreffen.<br><br>Mit dem blauen Button links daneben kannst du bei vielen Zielgeräten deutlich schneller auswählen. Es öffnet sich ein Dialog, in dem du die Zielgeräte leichter finden, filtern und auswählen kannst.<br><br>**Funktion 'Individuelle Optionen für Zielgerät setzen'**:<br>Im Dialog, der erscheint, wenn man auf den blauen Button links daneben klickt, kann man durch Doppelklick oder `F2` individuelle Werte für Zielgeräte setzen, Beispiel **{**`val:Radio Chillout, delay:20`**}**.<br>Mit `val` wird der *Wert für 'an'* von *1. ZIELGERÄTE* überschrieben.<br>Mit `delay` wird das Zielgerät bei Aktivierung der Zone um diese Anzahl an Sekunden verzögert eingeschaltet.<br><br>Deine eingetragenen Optionen erscheinen dann in geschweiften Klammern hinter dem Namen.<br>![image](https://github.com/iobroker-community-adapters/ioBroker.smartcontrol/blob/master/admin/doc-md/img/table-zones_select-target-devices-overwrite.gif?raw=true)<br><br>**Tipp**: Wähle im Reiter "1. ZIELGERÄTE" für die Zielgeräte-Namen Punkte als Trennung und organisere diese z.B. nach Räumen und Geräten, z.B. "Wohnzimmer.Lichter.Decke", "Wohnzimmer.Lichter.Wand links", etc. Damit werden dir hier die Zielgeräte dann als Ordner angezeigt: "Wohnzimmer > Lichter > Decke", etc. |
9
+ | ![image](https://github.com/iobroker-community-adapters/ioBroker.smartcontrol/blob/master/admin/doc-md/img/timelapse-24px.svg?raw=true)| Nein | **Verzögertes Einschalten der Zone (in Sekunden)**: Hiermit kannst du eine Verzögerung einstellen: erst nach dieser Anzahl an Sekunden wird die Zone tatsächlich eingeschaltet.<br>Durch leer lassen oder `0` wird diese Option ignoriert. |
10
+ | ![image](https://github.com/iobroker-community-adapters/ioBroker.smartcontrol/blob/master/admin/doc-md/img/timer-24px.svg?raw=true) | Nein | **Zone aus nach x Sekunden**: Hiermit wird die Zone nach der angegebenen Anzahl an Sekunden ausgeschaltet (unabhängig von etwaigen Bewegungsmeldern). Der Timer zum Ausschalten startet, sobald die Zone eingeschaltet wurde. Gibt es zwischendurch ein erneutes Einschalten der Zone, wird dieser Timer neu gestartet.<br>Durch leer lassen oder `0` wird diese Option ignoriert. |
11
+ | Nie ausschalten wenn... | Nein | Hier kannst du zusätzliche Bedingungen eintragen, z.B.: Keiner zu Hause, Radio läuft, usw. Wenn diese Bedingungen zutreffen, werden die Zielgeräte dieser Zone **nicht** ausgeschaltet, wenn ein Timer abgelaufen ist. Dies betrifft sowohl den Timer *Zone aus nach x Sekunden* als auch etwaige Bewegungsmelder-Timer. |
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
+ | 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
+ | 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. |
@@ -1,14 +1,15 @@
1
- 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.
2
-
3
- | Column | Mandatory | Description |
4
- |----------|:------------:|-------|
5
- | ![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. |
6
- | Name of zone | Yes | Any zone name. |
7
- | Trigger | Yes | Select one or more triggers to assign to this zone. If you enter more than one motion sensors here, the zone will only be switched off again if none of these motion sensors has registered any more motion.|
8
- | Target devices | Yes | Here you select one or more target devices to be switched, which will be switched as soon as a trigger is triggered and the conditions are met.<br><br>With the blue button to the left you can select much faster in case of many target devices. A dialog opens where you can find, filter and select the target devices more easily.<br><br>**Function 'Set individual options für target device'**:<br>In the dialog that appears when you click on the blue button to the left, you can set individual values for target devices by double clicking or 'F2', example: **{**`val:Radio Chillout, delay:20`**}**.<br>`val` overwrites the *Value for 'on'* of *1. TARGET DEVICES*.<br>`delay` the target device is switched on delayed by this number of seconds when the zone is activated.<br><br>Your entered options will appear in curly brackets after the name.<br>![image](https://github.com/Mic-M/ioBroker.smartcontrol/blob/master/admin/doc-md/img/table-zones_select-target-devices-overwrite.gif?raw=true)<br><br>**Tip**: Use dots as separators in tab "1. TARGET DEVICES" for the target device names and organize them e.g. by rooms and devices, e.g. "Bathroom.Lights.Ceiling", "Bathroom.Lights.Wall left", etc. The target devices will then be displayed here as folders: "Bathroom > Lights > Ceiling", etc. |
9
- | ![image](https://github.com/Mic-M/ioBroker.smartcontrol/blob/master/admin/doc-md/img/timelapse-24px.svg?raw=true)| Nein | **Delay for switching zone on (in seconds)** This allows you to set a delay: after this number of seconds the zone will actually be switched on.<br>Leave empty or set `0` to ignore this option. |
10
- | ![image](https://github.com/Mic-M/ioBroker.smartcontrol/blob/master/admin/doc-md/img/timer-24px.svg?raw=true) | No | **Switch zone off after x seconds**: This switches the zone off after the specified number of seconds (independent of any motion sensors). The timer for switching off starts as soon as the zone is switched on. If the zone is switched on again in between, this timer will be restarted.<br>Leave empty or set `0` to ignore this option. |
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
- | ✓✓ | 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
- | 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. |
1
+ 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.
2
+
3
+ | Column | Mandatory | Description |
4
+ |----------|:------------:|-------|
5
+ | ![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. |
6
+ | Name of zone | Yes | Any zone name. |
7
+ | Trigger | Yes | Select one or more triggers to assign to this zone. If you enter more than one motion sensors here, the zone will only be switched off again if none of these motion sensors has registered any more motion.|
8
+ | Target devices | Yes | Here you select one or more target devices to be switched, which will be switched as soon as a trigger is triggered and the conditions are met.<br><br>With the blue button to the left you can select much faster in case of many target devices. A dialog opens where you can find, filter and select the target devices more easily.<br><br>**Function 'Set individual options für target device'**:<br>In the dialog that appears when you click on the blue button to the left, you can set individual values for target devices by double clicking or 'F2', example: **{**`val:Radio Chillout, delay:20`**}**.<br>`val` overwrites the *Value for 'on'* of *1. TARGET DEVICES*.<br>`delay` the target device is switched on delayed by this number of seconds when the zone is activated.<br><br>Your entered options will appear in curly brackets after the name.<br>![image](https://github.com/iobroker-community-adapters/ioBroker.smartcontrol/blob/master/admin/doc-md/img/table-zones_select-target-devices-overwrite.gif?raw=true)<br><br>**Tip**: Use dots as separators in tab "1. TARGET DEVICES" for the target device names and organize them e.g. by rooms and devices, e.g. "Bathroom.Lights.Ceiling", "Bathroom.Lights.Wall left", etc. The target devices will then be displayed here as folders: "Bathroom > Lights > Ceiling", etc. |
9
+ | ![image](https://github.com/iobroker-community-adapters/ioBroker.smartcontrol/blob/master/admin/doc-md/img/timelapse-24px.svg?raw=true)| Nein | **Delay for switching zone on (in seconds)** This allows you to set a delay: after this number of seconds the zone will actually be switched on.<br>Leave empty or set `0` to ignore this option. |
10
+ | ![image](https://github.com/iobroker-community-adapters/ioBroker.smartcontrol/blob/master/admin/doc-md/img/timer-24px.svg?raw=true) | No | **Switch zone off after x seconds**: This switches the zone off after the specified number of seconds (independent of any motion sensors). The timer for switching off starts as soon as the zone is switched on. If the zone is switched on again in between, this timer will be restarted.<br>Leave empty or set `0` to ignore this option. |
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
+ | ✓✓ | 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
+ | 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. |
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. |
@@ -1,19 +1,19 @@
1
- Durch Doppelklick oder F2 kannst du hier individuelle Optionen für Zielgeräte setzen.<br>
2
- <details>
3
- <summary style="padding-bottom:-20px">Weitere Erklärung (hier klicken)</summary> <!-- Header -->
4
- <!-- Markdown Collapsible Section - We must have an empty line below -->
5
-
6
-
7
- ### Beispiele
8
- * **{** `val:Radio Chillout, delay:20` **}**
9
- * **{** `delay:30` **}**
10
- * **{** `val:true` **}**
11
-
12
- ### Erklärung
13
- * **val**: Hiermit wird der *Wert für 'an'* von *1. ZIELGERÄTE* überschrieben.
14
- * **delay**: Hiermit wird *Verzögertes Einschalten des Zielgerätes* von *1. ZIELGERÄTE* durch die angegebene Anzahl Sekunden überschrieben. Zum Deaktivieren kannst du `delay:0` eintragen.<br>*Beispiel-Anwendungsfall (Use Case)*: Schalte den Strom-Zwischenstecker sofort ein, warte 30 Sekunden und schalte dann den Fernseher ein (weil er z.B. vorher noch nicht auf IR-Befehle reagiert) und dimme nach 50 Sekunden das Licht im TV-Eck.
15
-
16
- #### Hinweis
17
- Diese Funktion wurde mit Adapter-Version 0.5.3 erweitert, in den Vor-Versionen konnte man hier lediglich einen neuen Zielwert setzen mit z.B. **{** `Radio Chillout` **}**. Dies unterstützt der Adapter weiterhin. Falls du also nur den Zielwert überschreiben willst, kannst du einfach **{** `Radio Chillout` **}** eingeben, anstatt **{** `val:Radio Chillout` **}**. Aber wenn du auch ein **delay** (Verzögertes Einschalten) setzen willst, musst du **{** `val:Radio Chillout, delay:20` **}** eingeben. Delay alleine, also **{** `delay:20` **}** geht natürlich auch, dann wird der Zielwert natürlich nicht überschrieben.
18
-
1
+ Durch Doppelklick oder F2 kannst du hier individuelle Optionen für Zielgeräte setzen.<br>
2
+ <details>
3
+ <summary style="padding-bottom:-20px">Weitere Erklärung (hier klicken)</summary> <!-- Header -->
4
+ <!-- Markdown Collapsible Section - We must have an empty line below -->
5
+
6
+
7
+ ### Beispiele
8
+ * **{** `val:Radio Chillout, delay:20` **}**
9
+ * **{** `delay:30` **}**
10
+ * **{** `val:true` **}**
11
+
12
+ ### Erklärung
13
+ * **val**: Hiermit wird der *Wert für 'an'* von *1. ZIELGERÄTE* überschrieben.
14
+ * **delay**: Hiermit wird *Verzögertes Einschalten des Zielgerätes* von *1. ZIELGERÄTE* durch die angegebene Anzahl Sekunden überschrieben. Zum Deaktivieren kannst du `delay:0` eintragen.<br>*Beispiel-Anwendungsfall (Use Case)*: Schalte den Strom-Zwischenstecker sofort ein, warte 30 Sekunden und schalte dann den Fernseher ein (weil er z.B. vorher noch nicht auf IR-Befehle reagiert) und dimme nach 50 Sekunden das Licht im TV-Eck.
15
+
16
+ #### Hinweis
17
+ Diese Funktion wurde mit Adapter-Version 0.5.3 erweitert, in den Vor-Versionen konnte man hier lediglich einen neuen Zielwert setzen mit z.B. **{** `Radio Chillout` **}**. Dies unterstützt der Adapter weiterhin. Falls du also nur den Zielwert überschreiben willst, kannst du einfach **{** `Radio Chillout` **}** eingeben, anstatt **{** `val:Radio Chillout` **}**. Aber wenn du auch ein **delay** (Verzögertes Einschalten) setzen willst, musst du **{** `val:Radio Chillout, delay:20` **}** eingeben. Delay alleine, also **{** `delay:20` **}** geht natürlich auch, dann wird der Zielwert natürlich nicht überschrieben.
18
+
19
19
  </details>
@@ -1,19 +1,19 @@
1
- Double click or hit F2 on a selected target device to set individual values.<br>
2
- <details>
3
- <summary style="padding-bottom:-20px">Further explanation (click me)</summary> <!-- Header -->
4
- <!-- Markdown Collapsible Section - We must have an empty line below -->
5
-
6
-
7
- ### Examples
8
- * **{** `val:Radio Chillout, delay:20` **}**
9
- * **{** `delay:30` **}**
10
- * **{** `val:true` **}**
11
-
12
- ### Explanation
13
- * **val**: Overwrites *Value for 'on'* of *1. TARGET DEVICES*.
14
- * **delay**: Overwrites *Delay for switching target device on* of *1. TARGET DEVICES* by the number of seconds set. To deactivate, use `delay:0`. <br>*Example use case*: Switch on a power plug immediately, wait 30 seconds and then switch on the TV (e.g. because it does not react to IR commands before) and dim the light in the TV corner after 50 seconds.
15
-
16
- #### Please note
17
- This function was extended with adapter version 0.5.3, in the previous versions you could only set a new target value with e.g. **{** `Radio Chillout` **}**. This is still supported by the adapter. So if you only want to overwrite the target value you can simply enter **{** `Radio Chillout` **}** instead of **{** `val:Radio Chillout` **}**. But if you also want to set a **delay** you have to enter **{** `val:Radio Chillout, delay:20` **}**. Delay alone, i.e. **{** `delay:20` **}** works too, but then the target value will not be overwritten, of course.
18
-
1
+ Double click or hit F2 on a selected target device to set individual values.<br>
2
+ <details>
3
+ <summary style="padding-bottom:-20px">Further explanation (click me)</summary> <!-- Header -->
4
+ <!-- Markdown Collapsible Section - We must have an empty line below -->
5
+
6
+
7
+ ### Examples
8
+ * **{** `val:Radio Chillout, delay:20` **}**
9
+ * **{** `delay:30` **}**
10
+ * **{** `val:true` **}**
11
+
12
+ ### Explanation
13
+ * **val**: Overwrites *Value for 'on'* of *1. TARGET DEVICES*.
14
+ * **delay**: Overwrites *Delay for switching target device on* of *1. TARGET DEVICES* by the number of seconds set. To deactivate, use `delay:0`. <br>*Example use case*: Switch on a power plug immediately, wait 30 seconds and then switch on the TV (e.g. because it does not react to IR commands before) and dim the light in the TV corner after 50 seconds.
15
+
16
+ #### Please note
17
+ This function was extended with adapter version 0.5.3, in the previous versions you could only set a new target value with e.g. **{** `Radio Chillout` **}**. This is still supported by the adapter. So if you only want to overwrite the target value you can simply enter **{** `Radio Chillout` **}** instead of **{** `val:Radio Chillout` **}**. But if you also want to set a **delay** you have to enter **{** `val:Radio Chillout, delay:20` **}**. Delay alone, i.e. **{** `delay:20` **}** works too, but then the target value will not be overwritten, of course.
18
+
19
19
  </details>
@@ -119,9 +119,8 @@
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">
@@ -263,7 +262,6 @@
263
262
  </ul>
264
263
  <!-- Start Options Table -->
265
264
  <div class="col s12" id="tableConditions">
266
-
267
265
  <div class="row valign-wrapper" style="margin-bottom:5px">
268
266
  <div class="col"><a class="btn-floating waves-effect waves-light blue table-button-add"><i class="material-icons">add</i></a></div>
269
267
  <div class="table-filter input-field col s12 m6 l12">
@@ -312,7 +310,6 @@
312
310
  </ul>
313
311
  <!-- Start Options Table -->
314
312
  <div class="col s12" id="tableTriggerMotion">
315
-
316
313
  <div class="row valign-wrapper" style="margin-bottom:5px">
317
314
  <div class="col"><a class="btn-floating waves-effect waves-light blue table-button-add"><i class="material-icons">add</i></a></div>
318
315
  <div class="table-filter input-field col s12 m6 l12">
@@ -320,7 +317,6 @@
320
317
  <button class="btn-floating waves-effect waves-light blue btn-small" title="Clear filter"><i class="material-icons">clear</i></button>
321
318
  </div>
322
319
  </div>
323
-
324
320
  <div class="table-values-div">
325
321
  <table class="table-values">
326
322
  <thead>
@@ -361,7 +357,6 @@
361
357
  </ul>
362
358
  <!-- Start Options Table -->
363
359
  <div class="col s12" id="tableTriggerDevices">
364
-
365
360
  <div class="row valign-wrapper" style="margin-bottom:5px">
366
361
  <div class="col"><a class="btn-floating waves-effect waves-light blue table-button-add"><i class="material-icons">add</i></a></div>
367
362
  <div class="table-filter input-field col s12 m6 l12">
@@ -369,7 +364,6 @@
369
364
  <button class="btn-floating waves-effect waves-light blue btn-small" title="Clear filter"><i class="material-icons">clear</i></button>
370
365
  </div>
371
366
  </div>
372
-
373
367
  <div class="table-values-div">
374
368
  <table class="table-values">
375
369
  <thead>
@@ -407,7 +401,6 @@
407
401
 
408
402
  <!-- Start Options Table -->
409
403
  <div class="col s12" id="tableTriggerTimes">
410
-
411
404
  <div class="row valign-wrapper" style="margin-bottom:5px">
412
405
  <div class="col"><a class="btn-floating waves-effect waves-light blue table-button-add"><i class="material-icons">add</i></a></div>
413
406
  <div class="table-filter input-field col s12 m6 l12">
@@ -415,7 +408,6 @@
415
408
  <button class="btn-floating waves-effect waves-light blue btn-small" title="Clear filter"><i class="material-icons">clear</i></button>
416
409
  </div>
417
410
  </div>
418
-
419
411
  <div class="table-values-div">
420
412
  <table class="table-values">
421
413
  <thead>
@@ -464,7 +456,6 @@
464
456
 
465
457
  <!-- Start Options Table -->
466
458
  <div class="col s12" id="tableZones">
467
-
468
459
  <div class="row valign-wrapper" style="margin-bottom:5px">
469
460
  <div class="col"><a class="btn-floating waves-effect waves-light blue table-button-add"><i class="material-icons">add</i></a></div>
470
461
  <div class="table-filter input-field col s12 m6 l12">
@@ -472,7 +463,6 @@
472
463
  <button class="btn-floating waves-effect waves-light blue btn-small" title="Clear filter"><i class="material-icons">clear</i></button>
473
464
  </div>
474
465
  </div>
475
-
476
466
  <div class="table-values-div">
477
467
  <table class="table-values">
478
468
  <thead>
@@ -492,8 +482,9 @@
492
482
  <th style="width: 30px" class="header translate" data-name="executeAlways" data-type="checkbox">Always</th>
493
483
  <!-- Start: Execution Options, being hidden through CSS -->
494
484
  <th class="header" data-name="executionJson" data-type="text"></th>
485
+ <th class="header" data-name="infoText" data-type="text"></th>
495
486
  <!-- End: Execution Options, being hidden through CSS -->
496
- <th style="width: 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>
@@ -729,13 +720,11 @@
729
720
 
730
721
  <!-- Start Options Table -->
731
722
  <div class="col s12 hide-if-always" id="tableZoneExecution">
732
-
733
723
  <div class="row valign-wrapper" style="margin-bottom:5px">
734
724
  <div class="col">
735
725
  <a class="btn-floating waves-effect waves-light blue table-button-add"><i class="material-icons">add</i></a>
736
726
  </div>
737
727
  </div>
738
-
739
728
  <div class="table-values-div">
740
729
  <table class="table-values">
741
730
  <thead>
@@ -771,6 +760,35 @@
771
760
  </div>
772
761
  </div>
773
762
 
763
+ <!-- DIALOG: description -->
764
+ <div id="dialog-edit-info" class="modal modal-fixed-footer">
765
+ <div class="modal-content">
766
+ <div class="row" style="padding-left:12px; padding-right:0">
767
+ <!-- START: Header with collapsible help contents -->
768
+ <ul class="collapsible">
769
+ <li>
770
+ <div class="collapsible-header config-section"><h5><span class="translate">Informational note to the object</span> '<span class="info-name">Placeholder</span>'</h5><i class="material-icons">help_outline</i></div>
771
+ <div class="collapsible-body">
772
+ <!-- Importing Markdown -->
773
+ <zero-md id="md-tableExecution" manual-render src="doc-md/info-text_en.md"></zero-md>
774
+ </div>
775
+ </li>
776
+ </ul>
777
+ <!-- END: Header with collapsible help contents -->
778
+
779
+ <!-- textbox info text -->
780
+ <div class="row">
781
+ <div class="input-field">
782
+ <input type="text" class="value" id="infoText" />
783
+ </div>
784
+ </div>
785
+ </div>
786
+ </div>
787
+ <div class="modal-footer">
788
+ <a class="modal-action modal-close waves-effect waves-green btn btn-set"><i class="large material-icons left">check_circle</i><span class="translate">Select</span></a>
789
+ <a class="modal-action modal-close waves-effect waves-green btn btn-close"><i class="large material-icons left">cancel</i><span class="translate">Cancel</span></a>
790
+ </div>
791
+ </div>
774
792
 
775
793
  <!-- DIALOG: Verification Options - Called once user clicks SAVE -->
776
794
  <div id="dialog-save-verification" class="modal modal-fixed-footer">
package/admin/index_m.js CHANGED
@@ -110,7 +110,7 @@ function load2(settings, onChange) {
110
110
  <p class='translation-required'>
111
111
  Your current ioBroker language is <strong>${systemLang.toUpperCase()}</strong>, however, the following instructions have not yet been translated into your language, so English is used as fallback.
112
112
  If you are fluently speaking ${systemLang.toUpperCase()}, please help and translate into your language.
113
- The English file is <a target="_blank" href="https://github.com/Mic-M/ioBroker.smartcontrol/blob/master/admin/${mdFilePath}">located on Github</a>: <code>https://github.com/Mic-M/ioBroker.smartcontrol/blob/master/admin/${mdFilePath}</code>.
113
+ The English file is <a target="_blank" href="https://github.com/iobroker-community-adapters/ioBroker.smartcontrol/blob/master/admin/${mdFilePath}">located on Github</a>: <code>https://github.com/iobroker-community-adapters/ioBroker.smartcontrol/blob/master/admin/${mdFilePath}</code>.
114
114
  Please translate and provide a Github pull request for adding a new file '${newFilePath}' with your ${systemLang.toUpperCase()} translation. Thank you!
115
115
  </p>
116
116
  `).insertBefore('zero-md#' + mdId);
@@ -237,6 +237,7 @@ function load2(settings, onChange) {
237
237
  dialogConfigureZoneExecution();
238
238
  updateTableButtonIcons(tableId, [{dataButton:'selectTriggers', icon:'pageview'},{dataButton:'selectTargetsMenu', icon:'pageview'},{dataButton:'selectNeverOff', icon:'pageview'},{dataButton:'configureExecution', icon:'schedule', regularSize:true}]);
239
239
  addCopyTableRowSmarter(tableId);
240
+ addInfo(tableId);
240
241
  break;
241
242
  case 'tableZoneExecution':
242
243
  dialogSelectSettings({tableId:tableId, triggerDataCmd:'selectAdditionalConditions', targetField:'additionalConditions', dialogTitle:_('Select additional conditions') });
@@ -516,6 +517,35 @@ function load2(settings, onChange) {
516
517
  });
517
518
  }
518
519
 
520
+ /**
521
+ * info button for textual explanation of the object
522
+ */
523
+ function addInfo(tableId) {
524
+ // set the icon
525
+ updateTableButtonIcons(tableId, [{dataButton:'info', icon:'live_help'}]);
526
+ // Apply info editor
527
+ $(`#${tableId} table tbody td a.values-buttons[data-command="info"]`).on('click', function() {
528
+ const rowNum = $(this).data('index'); // table row number which was clicked, starting at zero.
529
+ const tableArr = table2values(tableId);
530
+ const actInfoText = tableArr[rowNum].infoText;
531
+
532
+ $('#dialog-edit-info #infoText').prop('value', actInfoText);
533
+
534
+ // Initialize dialog (modal)
535
+ initDialog('dialog-edit-info', dialogOkClose);
536
+ // Add Name to title
537
+ $('#dialog-edit-info span.info-name').text(tableArr[rowNum].name);
538
+ // Open dialog
539
+ $('#dialog-edit-info').modal('open');
540
+
541
+ // Called once user clicked "Ok" in the dialog
542
+ function dialogOkClose() {
543
+ onChange && onChange();
544
+ tableArr[rowNum].infoText = $('#dialog-edit-info #infoText').prop('value');
545
+ values2table(tableId, tableArr, onChange, function(){val2tableOnReady(tableId);});
546
+ }
547
+ });
548
+ }
519
549
  /**
520
550
  * We replace "copy table row" command from node_modules/iobroker.admin/www/js/adapter-settings.js
521
551
  * Reason: rename name functionality does not work any longer if name keeps the same, therefore
package/admin/style.css CHANGED
@@ -51,6 +51,8 @@ table.table-values { table-layout:fixed; }
51
51
  /* Table Zones: Hide execution option rows */
52
52
  #tableZones th:nth-of-type(14) { visibility: hidden; display: none; }
53
53
  #tableZones td:nth-of-type(14) { visibility: hidden; display: none; }
54
+ #tableZones th:nth-of-type(15) { visibility: hidden; display: none; }
55
+ #tableZones td:nth-of-type(15) { visibility: hidden; display: none; }
54
56
 
55
57
  /* add space at top/bottom */
56
58
  .spaceTop3em {margin-top: 3em; }
@@ -1,9 +1,9 @@
1
-
2
- /**
3
- * Minified by jsDelivr using Terser v3.14.1.
4
- * Original file: /npm/@webcomponents/webcomponentsjs@2.4.4/webcomponents-loader.js
5
- *
6
- * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
7
- */
8
- !function(){"use strict";var e,n=!1,t=[],o=!1;function d(){window.WebComponents.ready=!0,document.dispatchEvent(new CustomEvent("WebComponentsReady",{bubbles:!0}))}function i(){window.customElements&&customElements.polyfillWrapFlushCallback&&customElements.polyfillWrapFlushCallback(function(n){e=n,o&&e()})}function r(){window.HTMLTemplateElement&&HTMLTemplateElement.bootstrap&&HTMLTemplateElement.bootstrap(window.document),n=!0,c().then(d)}function c(){o=!1;var n=t.map(function(e){return e instanceof Function?e():e});return t=[],Promise.all(n).then(function(){o=!0,e&&e()}).catch(function(e){console.error(e)})}window.WebComponents=window.WebComponents||{},window.WebComponents.ready=window.WebComponents.ready||!1,window.WebComponents.waitFor=window.WebComponents.waitFor||function(e){e&&(t.push(e),n&&c())},window.WebComponents._batchCustomElements=i;var a="webcomponents-loader.js",l=[];(!("attachShadow"in Element.prototype&&"getRootNode"in Element.prototype)||window.ShadyDOM&&window.ShadyDOM.force)&&l.push("sd"),window.customElements&&!window.customElements.forcePolyfill||l.push("ce");var s=function(){var e=document.createElement("template");if(!("content"in e))return!0;if(!(e.content.cloneNode()instanceof DocumentFragment))return!0;var n=document.createElement("template");n.content.appendChild(document.createElement("div")),e.content.appendChild(n);var t=e.cloneNode(!0);return 0===t.content.childNodes.length||0===t.content.firstChild.content.childNodes.length}();if(window.Promise&&Array.from&&window.URL&&window.Symbol&&!s||(l=["sd-ce-pf"]),l.length){var m,w="bundles/webcomponents-"+l.join("-")+".js";if(window.WebComponents.root)m=window.WebComponents.root+w;else{var u=document.querySelector('script[src*="'+a+'"]');m=u.src.replace(a,w)}var p=document.createElement("script");p.src=m,"loading"===document.readyState?(p.setAttribute("onload","window.WebComponents._batchCustomElements()"),document.write(p.outerHTML),document.addEventListener("DOMContentLoaded",r)):(p.addEventListener("load",function(){i(),r()}),p.addEventListener("error",function(){throw new Error("Could not load polyfill bundle"+m)}),document.head.appendChild(p))}else"complete"===document.readyState?(n=!0,d()):(window.addEventListener("load",r),window.addEventListener("DOMContentLoaded",function(){window.removeEventListener("load",r),r()}))}();
1
+
2
+ /**
3
+ * Minified by jsDelivr using Terser v3.14.1.
4
+ * Original file: /npm/@webcomponents/webcomponentsjs@2.4.4/webcomponents-loader.js
5
+ *
6
+ * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
7
+ */
8
+ !function(){"use strict";var e,n=!1,t=[],o=!1;function d(){window.WebComponents.ready=!0,document.dispatchEvent(new CustomEvent("WebComponentsReady",{bubbles:!0}))}function i(){window.customElements&&customElements.polyfillWrapFlushCallback&&customElements.polyfillWrapFlushCallback(function(n){e=n,o&&e()})}function r(){window.HTMLTemplateElement&&HTMLTemplateElement.bootstrap&&HTMLTemplateElement.bootstrap(window.document),n=!0,c().then(d)}function c(){o=!1;var n=t.map(function(e){return e instanceof Function?e():e});return t=[],Promise.all(n).then(function(){o=!0,e&&e()}).catch(function(e){console.error(e)})}window.WebComponents=window.WebComponents||{},window.WebComponents.ready=window.WebComponents.ready||!1,window.WebComponents.waitFor=window.WebComponents.waitFor||function(e){e&&(t.push(e),n&&c())},window.WebComponents._batchCustomElements=i;var a="webcomponents-loader.js",l=[];(!("attachShadow"in Element.prototype&&"getRootNode"in Element.prototype)||window.ShadyDOM&&window.ShadyDOM.force)&&l.push("sd"),window.customElements&&!window.customElements.forcePolyfill||l.push("ce");var s=function(){var e=document.createElement("template");if(!("content"in e))return!0;if(!(e.content.cloneNode()instanceof DocumentFragment))return!0;var n=document.createElement("template");n.content.appendChild(document.createElement("div")),e.content.appendChild(n);var t=e.cloneNode(!0);return 0===t.content.childNodes.length||0===t.content.firstChild.content.childNodes.length}();if(window.Promise&&Array.from&&window.URL&&window.Symbol&&!s||(l=["sd-ce-pf"]),l.length){var m,w="bundles/webcomponents-"+l.join("-")+".js";if(window.WebComponents.root)m=window.WebComponents.root+w;else{var u=document.querySelector('script[src*="'+a+'"]');m=u.src.replace(a,w)}var p=document.createElement("script");p.src=m,"loading"===document.readyState?(p.setAttribute("onload","window.WebComponents._batchCustomElements()"),document.write(p.outerHTML),document.addEventListener("DOMContentLoaded",r)):(p.addEventListener("load",function(){i(),r()}),p.addEventListener("error",function(){throw new Error("Could not load polyfill bundle"+m)}),document.head.appendChild(p))}else"complete"===document.readyState?(n=!0,d()):(window.addEventListener("load",r),window.addEventListener("DOMContentLoaded",function(){window.removeEventListener("load",r),r()}))}();
9
9
  //# sourceMappingURL=/sm/1a92a68f67d0deedb11065efad6be1c738c60921df9284a68170191521d7fbb7.map
@@ -1,9 +1,9 @@
1
-
2
- /**
3
- * Minified by jsDelivr using Terser v3.14.1.
4
- * Original file: /gh/zerodevx/zero-md@1.3.4/src/zero-md.js
5
- *
6
- * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
7
- */
8
- window,document,window.customElements.define("zero-md",class extends HTMLElement{get version(){return"v1.3.4"}get src(){return this.getAttribute("src")}get manualRender(){return this.hasAttribute("manual-render")}get noShadow(){return this.hasAttribute("no-shadow")}get markedUrl(){return this.getAttribute("marked-url")||window.ZeroMd.config.markedUrl}get prismUrl(){return this.getAttribute("prism-url")||window.ZeroMd.config.prismUrl}get cssUrls(){let e=this.getAttribute("css-urls");return e?JSON.parse(e):window.ZeroMd.config.cssUrls}constructor(){super(),window.ZeroMd=window.ZeroMd||{},window.ZeroMd.config=window.ZeroMd.config||{},window.ZeroMd.config.markedUrl=window.ZeroMd.config.markedUrl||"https://cdn.jsdelivr.net/npm/marked@0/marked.min.js",window.ZeroMd.config.prismUrl=window.ZeroMd.config.prismUrl||"https://cdn.jsdelivr.net/npm/prismjs@1/prism.min.js",window.ZeroMd.config.cssUrls=window.ZeroMd.config.cssUrls||["https://cdn.jsdelivr.net/npm/github-markdown-css@2/github-markdown.min.css","https://cdn.jsdelivr.net/npm/prismjs@1/themes/prism.min.css"],window.ZeroMd.cache=window.ZeroMd.cache||{}}connectedCallback(){this.addEventListener("click",this._hijackLinks.bind(this)),this.addEventListener("zero-md-rendered",function e(){this.removeEventListener("zero-md-rendered",e),window.setTimeout(()=>{this._scrollTo(window.location.hash)})}.bind(this)),this.manualRender||this.render(),this._fire("zero-md-ready")}_fire(e){this.dispatchEvent(new CustomEvent(e,{bubbles:!0,composed:!0}))}_ajaxGet(e){return new Promise((t,r)=>{if(!e)return void r(e);let i=new XMLHttpRequest,n=t=>{console.warn("[zero-md] Error getting file",e),r(t)};i.open("GET",e,!0),i.onload=(()=>{i.status>=200&&i.status<400?t(i.responseText):n(i)}),i.onerror=(e=>n(e)),i.send()})}_loadScript(e,t,r,...i){return new Promise((n,s)=>{if("undefined"===t)if(window.ZeroMd.cache.hasOwnProperty(r))window.addEventListener(r,function e(){window.removeEventListener(r,e),n()});else{window.ZeroMd.cache[r]=!0;let t=document.createElement("script");for(let e of i)t.setAttribute(e,"");t.onload=(()=>{this._fire(r),n()}),t.onerror=(t=>{console.warn("[zero-md] Error loading script",e),s(t)}),t.src=e,document.head.appendChild(t)}else n()})}_getStylesheet(e){return new Promise((t,r)=>{window.ZeroMd.cache[e]?window.ZeroMd.cache[e].loaded?t(window.ZeroMd.cache[e].data):window.addEventListener(e,function r(){window.removeEventListener(e,r),t(window.ZeroMd.cache[e].data)}):(window.ZeroMd.cache[e]={loaded:!1,data:""},this._ajaxGet(e).then(r=>{window.ZeroMd.cache[e].data=r,window.ZeroMd.cache[e].loaded=!0,this._fire(e),t(r)},e=>r(e)))})}_getInputs(){return new Promise((e,t)=>{let r=this.querySelector("template")&&this.querySelector("template").content.querySelector("xmp")||!1;r?e(r.textContent):this._ajaxGet(this.src).then(t=>e(t)).catch(e=>t(e))})}_prismHighlight(e,t){return window.Prism.highlight(e,this._detectLang(e,t))}_detectLang(e,t){return t?window.Prism.languages.hasOwnProperty(t)?window.Prism.languages[t]:"es"===t.substr(0,2)?window.Prism.languages.javascript:"c"===t?window.Prism.languages.clike:window.Prism.languages.markup:e.match(/^\s*</)?window.Prism.languages.markup:window.Prism.languages.javascript}_stampDom(e){let t=this.querySelectorAll("[class^=markdown]");t&&t.forEach(e=>this.removeChild(e)),this.shadowRoot&&(this.shadowRoot.innerHTML=""),this.noShadow?this.insertAdjacentHTML("afterbegin",e):(this.shadowRoot||this.attachShadow({mode:"open"})).innerHTML=e}_buildMd(){return new Promise((e,t)=>{Promise.all([this._getInputs(),this._loadScript(this.markedUrl,typeof window.marked,"zero-md-marked-ready","async"),this._loadScript(this.prismUrl,typeof window.Prism,"zero-md-prism-ready","async","data-manual")]).then(t=>{e('<div class="markdown-body">'+window.marked(t[0],{highlight:this._prismHighlight.bind(this)})+"</div>")},e=>{t(e)})})}_buildStyles(){return new Promise(e=>{let t='<style class="markdown-style">:host{display:block;position:relative;contain:content;}',r="</style>",i=this.querySelector("template")&&this.querySelector("template").content.querySelector("style")||!1;i?e(t+i.textContent+r):Array.isArray(this.cssUrls)&&this.cssUrls.length?Promise.all(this.cssUrls.map(e=>this._getStylesheet(e))).then(i=>e(t+i.join("")+r)).catch(()=>e(t+r)):(console.warn("[zero-md] No styles are defined"),e(t+r))})}_scrollTo(e){if(!e||!this.shadowRoot)return;let t=this.shadowRoot.getElementById(e.substr(1));t&&t.scrollIntoView()}_hijackLinks(e){let t=e.path||e.composedPath();if("A"!==t[0].tagName)return;const r=t[0];r.hash&&r.origin+r.pathname===window.location.origin+window.location.pathname&&(e.metaKey?window.open(r.href,"_blank"):(this._scrollTo(r.hash),window.location=r.href),e.preventDefault())}render(){Promise.all([this._buildStyles(),this._buildMd()]).then(e=>{this._stampDom(e[0]+e[1]),this._fire("zero-md-rendered")})}});
1
+
2
+ /**
3
+ * Minified by jsDelivr using Terser v3.14.1.
4
+ * Original file: /gh/zerodevx/zero-md@1.3.4/src/zero-md.js
5
+ *
6
+ * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
7
+ */
8
+ window,document,window.customElements.define("zero-md",class extends HTMLElement{get version(){return"v1.3.4"}get src(){return this.getAttribute("src")}get manualRender(){return this.hasAttribute("manual-render")}get noShadow(){return this.hasAttribute("no-shadow")}get markedUrl(){return this.getAttribute("marked-url")||window.ZeroMd.config.markedUrl}get prismUrl(){return this.getAttribute("prism-url")||window.ZeroMd.config.prismUrl}get cssUrls(){let e=this.getAttribute("css-urls");return e?JSON.parse(e):window.ZeroMd.config.cssUrls}constructor(){super(),window.ZeroMd=window.ZeroMd||{},window.ZeroMd.config=window.ZeroMd.config||{},window.ZeroMd.config.markedUrl=window.ZeroMd.config.markedUrl||"https://cdn.jsdelivr.net/npm/marked@0/marked.min.js",window.ZeroMd.config.prismUrl=window.ZeroMd.config.prismUrl||"https://cdn.jsdelivr.net/npm/prismjs@1/prism.min.js",window.ZeroMd.config.cssUrls=window.ZeroMd.config.cssUrls||["https://cdn.jsdelivr.net/npm/github-markdown-css@2/github-markdown.min.css","https://cdn.jsdelivr.net/npm/prismjs@1/themes/prism.min.css"],window.ZeroMd.cache=window.ZeroMd.cache||{}}connectedCallback(){this.addEventListener("click",this._hijackLinks.bind(this)),this.addEventListener("zero-md-rendered",function e(){this.removeEventListener("zero-md-rendered",e),window.setTimeout(()=>{this._scrollTo(window.location.hash)})}.bind(this)),this.manualRender||this.render(),this._fire("zero-md-ready")}_fire(e){this.dispatchEvent(new CustomEvent(e,{bubbles:!0,composed:!0}))}_ajaxGet(e){return new Promise((t,r)=>{if(!e)return void r(e);let i=new XMLHttpRequest,n=t=>{console.warn("[zero-md] Error getting file",e),r(t)};i.open("GET",e,!0),i.onload=(()=>{i.status>=200&&i.status<400?t(i.responseText):n(i)}),i.onerror=(e=>n(e)),i.send()})}_loadScript(e,t,r,...i){return new Promise((n,s)=>{if("undefined"===t)if(window.ZeroMd.cache.hasOwnProperty(r))window.addEventListener(r,function e(){window.removeEventListener(r,e),n()});else{window.ZeroMd.cache[r]=!0;let t=document.createElement("script");for(let e of i)t.setAttribute(e,"");t.onload=(()=>{this._fire(r),n()}),t.onerror=(t=>{console.warn("[zero-md] Error loading script",e),s(t)}),t.src=e,document.head.appendChild(t)}else n()})}_getStylesheet(e){return new Promise((t,r)=>{window.ZeroMd.cache[e]?window.ZeroMd.cache[e].loaded?t(window.ZeroMd.cache[e].data):window.addEventListener(e,function r(){window.removeEventListener(e,r),t(window.ZeroMd.cache[e].data)}):(window.ZeroMd.cache[e]={loaded:!1,data:""},this._ajaxGet(e).then(r=>{window.ZeroMd.cache[e].data=r,window.ZeroMd.cache[e].loaded=!0,this._fire(e),t(r)},e=>r(e)))})}_getInputs(){return new Promise((e,t)=>{let r=this.querySelector("template")&&this.querySelector("template").content.querySelector("xmp")||!1;r?e(r.textContent):this._ajaxGet(this.src).then(t=>e(t)).catch(e=>t(e))})}_prismHighlight(e,t){return window.Prism.highlight(e,this._detectLang(e,t))}_detectLang(e,t){return t?window.Prism.languages.hasOwnProperty(t)?window.Prism.languages[t]:"es"===t.substr(0,2)?window.Prism.languages.javascript:"c"===t?window.Prism.languages.clike:window.Prism.languages.markup:e.match(/^\s*</)?window.Prism.languages.markup:window.Prism.languages.javascript}_stampDom(e){let t=this.querySelectorAll("[class^=markdown]");t&&t.forEach(e=>this.removeChild(e)),this.shadowRoot&&(this.shadowRoot.innerHTML=""),this.noShadow?this.insertAdjacentHTML("afterbegin",e):(this.shadowRoot||this.attachShadow({mode:"open"})).innerHTML=e}_buildMd(){return new Promise((e,t)=>{Promise.all([this._getInputs(),this._loadScript(this.markedUrl,typeof window.marked,"zero-md-marked-ready","async"),this._loadScript(this.prismUrl,typeof window.Prism,"zero-md-prism-ready","async","data-manual")]).then(t=>{e('<div class="markdown-body">'+window.marked(t[0],{highlight:this._prismHighlight.bind(this)})+"</div>")},e=>{t(e)})})}_buildStyles(){return new Promise(e=>{let t='<style class="markdown-style">:host{display:block;position:relative;contain:content;}',r="</style>",i=this.querySelector("template")&&this.querySelector("template").content.querySelector("style")||!1;i?e(t+i.textContent+r):Array.isArray(this.cssUrls)&&this.cssUrls.length?Promise.all(this.cssUrls.map(e=>this._getStylesheet(e))).then(i=>e(t+i.join("")+r)).catch(()=>e(t+r)):(console.warn("[zero-md] No styles are defined"),e(t+r))})}_scrollTo(e){if(!e||!this.shadowRoot)return;let t=this.shadowRoot.getElementById(e.substr(1));t&&t.scrollIntoView()}_hijackLinks(e){let t=e.path||e.composedPath();if("A"!==t[0].tagName)return;const r=t[0];r.hash&&r.origin+r.pathname===window.location.origin+window.location.pathname&&(e.metaKey?window.open(r.href,"_blank"):(this._scrollTo(r.hash),window.location=r.href),e.preventDefault())}render(){Promise.all([this._buildStyles(),this._buildMd()]).then(e=>{this._stampDom(e[0]+e[1]),this._fire("zero-md-rendered")})}});
9
9
  //# sourceMappingURL=/sm/4ea87c94a5676c3bbd7b8ef6009ea5891783fbe1fa7f72cb94912411c81b7de0.map