Package org.openhab.core.thing.profiles
Interface ProfileAdvisor
@NonNullByDefault
public interface ProfileAdvisor
Implementors can give advice which
Profile
s can/should be used for a given link.- Author:
- Simon Kaufmann - Initial contribution
-
Method Summary
Modifier and TypeMethodDescription@Nullable ProfileTypeUID
getSuggestedProfileTypeUID
(Channel channel, @Nullable String itemType) Suggest a custom profile for the given channel (and potentially also the itemType).@Nullable ProfileTypeUID
getSuggestedProfileTypeUID
(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
null
if 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
- theChannelType
of the linked channelitemType
- the linked itemType (not applicable for trigger channels)- Returns:
- the profile identifier or
null
if this advisor does not have any advice
-