# EnergyEvseTrait.EnergyTransferStopped


```
interface EnergyEvseTrait.EnergyTransferStopped : ClusterStruct
```

<br />

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

|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvse.EnergyTransferStoppedEvent` |   |

*** ** * ** ***

Notification that the electric vehicle has stopped charging or discharging.

## 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/EnergyEvseTrait.EnergyTransferStopped#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/EnergyEvseTrait.EnergyTransferStopped#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://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvseTrait.EnergyTransferStopped#energyDischarged()` Indicates the amount of energy transferred from the EV to the EVSE since the previous `EnergyTransferStarted` event, in mWh. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvseTrait.EnergyTransferStopped#energyTransferred()` The amount of energy transferred between the electric vehicle and the EVSE since the previous `EnergyTransferStarted` event. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvseTrait.EnergyTransferStoppedReasonEnum?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvseTrait.EnergyTransferStopped#reason()` The reason for stopping the energy transfer. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvseTrait.EnergyTransferStopped#sessionId()` The value of the `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvseTrait.Attributes#sessionId()` attribute prior to the energy transfer stopping. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvseTrait.StateEnum?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvseTrait.EnergyTransferStopped#state()` The value of the `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvseTrait.Attributes#state()` attribute prior to the energy transfer stopping. |

## 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

### energyDischarged

```
val energyDischarged: Long?
```

Indicates the amount of energy transferred from the EV to the EVSE since the previous `EnergyTransferStarted` event, in mWh.

### energyTransferred

```
val energyTransferred: Long?
```

The amount of energy transferred between the electric vehicle and the EVSE since the previous `EnergyTransferStarted` event. This is a signed value in milliwatt hours. A positive value indicates the amount of energy transferred to the vehicle, and a negative value indicates energy transferred from the vehicle.

### reason

```
val reason: EnergyEvseTrait.EnergyTransferStoppedReasonEnum?
```

The reason for stopping the energy transfer.

### sessionId

```
val sessionId: UInt?
```

The value of the `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvseTrait.Attributes#sessionId()` attribute prior to the energy transfer stopping.

### state

```
val state: EnergyEvseTrait.StateEnum?
```

The value of the `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvseTrait.Attributes#state()` attribute prior to the energy transfer stopping.