# ElectricalPowerMeasurementTrait.Feature

# ElectricalPowerMeasurementTrait.Feature


```
data class ElectricalPowerMeasurementTrait.Feature
```

<br />

*** ** * ** ***

ElectricalPowerMeasurement Trait FeatureMap.

## Summary

| ### Public constructors |
|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalPowerMeasurementTrait.Feature#Feature(kotlin.Boolean,kotlin.Boolean,kotlin.Boolean,kotlin.Boolean,kotlin.Boolean)( directCurrent: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html, alternatingCurrent: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html, polyphasePower: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html, harmonics: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html, powerQuality: 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/ElectricalPowerMeasurementTrait.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/ElectricalPowerMeasurementTrait.Feature#alternatingCurrent()` Supports the measurement of an alternating current. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalPowerMeasurementTrait.Feature#directCurrent()` Supports the measurement of a direct current. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalPowerMeasurementTrait.Feature#harmonics()` Supports the measurement of the harmonics of an alternating current. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalPowerMeasurementTrait.Feature#polyphasePower()` Supports the measurement of polyphase power. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalPowerMeasurementTrait.Feature#powerQuality()` Supports the measurement of the harmonic phases of an alternating current. |

## Public constructors

### Feature

```
Feature(
    directCurrent: Boolean = false,
    alternatingCurrent: Boolean = false,
    polyphasePower: Boolean = false,
    harmonics: Boolean = false,
    powerQuality: Boolean = false
)
```

Creates the Feature data class.

## Public functions

### toRaw

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

Convert this ClusterBitmap to raw (bytes) format

## Public properties

### alternatingCurrent

```
val alternatingCurrent: Boolean
```

Supports the measurement of an alternating current.

### directCurrent

```
val directCurrent: Boolean
```

Supports the measurement of a direct current.

### harmonics

```
val harmonics: Boolean
```

Supports the measurement of the harmonics of an alternating current.

### polyphasePower

```
val polyphasePower: Boolean
```

Supports the measurement of polyphase power.

### powerQuality

```
val powerQuality: Boolean
```

Supports the measurement of the harmonic phases of an alternating current.