Class Things
java.lang.Object
org.openhab.core.model.script.actions.Things
This class provides static methods that can be used in automation rules for
getting thing's status info.
- Author:
- Maoliang Huang - Initial contribution, Kai Kreuzer - Extended for general thing access
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ThingActions
getActions
(String scope, String thingUid) Get the actions instance for a Thing of a given scopestatic ThingStatusInfo
getThingStatusInfo
(String thingUid) Retrieves the status info of a Thing
-
Constructor Details
-
Things
public Things()
-
-
Method Details
-
getThingStatusInfo
Retrieves the status info of a Thing- Parameters:
thingUid
- The uid of the thing- Returns:
ThingStatusInfo
-
getActions
Get the actions instance for a Thing of a given scope- Parameters:
scope
- The action scopethingUid
- The uid of the thing- Returns:
- the
ThingActions
instance
-