OnOffTrait.OffWithEffectCommand.Request

class OnOffTrait.OffWithEffectCommand.Request : ClusterStruct


The request payload for the OffWithEffect command.

Summary

Nested types

Descriptor enum for this command's request fields.

Public constructors

Request(
    effectIdentifier: OnOffTrait.EffectIdentifierEnum,
    effectVariant: UByte
)

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

OnOffTrait.EffectIdentifierEnum

The fading effect to use when turning the device off.

UByte

Variant of the effect, indicated by the effectIdentifier parameter, that is triggered.

Public constructors

Request

Request(
    effectIdentifier: OnOffTrait.EffectIdentifierEnum = EffectIdentifierEnum.DelayedAllOff,
    effectVariant: UByte
)

Creates a request payload for the OffWithEffect command.

Public functions

getDescriptor

@HomeExperimentalApi
open fun getDescriptor(): StructDescriptor

Returns the descriptor for the struct.

getFieldValueById

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

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

Public properties

effectIdentifier

val effectIdentifierOnOffTrait.EffectIdentifierEnum

The fading effect to use when turning the device off. Must be a value from OnOffTrait.EffectIdentifierEnum.

effectVariant

val effectVariantUByte

Variant of the effect, indicated by the effectIdentifier parameter, that is triggered. This must be one of the values in OnOffTrait.DelayedAllOffEffectVariantEnum or OnOffTrait.DyingLightEffectVariantEnum that correspond to the effect specified for effectIdentifier.