EnergyEvseTrait.StateEnum

enum EnergyEvseTrait.StateEnum : Enum, ClusterEnum


The state of the electric vehicle.

Summary

Enum Values

Fault

The EVSE has detected a fault.

NotPluggedIn

The electric vehicle is not plugged in.

PluggedInCharging

The electric vehicle is plugged in, charging is in progress, and current is flowing.

PluggedInDemand

The electric vehicle is plugged in and is demanding current, but the EVSE is not allowing current to flow.

PluggedInDischarging

The electric vehicle is plugged in, discharging is in progress, and current is flowing.

PluggedInNoDemand

The electric vehicle is plugged in and is not demanding current.

SessionEnding

The electric vehicle is transitioning from any plugged-in state to NotPluggedIn.

UnknownValue

The enum value is out of range.

Public functions

EnergyEvseTrait.StateEnum
valueOf(value: String)

Returns the enum constant of this type with the specified name.

Array<EnergyEvseTrait.StateEnum>

Returns an array containing the constants of this enum type, in the order they're declared.

Public properties

open String
open String
open ULong

Enum Values

Fault

val EnergyEvseTrait.StateEnum.FaultEnergyEvseTrait.StateEnum

The EVSE has detected a fault. See the faultState attribute for more information.

NotPluggedIn

val EnergyEvseTrait.StateEnum.NotPluggedInEnergyEvseTrait.StateEnum

The electric vehicle is not plugged in.

PluggedInCharging

val EnergyEvseTrait.StateEnum.PluggedInChargingEnergyEvseTrait.StateEnum

The electric vehicle is plugged in, charging is in progress, and current is flowing.

PluggedInDemand

val EnergyEvseTrait.StateEnum.PluggedInDemandEnergyEvseTrait.StateEnum

The electric vehicle is plugged in and is demanding current, but the EVSE is not allowing current to flow.

PluggedInDischarging

val EnergyEvseTrait.StateEnum.PluggedInDischargingEnergyEvseTrait.StateEnum

The electric vehicle is plugged in, discharging is in progress, and current is flowing.

PluggedInNoDemand

val EnergyEvseTrait.StateEnum.PluggedInNoDemandEnergyEvseTrait.StateEnum

The electric vehicle is plugged in and is not demanding current.

SessionEnding

val EnergyEvseTrait.StateEnum.SessionEndingEnergyEvseTrait.StateEnum

The electric vehicle is transitioning from any plugged-in state to NotPluggedIn.

UnknownValue

val EnergyEvseTrait.StateEnum.UnknownValueEnergyEvseTrait.StateEnum

The enum value is out of range. For example, a newer Matter cluster definition may support enum values not yet supported by the Home APIs.

Public functions

valueOf

fun valueOf(value: String): EnergyEvseTrait.StateEnum

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Throws
kotlin.IllegalArgumentException

if this enum type has no constant with the specified name

values

fun values(): Array<EnergyEvseTrait.StateEnum>

Returns an array containing the constants of this enum type, in the order they're declared.

This method may be used to iterate over the constants.

Public properties

traitId

open val traitIdString

typeName

open val typeNameString

value

open val valueULong