ScriptExecution

actions. ScriptExecution

ScriptExecution Actions

The static methods of this class are made available as functions in the scripts.

Methods

(static) callScript(scriptName)

Source:

Calls a script which must be located in the configurations/scripts folder.

Parameters:
Name Type Description
scriptName string

the name of the script (if the name does not end with the .script file extension it is added)

(static) createTimer(identifier, instant, closure) → {*}

Source:

Schedules a function for later execution.

Parameters:
Name Type Description
identifier string

an optional identifier

instant time.ZonedDateTime

the point in time when the code should be executed

closure function

the code block to execute

Returns:

a native openHAB Timer

Type
*

(static) createTimerWithArgument(identifier, instant, arg1, closure) → {*}

Source:
Deprecated:
  • Yes

Schedules a function (with argument) for later execution

Parameters:
Name Type Description
identifier string

an optional identifier

instant time.ZonedDateTime

the point in time when the code should be executed

arg1 *

the argument to pass to the code block

closure function

the code block to execute

Returns:

a native openHAB Timer

Type
*