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: configuration/yaml/rules.md
+20-1Lines changed: 20 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -94,7 +94,7 @@ The standard trigger types have been given simplified aliases for convenience, b
94
94
| `StartLevel` | `core.SystemStartlevelTrigger` | A [system trigger](../../concepts/rules.md#system-triggers), which triggers specific start levels during openHAB startup. |
95
95
| `ThingChanged` | `core.ThingStatusChangeTrigger` | A [thing trigger](../../concepts/rules.md#thing-triggers), which triggers on status changes for a thing. |
96
96
| `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. |
98
98
99
99
### Conditions Section
100
100
@@ -107,6 +107,25 @@ The standard trigger types have been given simplified aliases for convenience, b
107
107
| `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. |
108
108
| `inputs` | ☐ | **Advanced**: A key-value map for controlling mapping of inputs from other modules. Inputs are automatically mapped if not mapped explicitly. |
109
109
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".
| `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. |
0 commit comments