# EnergyEvseTrait.EnableDischargingCommand.Request

# EnergyEvseTrait.EnableDischargingCommand.Request


```
class EnergyEvseTrait.EnableDischargingCommand.Request : ClusterStruct
```

<br />

*** ** * ** ***

The request payload for the EnableDischarging command.

## Summary

| ### Nested types |
|---|
| `@https://developers.home.google.com/reference/kotlin/com/google/home/annotation/HomeExperimentalGenericApi enum https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvseTrait.EnableDischargingCommand.Request.CommandFields : 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 command's request fields. |

| ### Public constructors |
|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvseTrait.EnableDischargingCommand.Request#Request(kotlin.UInt,kotlin.Long)(dischargingEnabledUntil: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html?, maximumDischargeCurrent: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)` Creates a request payload for the EnableDischarging command. |

| ### 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.EnableDischargingCommand.Request#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.EnableDischargingCommand.Request#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/-u-int/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvseTrait.EnableDischargingCommand.Request#dischargingEnabledUntil()` The time, in UTC, when discharging becomes disabled. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvseTrait.EnableDischargingCommand.Request#maximumDischargeCurrent()` The maximum current, in milliamps, that the EVSE can receive from the electric vehicle. |

## Public constructors

### Request

```
Request(
    dischargingEnabledUntil: UInt? = null,
    maximumDischargeCurrent: Long = 0
)
```

Creates a request payload for the EnableDischarging command.

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

### dischargingEnabledUntil

```
val dischargingEnabledUntil: UInt?
```

The time, in UTC, when discharging becomes disabled. If the value is in the past, discharging is disabled. If the value is null, discharging is permanently enabled.

### maximumDischargeCurrent

```
val maximumDischargeCurrent: Long
```

The maximum current, in milliamps, that the EVSE can receive from the electric vehicle.