ColorControlTrait.EnhancedMoveToHueAndSaturationCommand.Request

class ColorControlTrait.EnhancedMoveToHueAndSaturationCommand.Request


The request payload for the EnhancedMoveToHueAndSaturation command.

Summary

Public constructors

Request(
    enhancedHue: UShort,
    saturation: UByte,
    transitionTime: UShort,
    optionsMask: UByte,
    optionsOverride: UByte
)

Creates a request payload for the EnhancedMoveToHueAndSaturation command.

Public properties

UShort

The enhanced hue to be moved to.

UByte

Determines which bits in the options attribute should be overridden by optionsOverride.

UByte

If the corresponding bit in optionsMask is set to 1, the bit set here overrides the corresponding bit in options attribute.

UByte

The saturation to be moved to.

UShort

The time (in 0.1 seconds) taken to move the device to the new enhanced hue and saturation.

Public constructors

Request

Request(
    enhancedHue: UShort,
    saturation: UByte,
    transitionTime: UShort,
    optionsMask: UByte,
    optionsOverride: UByte
)

Creates a request payload for the EnhancedMoveToHueAndSaturation command.

Public properties

enhancedHue

val enhancedHueUShort

The enhanced hue to be moved to. The valid range of values is 0 to 65534.

optionsMask

val optionsMaskUByte

Determines which bits in the options attribute should be overridden by optionsOverride.

optionsOverride

val optionsOverrideUByte

If the corresponding bit in optionsMask is set to 1, the bit set here overrides the corresponding bit in options attribute.

saturation

val saturationUByte

The saturation to be moved to. The valid range of values is 0 to 254.

transitionTime

val transitionTimeUShort

The time (in 0.1 seconds) taken to move the device to the new enhanced hue and saturation.