Class RollershutterChannelHandler
java.lang.Object
org.openhab.core.thing.internal.binding.generic.converter.AbstractTransformingChannelHandler
org.openhab.core.thing.binding.generic.converter.RollershutterChannelHandler
- All Implemented Interfaces:
ChannelHandler
@NonNullByDefault
public class RollershutterChannelHandler
extends org.openhab.core.thing.internal.binding.generic.converter.AbstractTransformingChannelHandler
The
RollershutterChannelHandler
implements RollershutterItem
conversions- Author:
- Jan N. Klug - Initial contribution
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.openhab.core.thing.binding.generic.ChannelHandler
ChannelHandler.Factory
-
Field Summary
Fields inherited from class org.openhab.core.thing.internal.binding.generic.converter.AbstractTransformingChannelHandler
channelConfig
-
Constructor Summary
ConstructorDescriptionRollershutterChannelHandler
(Consumer<State> updateState, Consumer<Command> postCommand, @Nullable Consumer<String> sendValue, ChannelTransformation stateTransformations, ChannelTransformation commandTransformations, ChannelValueConverterConfig channelConfig) -
Method Summary
Modifier and TypeMethodDescriptionprotected @Nullable Command
check if this converter received a value that needs to be sent as commandconvert the received value to a stateconvert a command to a stringMethods inherited from class org.openhab.core.thing.internal.binding.generic.converter.AbstractTransformingChannelHandler
process, send
-
Constructor Details
-
RollershutterChannelHandler
public RollershutterChannelHandler(Consumer<State> updateState, Consumer<Command> postCommand, @Nullable Consumer<String> sendValue, ChannelTransformation stateTransformations, ChannelTransformation commandTransformations, ChannelValueConverterConfig channelConfig)
-
-
Method Details
-
toString
Description copied from class:org.openhab.core.thing.internal.binding.generic.converter.AbstractTransformingChannelHandler
convert a command to a string- Specified by:
toString
in classorg.openhab.core.thing.internal.binding.generic.converter.AbstractTransformingChannelHandler
- Parameters:
command
- the command- Returns:
- the string representation of the command
-
toCommand
Description copied from class:org.openhab.core.thing.internal.binding.generic.converter.AbstractTransformingChannelHandler
check if this converter received a value that needs to be sent as command- Specified by:
toCommand
in classorg.openhab.core.thing.internal.binding.generic.converter.AbstractTransformingChannelHandler
- Parameters:
string
- the value- Returns:
- the command or null
-
toState
Description copied from class:org.openhab.core.thing.internal.binding.generic.converter.AbstractTransformingChannelHandler
convert the received value to a state- Specified by:
toState
in classorg.openhab.core.thing.internal.binding.generic.converter.AbstractTransformingChannelHandler
- Parameters:
string
- the value- Returns:
- the state that represents the value of UNDEF if conversion failed
-