# EnergyEvse

# EnergyEvse


```
@Generated(value = ["GoogleHomePlatformCodegen"])
interface EnergyEvse : EnergyEvseTrait.Attributes, MatterTrait, Updatable, EnergyEvseCommands
```

<br />

*** ** * ** ***

API for the EnergyEvse trait. This trait is for devices that provide electric vehicle supply equipment (EVSE) functionality.

## Summary

| ### Nested types |
|---|
| `enum https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvse.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. |
| `enum https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvse.Command : https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html` Descriptor enum for this trait's commands. |
| `class https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvse.EnergyTransferStartedEvent : https://developers.home.google.com/reference/kotlin/com/google/home/Event, https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvseTrait.EnergyTransferStarted` |
| `enum https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvse.EnergyTransferStartedEvent.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. |
| `class https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvse.EnergyTransferStoppedEvent : https://developers.home.google.com/reference/kotlin/com/google/home/Event, https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvseTrait.EnergyTransferStopped` |
| `enum https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvse.EnergyTransferStoppedEvent.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. |
| `class https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvse.EvConnectedEvent : https://developers.home.google.com/reference/kotlin/com/google/home/Event, https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvseTrait.EvConnected` |
| `enum https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvse.EvConnectedEvent.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. |
| `class https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvse.EvNotDetectedEvent : https://developers.home.google.com/reference/kotlin/com/google/home/Event, https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvseTrait.EvNotDetected` |
| `enum https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvse.EvNotDetectedEvent.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. |
| `class https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvse.FaultEvent : https://developers.home.google.com/reference/kotlin/com/google/home/Event, https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvseTrait.Fault` |
| `enum https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvse.FaultEvent.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. |
| `class https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvse.RfidEvent : https://developers.home.google.com/reference/kotlin/com/google/home/Event, https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvseTrait.Rfid` |
| `enum https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvse.RfidEvent.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/EnergyEvse#supports(com.google.home.matter.standard.EnergyEvse.Attribute)(attribute: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvse.Attribute)` |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvse#supports(com.google.home.matter.standard.EnergyEvse.Command)(command: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvse.Command)` |

| ### 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/EnergyEvse>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvse#factory()` |

| ### Inherited functions |
|---|
| From [com.google.home.matter.standard.EnergyEvseCommands](https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvseCommands) |---|---| | `suspend https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvseCommands#clearTargets()()` Allows a client to clear all stored charging targets. | | `https://developers.home.google.com/reference/kotlin/com/google/home/BatchableCommand<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvseCommands#clearTargetsBatchable()()` The batchable version of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvseCommands#clearTargets()` command. | | `suspend https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvseCommands#disable()()` Disables the EVSE from charging and discharging. | | `https://developers.home.google.com/reference/kotlin/com/google/home/BatchableCommand<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvseCommands#disableBatchable()()` The batchable version of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvseCommands#disable()` command. | | `suspend https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvseCommands#enableCharging(kotlin.UInt,kotlin.Long,kotlin.Long)( chargingEnabledUntil: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html?, minimumChargeCurrent: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html, maximumChargeCurrent: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html )` Enables the EVSE to charge an electric vehicle. | | `https://developers.home.google.com/reference/kotlin/com/google/home/BatchableCommand<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvseCommands#enableChargingBatchable(kotlin.UInt,kotlin.Long,kotlin.Long)( chargingEnabledUntil: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html?, minimumChargeCurrent: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html, maximumChargeCurrent: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html )` The batchable version of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvseCommands#enableCharging(kotlin.UInt,kotlin.Long,kotlin.Long)` command. | | `suspend https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvseCommands#enableDischarging(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 )` Enables the EVSE to discharge an electric vehicle. | | `https://developers.home.google.com/reference/kotlin/com/google/home/BatchableCommand<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvseCommands#enableDischargingBatchable(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 )` The batchable version of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvseCommands#enableDischarging(kotlin.UInt,kotlin.Long)` command. | | `suspend https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvseTrait.GetTargetsCommand.Response` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvseCommands#getTargets()()` Allows a client to retrieve the current set of charging targets. | | `https://developers.home.google.com/reference/kotlin/com/google/home/BatchableCommand<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvseTrait.GetTargetsCommand.Response>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvseCommands#getTargetsBatchable()()` The batchable version of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvseCommands#getTargets()` command. | | `suspend https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvseCommands#setTargets(kotlin.collections.List)( chargingTargetSchedules: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvseTrait.ChargingTargetScheduleStruct> )` Allows a client to set user-specified charging targets. | | `https://developers.home.google.com/reference/kotlin/com/google/home/BatchableCommand<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvseCommands#setTargetsBatchable(kotlin.collections.List)( chargingTargetSchedules: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvseTrait.ChargingTargetScheduleStruct> )` The batchable version of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvseCommands#setTargets(kotlin.collections.List)` command. | | `suspend https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvseCommands#startDiagnostics()()` Puts the EVSE into self-diagnostics mode as long as the `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvseTrait.Attributes#supplyState()` attribute is in the `Disabled` state when the command is sent. | | `https://developers.home.google.com/reference/kotlin/com/google/home/BatchableCommand<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvseCommands#startDiagnosticsBatchable()()` The batchable version of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvseCommands#startDiagnostics()` command. | |
| From [com.google.home.matter.standard.EnergyEvseTrait.Attributes](https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvseTrait.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/EnergyEvseTrait.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/EnergyEvseTrait.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()()` | |
| From [com.google.home.Updatable](https://developers.home.google.com/reference/kotlin/com/google/home/Updatable) |---|---| | `suspend https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvse` | `https://developers.home.google.com/reference/kotlin/com/google/home/Updatable#update(kotlin.Function1,kotlin.Function1)(optimisticReturn: (https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvse) -> https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html, init: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvseTrait.MutableAttributes.() -> https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)` Creates a mutable copy of an object and calls the given function to mutate it, then saves it and returns a new immutable copy with the updated state. | |

| ### Inherited properties |
|---|
| From [com.google.home.matter.standard.EnergyEvseTrait.Attributes](https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvseTrait.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/EnergyEvseTrait.Attributes#acceptedCommandList()` A list of client-generated commands which are supported by this cluster server 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/EnergyEvseTrait.Attributes#approximateEvEfficiency()` The vehicle efficiency rating for a connected vehicle. | | `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/EnergyEvseTrait.Attributes#attributeList()` A list of the attribute IDs of the attributes supported by the cluster instance. | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvseTrait.Attributes#batteryCapacity()` The capacity of the electric vehicle battery in milliwatt hours. | | `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.Attributes#chargingEnabledUntil()` The time, in UTC, when the EVSE automatically stops current flow to the electric vehicle. | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvseTrait.Attributes#circuitCapacity()` The capacity that the EVSE circuit can provide. | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvseTrait.Attributes#clusterRevision()` The revision of the server cluster specification supported by the cluster instance. | | `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.Attributes#dischargingEnabledUntil()` The time, in UTC, when the EVSE automatically stops current flow from the electric vehicle. | | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvseTrait.FaultStateEnum?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvseTrait.Attributes#faultState()` The type of fault detected by the EVSE. | | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvseTrait.Feature` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvseTrait.Attributes#featureMap()` Whether the server supports zero or more optional cluster features. | | `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/EnergyEvseTrait.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/-long/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvseTrait.Attributes#maximumChargeCurrent()` The maximum current, in milliamps, that the EVSE can deliver to the electric vehicle. | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvseTrait.Attributes#maximumDischargeCurrent()` The maximum current, in milliamps, that the EVSE can receive from the electric vehicle. | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvseTrait.Attributes#minimumChargeCurrent()` The minimum current, in milliamps, that the EVSE can deliver to the electric vehicle. | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvseTrait.Attributes#nextChargeRequiredEnergy()` The amount of energy, in megawatt hours, that the EVSE will attempt to add to the vehicle in the next charging target. | | `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.Attributes#nextChargeStartTime()` The time, in UTC, when the EVSE is scheduled to start the next charge based on the charging preferences. | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvseTrait.Attributes#nextChargeTargetSoC()` The target state of charge (SoC), in percent, that the EVSE will attempt to reach when the vehicle is next charged. | | `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.Attributes#nextChargeTargetTime()` The time, in UTC, when the EVSE should complete the next scheduled charge based on the charging preferences. | | `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.Attributes#randomizationDelayWindow()` The time of a random window, in seconds, over which the EVSE randomizes the start of a charging 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/EnergyEvseTrait.Attributes#sessionDuration()` The duration, in seconds, for the current or most recent charging session. | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvseTrait.Attributes#sessionEnergyCharged()` The energy, in milliwatt hours, delivered by the EVSE to the electric vehicle for the current or most recent charging session. | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvseTrait.Attributes#sessionEnergyDischarged()` The energy, in milliwatt hours, received by the EVSE from the electric vehicle for the current or most recent charging 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/EnergyEvseTrait.Attributes#sessionId()` A unique identifier for the current or most recent session. | | `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.Attributes#state()` The current status of the EVSE. | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvseTrait.Attributes#stateOfCharge()` The state of charge (SOC) of the electric vehicle battery in one-percent increments. | | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvseTrait.SupplyStateEnum?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvseTrait.Attributes#supplyState()` Indicates whether the electric vehicle is currently allowed to charge from the EVSE or discharge to the EVSE. | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvseTrait.Attributes#userMaximumChargeCurrent()` The maximum current, in milliamps, that the consumer can set as a preference to further reduce the charging rate. | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvseTrait.Attributes#vehicleId()` The vehicle ID read by the EVSE via ISO-15118 using the Plug \& Charge (PnC) feature, if the EVSE supports this capability. | |
| 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: EnergyEvse.Attribute): Boolean
```

### supports

```
fun supports(command: EnergyEvse.Command): Boolean
```

## Public properties

### factory

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