Class SddpAddonFinder
java.lang.Object
org.openhab.core.config.discovery.addon.BaseAddonFinder
org.openhab.core.config.discovery.addon.sddp.SddpAddonFinder
- All Implemented Interfaces:
AddonFinder
,SddpDeviceParticipant
@NonNullByDefault
public class SddpAddonFinder
extends BaseAddonFinder
implements SddpDeviceParticipant
This is a driver
host
ipAddress
macAddress
manufacturer
model
port
primaryProxy
proxies
type
SddpAddonFinder
for finding suggested Addons via SDDP.
It checks the binding's addon.xml 'match-property' elements for the following SDDP properties:
- Author:
- Andrew Fiddian-Green - Initial contribution
-
Field Summary
Fields inherited from class org.openhab.core.config.discovery.addon.BaseAddonFinder
addonCandidates
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
deviceAdded
(SddpDevice device) void
deviceRemoved
(SddpDevice device) The framework calls this method to scan through the candidate list ofAddonInfo
and return a subset of those that it suggests to be installed.void
setAddonCandidates
(List<AddonInfo> candidates) The framework calls this method to provide a list ofAddonInfo
elements which contain potential candidates that this finder can iterate over in order to detect which ones to return via thegetSuggestedAddons()
method.Methods inherited from class org.openhab.core.config.discovery.addon.BaseAddonFinder
propertyMatches, unsetAddonCandidates
-
Field Details
-
SERVICE_TYPE
- See Also:
-
SERVICE_NAME
- See Also:
-
-
Constructor Details
-
SddpAddonFinder
-
-
Method Details
-
deactivate
public void deactivate() -
deviceAdded
- Specified by:
deviceAdded
in interfaceSddpDeviceParticipant
-
deviceRemoved
- Specified by:
deviceRemoved
in interfaceSddpDeviceParticipant
-
getServiceName
- Specified by:
getServiceName
in classBaseAddonFinder
-
getSuggestedAddons
Description copied from interface:AddonFinder
The framework calls this method to scan through the candidate list ofAddonInfo
and return a subset of those that it suggests to be installed.- Specified by:
getSuggestedAddons
in interfaceAddonFinder
-
setAddonCandidates
Description copied from interface:AddonFinder
The framework calls this method to provide a list ofAddonInfo
elements which contain potential candidates that this finder can iterate over in order to detect which ones to return via thegetSuggestedAddons()
method.- Specified by:
setAddonCandidates
in interfaceAddonFinder
- Overrides:
setAddonCandidates
in classBaseAddonFinder
- Parameters:
candidates
- a list of AddonInfo candidates.
-