FanControlTrait.StepCommand.Request

class FanControlTrait.StepCommand.Request


The request payload for the Step command.

Summary

Public constructors

Request(
    direction: FanControlTrait.StepDirectionEnum,
    wrap: OptionalValue<Boolean>,
    lowestOff: OptionalValue<Boolean>
)

Creates a request payload for the Step command.

Public properties

FanControlTrait.StepDirectionEnum

Whether the fan speed increases or decreases to the next step value.

OptionalValue<Boolean>

Whether the fan being off (speed value 0) is included as a step value.

OptionalValue<Boolean>

Fan speed wraps between highest and lowest step value.

Public constructors

Request

Request(
    direction: FanControlTrait.StepDirectionEnum = StepDirectionEnum.Increase,
    wrap: OptionalValue<Boolean> = OptionalValue.absent(),
    lowestOff: OptionalValue<Boolean> = OptionalValue.absent()
)

Creates a request payload for the Step command.

Public properties

direction

val directionFanControlTrait.StepDirectionEnum

Whether the fan speed increases or decreases to the next step value. Valid directions are defined in StepDirectionEnum.

lowestOff

val lowestOffOptionalValue<Boolean>

Whether the fan being off (speed value 0) is included as a step value.

wrap

val wrapOptionalValue<Boolean>

Fan speed wraps between highest and lowest step value.