Package org.openhab.core.thing
Interface ThingManager
@NonNullByDefault
public interface ThingManager
ThingManager
interface defines methods for managing a Thing
.- Author:
- Yordan Zhelev - Initial contribution
-
Method Summary
Modifier and TypeMethodDescriptionboolean
This method gets the enabled status for aThing
.void
setEnabled
(ThingUID thingUID, boolean isEnabled) This method is used for changing enabled state of theThing
The onlyThingStatus
which is NOT enabled isThingStatus
withThingStatusDetail.DISABLED
.
-
Method Details
-
isEnabled
This method gets the enabled status for aThing
. The onlyThingStatus
which is NOT enabled isThingStatus
withThingStatusDetail.DISABLED
.- Parameters:
thingUID
- UID of theThing
.- Returns:
false
when theThing
hasThingStatus
withThingStatusDetail.DISABLED
. Returnstrue
in all other cases.
-
setEnabled
This method is used for changing enabled state of theThing
The onlyThingStatus
which is NOT enabled isThingStatus
withThingStatusDetail.DISABLED
.
-