Skip to content

Commit 05d6b4f

Browse files
author
Ravi Nadahar
committed
Cond
1 parent a916eeb commit 05d6b4f

1 file changed

Lines changed: 20 additions & 1 deletion

File tree

configuration/yaml/rules.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ The standard trigger types have been given simplified aliases for convenience, b
9494
| `StartLevel` | `core.SystemStartlevelTrigger` | A [system trigger](../../concepts/rules.md#system-triggers), which triggers specific start levels during openHAB startup. |
9595
| `ThingChanged` | `core.ThingStatusChangeTrigger` | A [thing trigger](../../concepts/rules.md#thing-triggers), which triggers on status changes for a thing. |
9696
| `ThingUpdated` | `core.ThingStatusUpdateTrigger` | A [thing trigger](../../concepts/rules.md#thing-triggers), which triggers on status updates for a thing. |
97-
| `TimeOfDay` | `timer.TimeOfDayTrigger` | A [time trigger](../../concepts/rules.md#time-triggers), which triggers based on time of day. |
97+
| `TimeOfDay` | `timer.TimeOfDayTrigger` | A [time trigger](../../concepts/rules.md#time-triggers), which triggers based on time of day. |
9898

9999
### Conditions Section
100100

@@ -107,6 +107,25 @@ The standard trigger types have been given simplified aliases for convenience, b
107107
| `config` | ▧ | A key-value map of the condition's configuration. See the condition type documentation for which keys exist, are mandatory, and what their values should be. |
108108
| `inputs` | ☐ | **Advanced**: A key-value map for controlling mapping of inputs from other modules. Inputs are automatically mapped if not mapped explicitly. |
109109

110+
#### Condition Types
111+
112+
OpenHAB can be extended in various ways, so other condition types than those listed here can be valid in a particular installation.
113+
Here is a list of standard condition types that exist in any installation.
114+
The standard condition types have been given simplified aliases for convenience, but can also be used with their "full ID".
115+
116+
| Alias | ID | Description |
117+
|:--------------|:--------------------------------|:-----------------------------------------------------------------------------------------------------------------------|
118+
| `DayOfWeek` | `timer.DayOfWeekCondition` | A condition that will only allow the rule to run on specific days of the week. |
119+
| `Dayset` | `ephemeris.DaysetCondition` | A condition that will only allow the rule to run on days in a specified set. |
120+
| `Holiday` | `ephemeris.HolidayCondition` | A condition that will only allow the rule to run on holidays. |
121+
| `Interval` | `timer.IntervalCondition` | A condition that will only allow the rule to run inside a specified time interval. |
122+
| `ItemState` | `core.ItemStateCondition` | A condition that will only allow the rule to run if a specific Item has a specific state. |
123+
| `NotHoliday` | `ephemeris.NotHolidayCondition` | A condition that will only allow the rule to run on non-holidays. |
124+
| `Script` | `script.ScriptCondition` | A scripted condition written in any supported scripting language, which can evaluate the condition using custom logic. |
125+
| `ThingStatus` | `core.ThingStatusCondition` | A condition that will only allow the rule to run if a specific Thing has a specific status. |
126+
| `TimeOfDay` | `core.TimeOfDayCondition` | A condition that will only allow the rule to run within a specified time window. |
127+
| `Weekday` | `ephemeris.WeekdayCondition` | A condition that will only allow the rule to run on weekdays. |
128+
| `Weekend` | `ephemeris.WeekendCondition` | A condition that will only allow the rule to run on weekends. |
110129

111130
### Example
112131

0 commit comments

Comments
 (0)