java.lang.Object
org.openhab.core.model.script.actions.Things

public class Things extends Object
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 Details

    • Things

      public Things()
  • Method Details

    • getThingStatusInfo

      public static ThingStatusInfo getThingStatusInfo(String thingUid)
      Retrieves the status info of a Thing
      Parameters:
      thingUid - The uid of the thing
      Returns:
      ThingStatusInfo
    • getActions

      public static ThingActions getActions(String scope, String thingUid)
      Get the actions instance for a Thing of a given scope
      Parameters:
      scope - The action scope
      thingUid - The uid of the thing
      Returns:
      the ThingActions instance