Skip to content

Commit 9cdffc7

Browse files
committed
Item triggers: Suggest using conditions that for comparing Item state
Related to openhab#4503. Signed-off-by: Florian Hotze <[email protected]>
1 parent 139a2e2 commit 9cdffc7

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

bundles/org.openhab.core.automation/src/main/resources/OH-INF/automation/moduletypes/ItemTriggers.json

+8-8
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"name": "command",
1818
"type": "TEXT",
1919
"label": "Command",
20-
"description": "the received command",
20+
"description": "The received command. For anything other than exact matches, add a rule condition.",
2121
"required": false,
2222
"limitToOptions": false,
2323
"options": [
@@ -84,7 +84,7 @@
8484
"name": "state",
8585
"type": "TEXT",
8686
"label": "State",
87-
"description": "the state of the item",
87+
"description": "The state of the item. For anything other than exact matches, add a rule condition.",
8888
"required": false,
8989
"limitToOptions": false,
9090
"options": [
@@ -151,7 +151,7 @@
151151
"name": "previousState",
152152
"type": "TEXT",
153153
"label": "Previous State",
154-
"description": "the required previous state of the item",
154+
"description": "The required previous state of the item. For anything other than exact matches, add a rule condition.",
155155
"required": false,
156156
"limitToOptions": false,
157157
"options": [
@@ -185,7 +185,7 @@
185185
"name": "state",
186186
"type": "TEXT",
187187
"label": "State",
188-
"description": "the state of the item",
188+
"description": "The state of the item. For anything other than exact matches, add a rule condition.",
189189
"required": false,
190190
"limitToOptions": false,
191191
"options": [
@@ -258,7 +258,7 @@
258258
"name": "command",
259259
"type": "TEXT",
260260
"label": "Command",
261-
"description": "the received command",
261+
"description": "The received command. For anything other than exact matches, add a rule condition.",
262262
"required": false,
263263
"limitToOptions": false,
264264
"options": [
@@ -343,7 +343,7 @@
343343
"name": "state",
344344
"type": "TEXT",
345345
"label": "State",
346-
"description": "the state of the item",
346+
"description": "The state of the item. For anything other than exact matches, add a rule condition.",
347347
"required": false,
348348
"limitToOptions": false,
349349
"options": [
@@ -428,7 +428,7 @@
428428
"name": "previousState",
429429
"type": "TEXT",
430430
"label": "Previous State",
431-
"description": "the required previous state of the item",
431+
"description": "The required previous state of the item. For anything other than exact matches, add a rule condition.",
432432
"required": false,
433433
"limitToOptions": false,
434434
"options": [
@@ -462,7 +462,7 @@
462462
"name": "state",
463463
"type": "TEXT",
464464
"label": "State",
465-
"description": "the state of the item",
465+
"description": "The state of the item. For anything other than exact matches, add a rule condition.",
466466
"required": false,
467467
"limitToOptions": false,
468468
"options": [

bundles/org.openhab.core.automation/src/main/resources/OH-INF/i18n/automation.properties

+8-8
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ module-type.core.GroupCommandTrigger.description = This triggers the rule if a m
5959
module-type.core.GroupCommandTrigger.config.groupName.label = Group
6060
module-type.core.GroupCommandTrigger.config.groupName.description = the name of the item group
6161
module-type.core.GroupCommandTrigger.config.command.label = Command
62-
module-type.core.GroupCommandTrigger.config.command.description = the received command
62+
module-type.core.GroupCommandTrigger.config.command.description = The received command. For anything other than exact matches, add a rule condition.
6363
module-type.core.GroupCommandTrigger.config.command.option.ON = ON
6464
module-type.core.GroupCommandTrigger.config.command.option.OFF = OFF
6565
module-type.core.GroupCommandTrigger.config.command.option.OPEN = OPEN
@@ -82,15 +82,15 @@ module-type.core.GroupStateChangeTrigger.description = This triggers the rule if
8282
module-type.core.GroupStateChangeTrigger.config.groupName.label = Group
8383
module-type.core.GroupStateChangeTrigger.config.groupName.description = the name of the item group
8484
module-type.core.GroupStateChangeTrigger.config.previousState.label = Previous State
85-
module-type.core.GroupStateChangeTrigger.config.previousState.description = the required previous state of the item
85+
module-type.core.GroupStateChangeTrigger.config.previousState.description = The required previous state of the item. For anything other than exact matches, add a rule condition.
8686
module-type.core.GroupStateChangeTrigger.config.previousState.option.ON = ON
8787
module-type.core.GroupStateChangeTrigger.config.previousState.option.OFF = OFF
8888
module-type.core.GroupStateChangeTrigger.config.previousState.option.OPEN = OPEN
8989
module-type.core.GroupStateChangeTrigger.config.previousState.option.CLOSED = CLOSED
9090
module-type.core.GroupStateChangeTrigger.config.previousState.option.UP = UP
9191
module-type.core.GroupStateChangeTrigger.config.previousState.option.DOWN = DOWN
9292
module-type.core.GroupStateChangeTrigger.config.state.label = State
93-
module-type.core.GroupStateChangeTrigger.config.state.description = the state of the item
93+
module-type.core.GroupStateChangeTrigger.config.state.description = The state of the item. For anything other than exact matches, add a rule condition.
9494
module-type.core.GroupStateChangeTrigger.config.state.option.ON = ON
9595
module-type.core.GroupStateChangeTrigger.config.state.option.OFF = OFF
9696
module-type.core.GroupStateChangeTrigger.config.state.option.OPEN = OPEN
@@ -113,7 +113,7 @@ module-type.core.GroupStateUpdateTrigger.description = This triggers the rule if
113113
module-type.core.GroupStateUpdateTrigger.config.groupName.label = Group
114114
module-type.core.GroupStateUpdateTrigger.config.groupName.description = the name of the item group
115115
module-type.core.GroupStateUpdateTrigger.config.state.label = State
116-
module-type.core.GroupStateUpdateTrigger.config.state.description = the state of the item
116+
module-type.core.GroupStateUpdateTrigger.config.state.description = The state of the item. For anything other than exact matches, add a rule condition.
117117
module-type.core.GroupStateUpdateTrigger.config.state.option.ON = ON
118118
module-type.core.GroupStateUpdateTrigger.config.state.option.OFF = OFF
119119
module-type.core.GroupStateUpdateTrigger.config.state.option.OPEN = OPEN
@@ -153,7 +153,7 @@ module-type.core.ItemCommandTrigger.description = This triggers the rule if an i
153153
module-type.core.ItemCommandTrigger.config.itemName.label = Item
154154
module-type.core.ItemCommandTrigger.config.itemName.description = the name of the item
155155
module-type.core.ItemCommandTrigger.config.command.label = Command
156-
module-type.core.ItemCommandTrigger.config.command.description = the received command
156+
module-type.core.ItemCommandTrigger.config.command.description = The received command. For anything other than exact matches, add a rule condition.
157157
module-type.core.ItemCommandTrigger.config.command.option.ON = ON
158158
module-type.core.ItemCommandTrigger.config.command.option.OFF = OFF
159159
module-type.core.ItemCommandTrigger.config.command.option.OPEN = OPEN
@@ -172,15 +172,15 @@ module-type.core.ItemStateChangeTrigger.description = This triggers the rule if
172172
module-type.core.ItemStateChangeTrigger.config.itemName.label = Item
173173
module-type.core.ItemStateChangeTrigger.config.itemName.description = the name of the item
174174
module-type.core.ItemStateChangeTrigger.config.previousState.label = Previous State
175-
module-type.core.ItemStateChangeTrigger.config.previousState.description = the required previous state of the item
175+
module-type.core.ItemStateChangeTrigger.config.previousState.description = The required previous state of the item. For anything other than exact matches, add a rule condition.
176176
module-type.core.ItemStateChangeTrigger.config.previousState.option.ON = ON
177177
module-type.core.ItemStateChangeTrigger.config.previousState.option.OFF = OFF
178178
module-type.core.ItemStateChangeTrigger.config.previousState.option.OPEN = OPEN
179179
module-type.core.ItemStateChangeTrigger.config.previousState.option.CLOSED = CLOSED
180180
module-type.core.ItemStateChangeTrigger.config.previousState.option.UP = UP
181181
module-type.core.ItemStateChangeTrigger.config.previousState.option.DOWN = DOWN
182182
module-type.core.ItemStateChangeTrigger.config.state.label = State
183-
module-type.core.ItemStateChangeTrigger.config.state.description = the state of the item
183+
module-type.core.ItemStateChangeTrigger.config.state.description = The state of the item. For anything other than exact matches, add a rule condition.
184184
module-type.core.ItemStateChangeTrigger.config.state.option.ON = ON
185185
module-type.core.ItemStateChangeTrigger.config.state.option.OFF = OFF
186186
module-type.core.ItemStateChangeTrigger.config.state.option.OPEN = OPEN
@@ -241,7 +241,7 @@ module-type.core.ItemStateUpdateTrigger.description = This triggers the rule if
241241
module-type.core.ItemStateUpdateTrigger.config.itemName.label = Item
242242
module-type.core.ItemStateUpdateTrigger.config.itemName.description = the name of the item
243243
module-type.core.ItemStateUpdateTrigger.config.state.label = State
244-
module-type.core.ItemStateUpdateTrigger.config.state.description = the state of the item
244+
module-type.core.ItemStateUpdateTrigger.config.state.description = The state of the item. For anything other than exact matches, add a rule condition.
245245
module-type.core.ItemStateUpdateTrigger.config.state.option.ON = ON
246246
module-type.core.ItemStateUpdateTrigger.config.state.option.OFF = OFF
247247
module-type.core.ItemStateUpdateTrigger.config.state.option.OPEN = OPEN

0 commit comments

Comments
 (0)