Package org.openhab.core.thing.profiles
Interface ProfileCallback
@NonNullByDefault
public interface ProfileCallback
Gives access to the framework features for continuing the communication flow.
- Author:
- Simon Kaufmann - Initial contribution
-
Method Summary
Modifier and TypeMethodDescriptionGet the link that this profile is associated with.void
handleCommand
(Command command) Forward the given command to the respective thing handler.void
sendCommand
(Command command) Send a command to the framework.void
sendTimeSeries
(TimeSeries timeSeries) Send aTimeSeries
update to the framework.void
sendUpdate
(State state) Send a state update to the framework.
-
Method Details
-
getItemChannelLink
ItemChannelLink getItemChannelLink()Get the link that this profile is associated with.- Returns:
- The ItemChannelLink
-
handleCommand
Forward the given command to the respective thing handler.- Parameters:
command
-
-
sendCommand
Send a command to the framework.- Parameters:
command
-
-
sendUpdate
Send a state update to the framework.- Parameters:
state
-
-
sendTimeSeries
Send aTimeSeries
update to the framework.- Parameters:
timeSeries
-
-