Things namespace. This namespace handles querying and editing openHAB Things.
Classes
Methods
(static) getThing(uid, nullIfMissingopt) → {Thing}
Gets an openHAB Thing.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
uid |
string | UID of the thing |
|
nullIfMissing |
boolean |
<optional> |
whether to return null if the Thing cannot be found (default is to throw an exception) |
Returns:
- Type
- Thing
(static) getThings() → {Array.<Thing>}
Gets all openHAB Things.
Returns:
things.Thing
[]: all Things
- Type
- Array.<Thing>