LevelControlTrait.OptionsBitmap

data class LevelControlTrait.OptionsBitmap : ClusterBitmap


Flags for LevelControl options.

Summary

Public constructors

OptionsBitmap(executeIfOff: Boolean, coupleColorTempToLevel: Boolean)

Creates the OptionsBitmap data class.

Public functions

open ULong

Public properties

Boolean

Couple changes to the currentlevel attribute with the color temperature set in the ColorControl.Attributes.colorTemperatureMireds attribute of the LevelControl cluster.

Boolean

Indicates a dependency on the OnOff cluster.

Public constructors

OptionsBitmap

OptionsBitmap(
    executeIfOff: Boolean = false,
    coupleColorTempToLevel: Boolean = false
)

Creates the OptionsBitmap data class.

Public functions

toRaw

open fun toRaw(): ULong

Public properties

coupleColorTempToLevel

val coupleColorTempToLevelBoolean

Couple changes to the currentlevel attribute with the color temperature set in the ColorControl.Attributes.colorTemperatureMireds attribute of the LevelControl cluster. This bit is ignored if the lighting feature is not supported.

executeIfOff

val executeIfOffBoolean

Indicates a dependency on the OnOff cluster. A LevelControl command does not continue past options processing if all of the following are true:

  • The command is Move, MoveToLevel, Step, or Stop.
  • The OnOff cluster exists on the same endpoint as this cluster.
  • The onOff attribute of the OnOff cluster on this endpoint is false.
  • The value of this bit (executeIfOff) is 0.