LightEffectsTrait.PulseEffectSetCommand.Request

class LightEffectsTrait.PulseEffectSetCommand.Request : ClusterStruct


The request payload for the PulseEffectSet command.

Summary

Nested types

Descriptor enum for this command's request fields.

Public constructors

Request(durationSeconds: UInt, color: LightEffectsTrait.Color)

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

LightEffectsTrait.Color

Color of the light for the duration of the effect.

UInt

Duration for the pulse effect, in seconds.

Public constructors

Request

Request(durationSeconds: UInt, color: LightEffectsTrait.Color = Color())

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

color

val colorLightEffectsTrait.Color

Color of the light for the duration of the effect.

durationSeconds

val durationSecondsUInt

Duration for the pulse effect, in seconds.