Package org.openhab.core.thing.profiles
Interface ProfileAdvisor
@NonNullByDefault
public interface ProfileAdvisor
Implementors can give advice which 
Profiles can/should be used for a given link.- Author:
 - Simon Kaufmann - Initial contribution
 
- 
Method Summary
Modifier and TypeMethodDescription@Nullable ProfileTypeUIDgetSuggestedProfileTypeUID(Channel channel, @Nullable String itemType) Suggest a custom profile for the given channel (and potentially also the itemType).@Nullable ProfileTypeUIDgetSuggestedProfileTypeUID(ChannelType channelType, @Nullable String itemType) Suggest a custom profile for a givenChannelType(and potentially also the itemType). 
- 
Method Details
- 
getSuggestedProfileTypeUID
Suggest a custom profile for the given channel (and potentially also the itemType). Please note:- This will override any default behavior
 - A "profile" configuration on the link will override this suggestion
 
- Parameters:
 channel- the linked channelitemType- the linked itemType (not applicable for trigger channels)- Returns:
 - the profile identifier or 
nullif this advisor does not have any advice 
 - 
getSuggestedProfileTypeUID
@Nullable ProfileTypeUID getSuggestedProfileTypeUID(ChannelType channelType, @Nullable String itemType) Suggest a custom profile for a givenChannelType(and potentially also the itemType). Please note:- This will override any default behavior
 - A "profile" configuration on the link will override this suggestion
 
- Parameters:
 channelType- theChannelTypeof the linked channelitemType- the linked itemType (not applicable for trigger channels)- Returns:
 - the profile identifier or 
nullif this advisor does not have any advice 
 
 -