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: addons/actions.md
+6-6
Original file line number
Diff line number
Diff line change
@@ -123,9 +123,9 @@ Therefore openHAB provides a bunch methods to be used in Rules.
123
123
124
124
#### Rules DSL
125
125
126
-
-`boolean isLocation(Item)` - checks if the given Item is is a Location
127
-
-`boolean isEquipment(Item)` - checks if the given Item is is an Equipment
128
-
-`boolean isPoint(Item)` - checks if the given Item is is a Point
126
+
-`boolean isLocation(Item)` - checks if the given Item is a Location
127
+
-`boolean isEquipment(Item)` - checks if the given Item is an Equipment
128
+
-`boolean isPoint(Item)` - checks if the given Item is a Point
129
129
-`Item getLocation(Item)` - gets the Location Item of the Item, returns the related Location Item of the Item or `null`
130
130
-`Class<? extends Location> getLocationType(Item)` - gets the Location type of the Item, returns the related Location type of the Item or `null`
131
131
-`Item getEquipment(Item)` - gets the Equipment Item an Item belongs to, returns the related Equipment Item of the Item or `null`
@@ -176,9 +176,9 @@ end
176
176
The Timer object supports the following methods:
177
177
178
178
-`cancel`: prevents the scheduled timer from executing. Most of the time `cancel` is used used in conjunction with setting the timer handler to `null` as a convenient indicator that some previously defined timer is now finished with. However setting the handler to `null` does not interact with the timer itself.
179
-
-`isActive`: returns true if the timer will be executed as scheduled, i.e. it has not been cancelled or completed.
180
-
-`isRunning`: returns true if the code is currently executing (i.e. the timer activated the code but it is not done running).
181
-
-`hasTerminated`: returns true if the code has run and completed.
179
+
-`isActive`: returns `true` if the timer will be executed as scheduled, i.e. it has not been cancelled or completed.
180
+
-`isRunning`: returns `true` if the code is currently executing (i.e. the timer activated the code but it is not done running).
181
+
-`hasTerminated`: returns `true` if the code has run and completed.
182
182
-`reschedule(AbstractInstant instant)`: reschedules the timer to execute at the new time. If the Timer has terminated this method does nothing.
0 commit comments