# ElectricalEnergyMeasurementTrait.Feature


```
data class ElectricalEnergyMeasurementTrait.Feature
```

<br />

*** ** * ** ***

ElectricalEnergyMeasurement Trait FeatureMap.

## Summary

| ### Public constructors |
|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalEnergyMeasurementTrait.Feature#Feature(kotlin.Boolean,kotlin.Boolean,kotlin.Boolean,kotlin.Boolean,kotlin.Boolean,kotlin.Boolean)( importedEnergy: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html, exportedEnergy: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html, cumulativeEnergy: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html, periodicEnergy: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html, apparentEnergy: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html, reactiveEnergy: 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/ElectricalEnergyMeasurementTrait.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/ElectricalEnergyMeasurementTrait.Feature#apparentEnergy()` Measurements report apparent energy. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalEnergyMeasurementTrait.Feature#cumulativeEnergy()` The measurements are cumulative. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalEnergyMeasurementTrait.Feature#exportedEnergy()` Supports the measurement of energy provided by the server. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalEnergyMeasurementTrait.Feature#importedEnergy()` Supports the measurement of energy imported by the server. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalEnergyMeasurementTrait.Feature#periodicEnergy()` The measurements are periodic. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalEnergyMeasurementTrait.Feature#reactiveEnergy()` Measurements report reactive energy. |

## Public constructors

### Feature

```
Feature(
    importedEnergy: Boolean = false,
    exportedEnergy: Boolean = false,
    cumulativeEnergy: Boolean = false,
    periodicEnergy: Boolean = false,
    apparentEnergy: Boolean = false,
    reactiveEnergy: Boolean = false
)
```

Creates the Feature data class.

## Public functions

### toRaw

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

Convert this ClusterBitmap to raw (bytes) format

## Public properties

### apparentEnergy

```
val apparentEnergy: Boolean
```

Measurements report apparent energy.

### cumulativeEnergy

```
val cumulativeEnergy: Boolean
```

The measurements are cumulative.

### exportedEnergy

```
val exportedEnergy: Boolean
```

Supports the measurement of energy provided by the server.

### importedEnergy

```
val importedEnergy: Boolean
```

Supports the measurement of energy imported by the server.

### periodicEnergy

```
val periodicEnergy: Boolean
```

The measurements are periodic.

### reactiveEnergy

```
val reactiveEnergy: Boolean
```

Measurements report reactive energy.