# EnergyPreferenceTrait.Feature


```
data class EnergyPreferenceTrait.Feature
```

<br />

*** ** * ** ***

EnergyPreference trait FeatureMap.

## Summary

| ### Public constructors |
|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyPreferenceTrait.Feature#Feature(kotlin.Boolean,kotlin.Boolean)(energyBalance: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html, lowPowerModeSensitivity: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)` Creates the Feature 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/EnergyPreferenceTrait.Feature#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/EnergyPreferenceTrait.Feature#energyBalance()` Allows a user to balance energy consumption versus another priority for a device. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyPreferenceTrait.Feature#lowPowerModeSensitivity()` Allows the user to select a condition or set of conditions to cause a device to switch to a mode that uses less power than the current mode. |

## Public constructors

### Feature

```
Feature(
    energyBalance: Boolean = false,
    lowPowerModeSensitivity: Boolean = false
)
```

Creates the Feature data class.

## Public functions

### toRaw

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

Convert this ClusterBitmap to raw (bytes) format

## Public properties

### energyBalance

```
val energyBalance: Boolean
```

Allows a user to balance energy consumption versus another priority for a device.

### lowPowerModeSensitivity

```
val lowPowerModeSensitivity: Boolean
```

Allows the user to select a condition or set of conditions to cause a device to switch to a mode that uses less power than the current mode. For example, a device might provide a scale of durations that must elapse without user interaction before the device enters sleep mode.