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 TypeMethodDescriptionbooleanThis method gets the enabled status for aThing.voidsetEnabled(ThingUID thingUID, boolean isEnabled) This method is used for changing enabled state of theThingThe onlyThingStatuswhich is NOT enabled isThingStatuswithThingStatusDetail.DISABLED.
-
Method Details
-
isEnabled
This method gets the enabled status for aThing. The onlyThingStatuswhich is NOT enabled isThingStatuswithThingStatusDetail.DISABLED.- Parameters:
thingUID- UID of theThing.- Returns:
falsewhen theThinghasThingStatuswithThingStatusDetail.DISABLED. Returnstruein all other cases.
-
setEnabled
This method is used for changing enabled state of theThingThe onlyThingStatuswhich is NOT enabled isThingStatuswithThingStatusDetail.DISABLED.
-