LightEffectsTrait.SleepEffectSetCommand.Request

class LightEffectsTrait.SleepEffectSetCommand.Request : ClusterStruct


The request payload for the SleepEffectSet command.

Summary

Nested types

Descriptor enum for this command's request fields.

Public constructors

Request(durationSeconds: UInt)

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

UInt

Duration for the sleep effect, in seconds.

Public constructors

Request

Request(durationSeconds: UInt)

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

durationSeconds

val durationSecondsUInt

Duration for the sleep effect, in seconds.