Class ChannelValueConverterConfig
java.lang.Object
org.openhab.core.thing.binding.generic.ChannelValueConverterConfig
The
ChannelValueConverterConfig
is a base class for the channel configuration of things
using the ChannelHandler
s- Author:
- Jan N. Klug - Initial contribution
-
Field Summary
Modifier and TypeFieldDescription@Nullable String
@Nullable String
@Nullable String
@Nullable String
@Nullable String
@Nullable String
@Nullable String
@Nullable String
@Nullable String
@Nullable String
@Nullable String
@Nullable String
@Nullable String
@Nullable String
@Nullable String
@Nullable String
@Nullable String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@Nullable String
commandToFixedValue
(Command command) maps a command to a user-defined string@Nullable State
fixedValueToState
(String string) maps a user-defined string to a state
-
Field Details
-
mode
-
unit
-
onValue
-
offValue
-
step
-
increaseValue
-
decreaseValue
-
colorMode
-
openValue
-
closedValue
-
upValue
-
downValue
-
stopValue
-
moveValue
-
playValue
-
pauseValue
-
nextValue
-
previousValue
-
rewindValue
-
fastforwardValue
-
-
Constructor Details
-
ChannelValueConverterConfig
public ChannelValueConverterConfig()
-
-
Method Details
-
commandToFixedValue
maps a command to a user-defined string- Parameters:
command
- the command to map- Returns:
- a string or null if no mapping found
-
fixedValueToState
maps a user-defined string to a state- Parameters:
string
- the string to map- Returns:
- the state or null if no mapping found
-