Package org.openhab.core.thing.profiles
Interface StateProfile
- All Superinterfaces:
Profile
- All Known Subinterfaces:
TimeSeriesProfile
- All Known Implementing Classes:
ScriptProfile
A
StateProfile defined the communication for channels of STATE kind.- Author:
- Simon Kaufmann - Initial contribution
-
Method Summary
Modifier and TypeMethodDescriptionvoidonCommandFromHandler(Command command) If a binding issued a command to a channel, this method will be called for each linked item.voidonCommandFromItem(Command command) Will be called if a command should be forwarded to the binding.default voidonCommandFromItem(Command command, @Nullable String source) Will be called if a command should be forwarded to the binding.voidonStateUpdateFromHandler(State state) If the binding indicated a state update on a channel, then this method will be called for each linked item.Methods inherited from interface org.openhab.core.thing.profiles.Profile
getProfileTypeUID, onStateUpdateFromItem
-
Method Details
-
onCommandFromItem
Will be called if a command should be forwarded to the binding.- Parameters:
command-
-
onCommandFromItem
Will be called if a command should be forwarded to the binding.- Parameters:
command-source- the source of the command event
-
onCommandFromHandler
If a binding issued a command to a channel, this method will be called for each linked item.- Parameters:
command-
-
onStateUpdateFromHandler
If the binding indicated a state update on a channel, then this method will be called for each linked item.- Parameters:
state-
-