BrightnessTrait.MoveToBrightnessCommand.Request

class BrightnessTrait.MoveToBrightnessCommand.Request : ClusterStruct


The request payload for the MoveToBrightness command.

Summary

Nested types

Descriptor enum for this command's request fields.

Public constructors

Request(brightnessPercent: UByte)

Creates a request payload for the MoveToBrightness 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

The desired brightness percentage setting in the range of 0 to 100.

Public constructors

Request

Request(brightnessPercent: UByte)

Creates a request payload for the MoveToBrightness 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

brightnessPercent

val brightnessPercentUByte

The desired brightness percentage setting in the range of 0 to 100.