| layout | documentation |
|---|---|
| title | Standard Actions |
This page describes the standard actions for rules.
openHAB comes with a set of standard actions. These are built-in mechanisms that perform actions on behalf of rules.
The standard actions are fundamentally Java classes that implement the required logic. We identify these actions using a code called the action type. These codes are used as titles for the sections below. To tell the action implementation what to do, actions can have configuration parameters with predefined names. These configuration parameters and a brief description of what values they expect are listed in the following sections.
This action enables or disables one or more specified Rules.
| Parameter | Description |
|---|---|
ruleUIDs |
The List of rule UIDs of the Rules to enable or disable. |
enable |
The boolean value that decides if the rule(s) should be enabled or disabled. |
This action runs one or more specified Rules.
| Parameter | Description |
|---|---|
ruleUIDs |
The List of rule UIDs of the Rules to run. |
[considerConditions] |
A boolean value that determines if Conditions should be considered. Defaults to false. |
This action sends a Command to an Item.
| Parameter | Description |
|---|---|
itemName |
The name of the Item. |
command |
The Command to send. |
This action updates the State of an Item.
| Parameter | Description |
|---|---|
itemName |
The name of the Item. |
state |
The State to set. |
This action plays an audio file.
| Parameter | Description |
|---|---|
sound |
The filename of the file from the sounds folder. |
[sink] |
The ID of the audio sink to use. Leave out to use the default. |
[volume] |
The volume to be used. Leave out to use the default. |
This action uses the voice system to say the specified text.
| Parameter | Description |
|---|---|
text |
The text to say. |
[sink] |
The ID of the voice to use. Leave out to use the default. |
[volume] |
The volume to be used. Leave out to use the default. |
This action executes the provided script.
| Parameter | Description |
|---|---|
type |
The code/MIME-type for the scripting language. |
script |
The script content to execute. |