# ElectricalPowerMeasurement

# ElectricalPowerMeasurement


```
@Generated(value = ["GoogleHomePlatformCodegen"])
interface ElectricalPowerMeasurement : ElectricalPowerMeasurementTrait.Attributes, MatterTrait
```

<br />

*** ** * ** ***

API for the ElectricalPowerMeasurement trait. This trait provides a mechanism for querying data about electrical power as measured by the server.

## Summary

| ### Nested types |
|---|
| `enum https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalPowerMeasurement.Attribute : https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html, https://developers.home.google.com/reference/kotlin/com/google/home/Field` Descriptor enum for this trait's attributes. |
| `class https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalPowerMeasurement.MeasurementPeriodRangesEvent : https://developers.home.google.com/reference/kotlin/com/google/home/Event, https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalPowerMeasurementTrait.MeasurementPeriodRanges` |
| `enum https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalPowerMeasurement.MeasurementPeriodRangesEvent.EventFields : https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html, https://developers.home.google.com/reference/kotlin/com/google/home/Field` Descriptor enum for this event's fields. |

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalPowerMeasurement#supports(com.google.home.matter.standard.ElectricalPowerMeasurement.Attribute)(attribute: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalPowerMeasurement.Attribute)` |

| ### Public properties |
|---|---|
| `open https://developers.home.google.com/reference/kotlin/com/google/home/TraitFactory<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalPowerMeasurement>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalPowerMeasurement#factory()` |

| ### Inherited functions |
|---|
| From [com.google.home.matter.standard.ElectricalPowerMeasurementTrait.Attributes](https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalPowerMeasurementTrait.Attributes) |---|---| | `open https://developers.home.google.com/reference/kotlin/com/google/home/StructDescriptor` | `@https://developers.home.google.com/reference/kotlin/com/google/home/annotation/HomeExperimentalGenericApi https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalPowerMeasurementTrait.Attributes#getDescriptor()()` Returns the descriptor for the struct. | | `open https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html?` | `@https://developers.home.google.com/reference/kotlin/com/google/home/annotation/HomeExperimentalGenericApi https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalPowerMeasurementTrait.Attributes#getFieldValueById(kotlin.UInt)(tagId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html)` Returns the value of the field for the given tag ID. | |
| From [com.google.home.TraitStateInvalidation](https://developers.home.google.com/reference/kotlin/com/google/home/TraitStateInvalidation) |---|---| | `suspend https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/TraitStateInvalidation#forceRead()()` | |

| ### Inherited properties |
|---|
| From [com.google.home.matter.standard.ElectricalPowerMeasurementTrait.Attributes](https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalPowerMeasurementTrait.Attributes) |---|---| | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalPowerMeasurementTrait.Attributes#acceptedCommandList()` A list of client-generated commands which are supported by this cluster server instance. | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalPowerMeasurementTrait.MeasurementAccuracyStruct>?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalPowerMeasurementTrait.Attributes#accuracy()` List of accuracy specifications for the measurement types supported by the server. | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalPowerMeasurementTrait.Attributes#activeCurrent()` The most recent current reading in milliamps (mA). | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalPowerMeasurementTrait.Attributes#activePower()` The most recent power reading in milliwatts (mW). | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalPowerMeasurementTrait.Attributes#apparentCurrent()` The most recent `apparentCurrent` (square root sum of the squares of active and reactive currents) reading in milliamps (mA). | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalPowerMeasurementTrait.Attributes#apparentPower()` The most recent `apparentPower` reading in millivolt-amps (mVA). | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalPowerMeasurementTrait.Attributes#attributeList()` A list of the attribute IDs of the attributes supported by the cluster instance. | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalPowerMeasurementTrait.Attributes#clusterRevision()` The revision of the server cluster specification supported by the cluster instance. | | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalPowerMeasurementTrait.Feature` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalPowerMeasurementTrait.Attributes#featureMap()` Whether the server supports zero or more optional cluster features. | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalPowerMeasurementTrait.Attributes#frequency()` The most recent frequency reading in millihertz (mHz). | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalPowerMeasurementTrait.Attributes#generatedCommandList()` A list of server-generated commands (server to client) which are supported by this cluster server instance. | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalPowerMeasurementTrait.HarmonicMeasurementStruct>?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalPowerMeasurementTrait.Attributes#harmonicCurrents()` A list of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalPowerMeasurementTrait.HarmonicMeasurementStruct` values, where each value represents the harmonic current reading for the harmonic order as specified by `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalPowerMeasurementTrait.HarmonicMeasurementStruct#order()`. | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalPowerMeasurementTrait.HarmonicMeasurementStruct>?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalPowerMeasurementTrait.Attributes#harmonicPhases()` A list of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalPowerMeasurementTrait.HarmonicMeasurementStruct` values, where each value represents the harmonic phase reading for the harmonic order as specified by `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalPowerMeasurementTrait.HarmonicMeasurementStruct#order()`. | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalPowerMeasurementTrait.Attributes#neutralCurrent()` The most recent `neutralCurrent` reading in milliamps (mA). | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalPowerMeasurementTrait.Attributes#numberOfMeasurementTypes()` Maximum number of measurement types the server is capable of reporting. | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalPowerMeasurementTrait.Attributes#powerFactor()` The power factor ratio in +/- 1/100ths of a percent. | | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalPowerMeasurementTrait.PowerModeEnum?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalPowerMeasurementTrait.Attributes#powerMode()` The current mode of the server. | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalPowerMeasurementTrait.MeasurementRangeStruct>?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalPowerMeasurementTrait.Attributes#ranges()` The measured ranges for different measurement types. | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalPowerMeasurementTrait.Attributes#reactiveCurrent()` The most recent `reactiveCurrent` reading in milliamps (mA). | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalPowerMeasurementTrait.Attributes#reactivePower()` The most recent `reactivePower` reading in millivolt-amps reactive (mVAR). | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalPowerMeasurementTrait.Attributes#rmsCurrent()` Root mean squared current in milliamps (mA). | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalPowerMeasurementTrait.Attributes#rmsPower()` Root mean squared power in milliwatts (mW). | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalPowerMeasurementTrait.Attributes#rmsVoltage()` Root mean squared voltage in millivolts (mV). | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalPowerMeasurementTrait.Attributes#voltage()` Voltage in millivolts (mV). | |
| From [com.google.home.Trait](https://developers.home.google.com/reference/kotlin/com/google/home/Trait) |---|---| | `https://developers.home.google.com/reference/kotlin/com/google/home/Trait.TraitMetadata` | `https://developers.home.google.com/reference/kotlin/com/google/home/Trait#metadata()` | |

## Public functions

### supports

```
fun supports(attribute: ElectricalPowerMeasurement.Attribute): Boolean
```

## Public properties

### factory

```
open val factory: TraitFactory<ElectricalPowerMeasurement>
```