# DeviceEnergyManagementTrait.PowerAdjustEnd

# DeviceEnergyManagementTrait.PowerAdjustEnd


```
interface DeviceEnergyManagementTrait.PowerAdjustEnd : ClusterStruct
```

<br />

Known direct subclasses [DeviceEnergyManagement.PowerAdjustEndEvent](https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DeviceEnergyManagement.PowerAdjustEndEvent)

|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DeviceEnergyManagement.PowerAdjustEndEvent` |   |

*** ** * ** ***

Indicates that the ESA has ended the power adjustment session.

## Summary

| ### Public functions |
|---|---|
| `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/DeviceEnergyManagementTrait.PowerAdjustEnd#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/DeviceEnergyManagementTrait.PowerAdjustEnd#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. |

| ### Public properties |
|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DeviceEnergyManagementTrait.CauseEnum?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DeviceEnergyManagementTrait.PowerAdjustEnd#cause()` The cause of the end of the power adjustment session. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DeviceEnergyManagementTrait.PowerAdjustEnd#duration()` The duration, in seconds, of the power adjustment session. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DeviceEnergyManagementTrait.PowerAdjustEnd#energyUse()` The amount of energy, in megawatt hours, that the ESA used during the power adjustment session. |

## Public functions

### getDescriptor

```
@HomeExperimentalGenericApi
open fun getDescriptor(): StructDescriptor
```

Returns the descriptor for the struct.

### getFieldValueById

```
@HomeExperimentalGenericApi
open fun getFieldValueById(tagId: UInt): Any?
```

Returns the value of the field for the given tag ID.

## Public properties

### cause

```
val cause: DeviceEnergyManagementTrait.CauseEnum?
```

The cause of the end of the power adjustment session.

### duration

```
val duration: UInt?
```

The duration, in seconds, of the power adjustment session.

### energyUse

```
val energyUse: Long?
```

The amount of energy, in megawatt hours, that the ESA used during the power adjustment session.