# LevelControlTrait.OptionsBitmap


```
data class LevelControlTrait.OptionsBitmap
```

<br />

*** ** * ** ***

Flags for LevelControl options.

## Summary

| ### Public constructors |
|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/LevelControlTrait.OptionsBitmap#OptionsBitmap(kotlin.Boolean,kotlin.Boolean)(executeIfOff: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html, coupleColorTempToLevel: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)` Creates the OptionsBitmap data class. |

| ### Public functions |
|---|---|
| `open https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-long/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/LevelControlTrait.OptionsBitmap#toRaw()()` Convert this ClusterBitmap to raw (bytes) format |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/LevelControlTrait.OptionsBitmap#coupleColorTempToLevel()` Couple changes to the `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/LevelControlTrait.Attributes#currentLevel()` attribute with the color temperature set in the ColorControl.Attributes.colorTemperatureMireds attribute of the `LevelControl` cluster. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/LevelControlTrait.OptionsBitmap#executeIfOff()` Indicates a dependency on the `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OnOff` cluster. |

## Public constructors

### OptionsBitmap

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

Creates the OptionsBitmap data class.

## Public functions

### toRaw

```
open fun toRaw(): ULong
```

Convert this ClusterBitmap to raw (bytes) format

## Public properties

### coupleColorTempToLevel

```
val coupleColorTempToLevel: Boolean
```

Couple changes to the `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/LevelControlTrait.Attributes#currentLevel()` attribute with the color temperature set in the ColorControl.Attributes.colorTemperatureMireds attribute of the `LevelControl` cluster. This bit is ignored if the `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/LevelControlTrait.Feature#lighting()` feature is not supported.

### executeIfOff

```
val executeIfOff: Boolean
```

Indicates a dependency on the `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OnOff` cluster. A `LevelControl` command does not continue past `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/LevelControlTrait.Attributes#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`.

<br />