Uses of Class
org.openhab.core.thing.ThingUID
Package
Description
-
Uses of ThingUID in org.openhab.core.config.discovery
Modifier and TypeMethodDescription@Nullable ThingUID
DiscoveryResult.getBridgeUID()
Returns the uniqueBridge
ID of this result object.DiscoveryResult.getThingUID()
Returns the uniqueThing
ID of this result object.Modifier and TypeMethodDescription@Nullable Collection
<ThingUID> DiscoveryListener.removeOlderResults
(DiscoveryService source, long timestamp, @Nullable Collection<ThingTypeUID> thingTypeUIDs, @Nullable ThingUID bridgeUID) Removes all results belonging to one of the given types that are older than the given timestamp.Modifier and TypeMethodDescriptionstatic DiscoveryResultBuilder
Creates a new builder for a given thing UID.protected void
AbstractDiscoveryService.removeOlderResults
(long timestamp, @Nullable Collection<ThingTypeUID> thingTypeUIDs, @Nullable ThingUID bridgeUID) Call to remove all results of the given types that are older than the given timestamp.protected void
AbstractDiscoveryService.removeOlderResults
(long timestamp, @Nullable ThingUID bridgeUID) Call to remove all results of allAbstractDiscoveryService.supportedThingTypes
that are older than the given timestamp.@Nullable Collection
<ThingUID> DiscoveryListener.removeOlderResults
(DiscoveryService source, long timestamp, @Nullable Collection<ThingTypeUID> thingTypeUIDs, @Nullable ThingUID bridgeUID) Removes all results belonging to one of the given types that are older than the given timestamp.protected void
AbstractDiscoveryService.thingRemoved
(ThingUID thingUID) Notifies the registeredDiscoveryListener
s about a removed device.void
DiscoveryListener.thingRemoved
(DiscoveryService source, ThingUID thingUID) Invoked synchronously when an already existingThing
has been marked to be deleted by the accordingDiscoveryService
.DiscoveryResultBuilder.withBridge
(@Nullable ThingUID bridgeUID) Sets the bridgeUID of the desired result. -
Uses of ThingUID in org.openhab.core.config.discovery.inbox
Modifier and TypeMethodDescription@Nullable Thing
Creates newThing
and adds it to theThingRegistry
.static Predicate
<DiscoveryResult> InboxPredicates.forThingUID
(@Nullable ThingUID thingUID) boolean
Removes theDiscoveryResult
associated with the specifiedThing
ID from thisInbox
and sends a REMOVED event to any registeredInboxListener
.void
Inbox.setFlag
(ThingUID thingUID, @Nullable DiscoveryResultFlag flag) Sets the flag for a given thingUID result.
The flag signals e.g. -
Uses of ThingUID in org.openhab.core.config.discovery.mdns
Modifier and TypeMethodDescription@Nullable ThingUID
MDNSDiscoveryParticipant.getThingUID
(javax.jmdns.ServiceInfo service) Returns the thing UID for a mDNS service -
Uses of ThingUID in org.openhab.core.config.discovery.sddp
Modifier and TypeMethodDescription@Nullable ThingUID
SddpDiscoveryParticipant.getThingUID
(SddpDevice device) Returns the thing UID for a SDDP device -
Uses of ThingUID in org.openhab.core.config.discovery.upnp
Modifier and TypeMethodDescription@Nullable ThingUID
UpnpDiscoveryParticipant.getThingUID
(org.jupnp.model.meta.RemoteDevice device) Returns the thing UID for a upnp device -
Uses of ThingUID in org.openhab.core.config.discovery.usbserial
Modifier and TypeMethodDescription@Nullable ThingUID
UsbSerialDiscoveryParticipant.getThingUID
(UsbSerialDeviceInformation deviceInformation) Returns the thing UID for a USB device with corresponding serial port. -
Uses of ThingUID in org.openhab.core.model.thing.validation
-
Uses of ThingUID in org.openhab.core.thing
Modifier and TypeMethodDescription@Nullable ThingUID
Thing.getBridgeUID()
Gets the bridge UID.ChannelGroupUID.getThingUID()
Returns the thing UIDChannelUID.getThingUID()
Returns the thing UIDThing.getUID()
Gets the uid.Modifier and TypeMethodDescription@Nullable Thing
ThingRegistry.createThingOfType
(ThingTypeUID thingTypeUID, @Nullable ThingUID thingUID, @Nullable ThingUID bridgeUID, @Nullable String label, Configuration configuration) Creates a thing based on the given configuration properties@Nullable Thing
ThingRegistry.forceRemove
(ThingUID thingUID) @Nullable Thing
Returns a thing for a given UID or null if no thing was found.@Nullable Thing
Gets the thing for the given UID or null if no thing with the UID exists.boolean
This method gets the enabled status for aThing
.protected String
ManagedThingProvider.keyToString
(ThingUID key) @Nullable Thing
void
Thing.setBridgeUID
(@Nullable ThingUID bridgeUID) Sets the bridge.void
ThingManager.setEnabled
(ThingUID thingUID, boolean isEnabled) This method is used for changing enabled state of theThing
The onlyThingStatus
which is NOT enabled isThingStatus
withThingStatusDetail.DISABLED
.void
ThingRegistry.updateConfiguration
(ThingUID thingUID, Map<String, Object> configurationParameters) Updates the configuration of a thing for the given UID.ModifierConstructorDescriptionChannelGroupUID
(ThingUID thingUID, String id) ChannelUID
(ThingUID thingUID, String id) ChannelUID
(ThingUID thingUID, String groupId, String id) Instantiates a new thing UID.ThingUID
(ThingTypeUID thingTypeUID, ThingUID bridgeUID, String id) Instantiates a new thing UID. -
Uses of ThingUID in org.openhab.core.thing.binding
Modifier and TypeMethodDescriptionstatic ThingUID
ThingFactory.generateRandomThingUID
(ThingTypeUID thingTypeUID) Generates a random Thing UID for the given thingTypeModifier and TypeMethodDescription@Nullable Thing
BaseThingHandlerFactory.createThing
(ThingTypeUID thingTypeUID, Configuration configuration, @Nullable ThingUID thingUID, @Nullable ThingUID bridgeUID) Creates a thing based on given thing type uid.protected @Nullable Thing
BaseThingHandlerFactory.createThing
(ThingTypeUID thingTypeUID, Configuration configuration, ThingUID thingUID) Creates a thing based on given thing type uid.static @Nullable Thing
ThingFactory.createThing
(ThingUID thingUID, Configuration configuration, @Nullable Map<String, String> properties, @Nullable ThingUID bridgeUID, ThingTypeUID thingTypeUID, List<ThingHandlerFactory> thingHandlerFactories) static Thing
ThingFactory.createThing
(ThingType thingType, ThingUID thingUID, Configuration configuration) Creates a thing based on given thing type.static Thing
ThingFactory.createThing
(ThingType thingType, ThingUID thingUID, Configuration configuration, @Nullable ThingUID bridgeUID) Creates a thing based on a given thing type.static Thing
ThingFactory.createThing
(ThingType thingType, ThingUID thingUID, Configuration configuration, @Nullable ThingUID bridgeUID, @Nullable ConfigDescriptionRegistry configDescriptionRegistry) Creates a thing based on a given thing type.@Nullable Thing
ThingHandlerFactory.createThing
(ThingTypeUID thingTypeUID, Configuration configuration, @Nullable ThingUID thingUID, @Nullable ThingUID bridgeUID) Creates a thing for given arguments.@Nullable Bridge
Returns the bridge of the thing.void
BaseThingHandlerFactory.removeThing
(ThingUID thingUID) void
ThingHandlerFactory.removeThing
(ThingUID thingUID) A thing with the givenThing
UID was removed. -
Uses of ThingUID in org.openhab.core.thing.binding.builder
Modifier and TypeMethodDescriptionstatic BridgeBuilder
BridgeBuilder.create
(ThingTypeUID thingTypeUID, ThingUID thingUID) static ThingBuilder
ThingBuilder.create
(ThingTypeUID thingTypeUID, ThingUID thingUID) Create a newThingBuilder
BridgeBuilder.withBridge
(@Nullable ThingUID bridgeUID) ThingBuilder.withBridge
(@Nullable ThingUID bridgeUID) Set the bridge for this thingModifierConstructorDescriptionprotected
ThingBuilder
(ThingTypeUID thingTypeUID, ThingUID thingUID) -
Uses of ThingUID in org.openhab.core.thing.events
Modifier and TypeMethodDescriptionThingStatusInfoChangedEvent.getThingUID()
Gets the thing UID.ThingStatusInfoEvent.getThingUID()
Gets the thing UID.Modifier and TypeMethodDescriptionstatic ThingStatusInfoChangedEvent
ThingEventFactory.createStatusInfoChangedEvent
(ThingUID thingUID, ThingStatusInfo thingStatusInfo, ThingStatusInfo oldThingStatusInfo) Creates a new thing status info changed event based on a thing UID, a thing status info and the old thing status info object.static ThingStatusInfoEvent
ThingEventFactory.createStatusInfoEvent
(ThingUID thingUID, ThingStatusInfo thingStatusInfo) Creates a new thing status info event based on a thing UID and a thing status info object.ModifierConstructorDescriptionprotected
ThingStatusInfoChangedEvent
(String topic, String payload, ThingUID thingUID, ThingStatusInfo newThingStatusInfo, ThingStatusInfo oldThingStatusInfo) Creates a new thing status event object.protected
ThingStatusInfoEvent
(String topic, String payload, ThingUID thingUID, ThingStatusInfo thingStatusInfo) Creates a new thing status event object. -
Uses of ThingUID in org.openhab.core.thing.firmware
Modifier and TypeMethodDescriptionFirmwareStatusInfo.getThingUID()
Returns the thing UID.FirmwareUpdateProgressInfo.getThingUID()
Returns the thing UID.FirmwareUpdateResultInfo.getThingUID()
Returns the thing UID.Modifier and TypeMethodDescriptionvoid
FirmwareUpdateService.cancelFirmwareUpdate
(ThingUID thingUID) Cancels the firmware update of the thing having the given thing UID by invoking the operationFirmwareUpdateHandler.cancel()
of the thing´s firmware update handler.static FirmwareUpdateProgressInfo
FirmwareUpdateProgressInfo.createFirmwareUpdateProgressInfo
(ThingUID thingUID, String firmwareVersion, ProgressStep progressStep, Collection<ProgressStep> sequence, boolean pending, int progress) Creates a newFirmwareUpdateProgressInfo
.static FirmwareUpdateProgressInfo
FirmwareUpdateProgressInfo.createFirmwareUpdateProgressInfo
(ThingUID thingUID, ThingTypeUID thingTypeUID, String firmwareVersion, ProgressStep progressStep, Collection<ProgressStep> sequence, boolean pending) Creates a newFirmwareUpdateProgressInfo
.static FirmwareUpdateResultInfo
FirmwareUpdateResultInfo.createFirmwareUpdateResultInfo
(ThingUID thingUID, FirmwareUpdateResult result, String errorMessage) Creates a newFirmwareUpdateResultInfo
.static FirmwareStatusInfo
FirmwareStatusInfo.createUnknownInfo
(ThingUID thingUID) Creates a newFirmwareStatusInfo
havingFirmwareStatus.UNKNOWN
as firmware status.static FirmwareStatusInfo
FirmwareStatusInfo.createUpdateAvailableInfo
(ThingUID thingUID) Creates a newFirmwareStatusInfo
havingFirmwareStatus.UPDATE_AVAILABLE
as firmware status.static FirmwareStatusInfo
FirmwareStatusInfo.createUpdateExecutableInfo
(ThingUID thingUID, @Nullable String firmwareVersion) Creates a newFirmwareStatusInfo
havingFirmwareStatus.UPDATE_EXECUTABLE
as firmware status.static FirmwareStatusInfo
FirmwareStatusInfo.createUpToDateInfo
(ThingUID thingUID) Creates a newFirmwareStatusInfo
havingFirmwareStatus.UP_TO_DATE
as firmware status.@Nullable FirmwareStatusInfo
FirmwareUpdateService.getFirmwareStatusInfo
(ThingUID thingUID) Returns theFirmwareStatusInfo
for the thing having the given thing UID.void
FirmwareUpdateService.updateFirmware
(ThingUID thingUID, String firmwareVersion, @Nullable Locale locale) Updates the firmware of the thing having the given thing UID by invoking the operationFirmwareUpdateHandler.updateFirmware(Firmware, ProgressCallback)
of the thing´s firmware update handler. -
Uses of ThingUID in org.openhab.core.thing.link
Modifier and TypeMethodDescriptionint
ItemChannelLinkRegistry.removeLinksForThing
(ThingUID thingUID) Remove all links related to a thingint
ManagedItemChannelLinkProvider.removeLinksForThing
(ThingUID thingUID) -
Uses of ThingUID in org.openhab.core.thing.util
Modifier and TypeMethodDescriptionstatic String
ThingWebClientUtil.buildWebClientConsumerName
(ThingUID uid, @Nullable String prefix) Build a valid consumer name for HTTP or WebSocket client.