ExtendedColorControlTrait.MoveToColorRgbCommand.Request

class ExtendedColorControlTrait.MoveToColorRgbCommand.Request : ClusterStruct


The request payload for the MoveToColorRGB command.

Summary

Nested types

Descriptor enum for this command's request fields.

Public constructors

Request(red: UByte, green: UByte, blue: UByte)

Creates a request payload for the MoveToColorRGB command.

Public functions

open StructDescriptor

Returns the descriptor for the struct.

open Any?

Returns the value of the field for the given tag ID.

Public properties

UByte

Moves a device to the provided color of blue, whose range is 0 to 155.

UByte

Moves a device to the provided color of green, whose range is 0 to 155.

UByte

Moves a device to the provided color of red, whose range is 0 to 155.

Public constructors

Request

Request(red: UByte, green: UByte, blue: UByte)

Creates a request payload for the MoveToColorRGB command.

Public functions

getDescriptor

@HomeExperimentalGenericApi
open fun getDescriptor(): StructDescriptor

Returns the descriptor for the struct.

getFieldValueById

@HomeExperimentalGenericApi
open fun getFieldValueById(tagId: UInt): Any?

Returns the value of the field for the given tag ID.

Public properties

blue

val blueUByte

Moves a device to the provided color of blue, whose range is 0 to 155.

green

val greenUByte

Moves a device to the provided color of green, whose range is 0 to 155.

red

val redUByte

Moves a device to the provided color of red, whose range is 0 to 155.