You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: bundles/org.openhab.binding.exec/README.md
+8-1
Original file line number
Diff line number
Diff line change
@@ -36,13 +36,20 @@ It is not advised to run the virtual machine as superuser/root.
36
36
The "command" Thing requires the command to execute on the shell.
37
37
Optionally one can specify:
38
38
39
-
-`transform` - A [transformation](https://www.openhab.org/docs/configuration/transformations.html) to apply on the execution result string.
39
+
-`transform` - [Transformations](/docs/configuration/transformations.html) to apply on the execution result string.
40
40
-`interval` - An interval, in seconds, the command will be repeatedly executed. Default is 60 seconds, set to 0 to avoid automatic repetition.
41
41
-`timeout` - A time-out, in seconds, the execution of the command will time out, and lastly,
42
42
-`autorun` - A boolean parameter to make the command execute immediately every time the input channel is sent a different openHAB command. If choosing autorun, you may wish to also set `interval=0`. Note that sending the same command a second time will not trigger execution.
43
43
44
44
For each shell command, a separate Thing has to be defined.
45
45
46
+
### Transformations
47
+
48
+
Transformations can be chained in the UI by listing each transformation on a separate line, or by separating them with the mathematical intersection character "∩".
49
+
Transformations are defined using this syntax: `TYPE(FUNCTION)`, e.g.: `JSONPATH($.path)`.
50
+
The syntax: `TYPE:FUNCTION` is also supported, e.g.: `JSONPATH:$.path`.
51
+
Please note that if the transformation failed or returned `null`, the original data will be passed through.
thing-type.config.exec.command.transform.description = The transformation to apply on the execution result, e.g. REGEX((.*))
22
+
thing-type.config.exec.command.transform.description = The transformation to apply on the execution result, e.g. REGEX((.*)). You can chain transformations by listing each transformation on a separate line, or by separating them with the intersection character ∩.
0 commit comments