# DeviceEnergyManagementTrait.EsaTypeEnum

# DeviceEnergyManagementTrait.EsaTypeEnum


```
enum DeviceEnergyManagementTrait.EsaTypeEnum : Enum, ClusterEnum
```

<br />

|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) |||
| ↳ | [kotlin.Enum](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html) ||
|   | ↳ | [com.google.home.matter.standard.DeviceEnergyManagementTrait.EsaTypeEnum](https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DeviceEnergyManagementTrait.EsaTypeEnum) |

*** ** * ** ***

The type of the ESA.

## Summary

| ### Enum Values |
|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DeviceEnergyManagementTrait.EsaTypeEnum#BatteryStorage` | Battery electric storage system. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DeviceEnergyManagementTrait.EsaTypeEnum#Cooking` | Cooking appliance. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DeviceEnergyManagementTrait.EsaTypeEnum#Dishwasher` | Dishwasher |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DeviceEnergyManagementTrait.EsaTypeEnum#EVSE` | EV supply equipment. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DeviceEnergyManagementTrait.EsaTypeEnum#FridgeFreezer` | Refrigerator or freezer. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DeviceEnergyManagementTrait.EsaTypeEnum#HomeWaterPump` | Home water pump. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DeviceEnergyManagementTrait.EsaTypeEnum#IrrigationWaterPump` | Irrigation water pump. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DeviceEnergyManagementTrait.EsaTypeEnum#Other` | Other appliance type. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DeviceEnergyManagementTrait.EsaTypeEnum#PoolPump` | Pool pump. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DeviceEnergyManagementTrait.EsaTypeEnum#SolarPV` | Solar PV inverter. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DeviceEnergyManagementTrait.EsaTypeEnum#SpaceCooling` | Space cooling appliance |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DeviceEnergyManagementTrait.EsaTypeEnum#SpaceHeating` | Space heating appliance. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DeviceEnergyManagementTrait.EsaTypeEnum#SpaceHeatingCooling` | Space heating and cooling appliance. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DeviceEnergyManagementTrait.EsaTypeEnum#UnknownValue` | The enum value is out of range. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DeviceEnergyManagementTrait.EsaTypeEnum#WashingMachine` | Washing machine. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DeviceEnergyManagementTrait.EsaTypeEnum#WaterHeating` | Water heating appliance. |

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/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.EsaTypeEnum#toDescription()()` |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DeviceEnergyManagementTrait.EsaTypeEnum` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DeviceEnergyManagementTrait.EsaTypeEnum#valueOf(kotlin.String)(value: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)` Returns the enum constant of this type with the specified name. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DeviceEnergyManagementTrait.EsaTypeEnum>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DeviceEnergyManagementTrait.EsaTypeEnum#values()()` Returns an array containing the constants of this enum type, in the order they're declared. |

| ### Public properties |
|---|---|
| `https://developers.home.google.com/reference/kotlin/kotlin/enums/EnumEntries<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DeviceEnergyManagementTrait.EsaTypeEnum>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DeviceEnergyManagementTrait.EsaTypeEnum#entries()` Returns a representation of an immutable list of all enum entries, in the order they're declared. |
| `open https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DeviceEnergyManagementTrait.EsaTypeEnum#traitId()` Trait identifier of the Matter Cluster that defines the enum Data Type. |
| `open https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DeviceEnergyManagementTrait.EsaTypeEnum#typeName()` Name of the Matter Data Type that the enum belongs to, in UpperCamelCase, e.g. "AlarmCodeEnum" from Door Lock Cluster. |
| `open https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-long/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DeviceEnergyManagementTrait.EsaTypeEnum#value()` Integer identifier of the enum value per the Matter Application Clusters spec, e.g. 1 for Door Lock Cluster AlarmCodeEnum.LockFactoryReset. |

## Enum Values

### BatteryStorage

```
val DeviceEnergyManagementTrait.EsaTypeEnum.BatteryStorage: DeviceEnergyManagementTrait.EsaTypeEnum
```

Battery electric storage system.

### Cooking

```
val DeviceEnergyManagementTrait.EsaTypeEnum.Cooking: DeviceEnergyManagementTrait.EsaTypeEnum
```

Cooking appliance.

### Dishwasher

```
val DeviceEnergyManagementTrait.EsaTypeEnum.Dishwasher: DeviceEnergyManagementTrait.EsaTypeEnum
```

Dishwasher

### EVSE

```
val DeviceEnergyManagementTrait.EsaTypeEnum.EVSE: DeviceEnergyManagementTrait.EsaTypeEnum
```

EV supply equipment.

### FridgeFreezer

```
val DeviceEnergyManagementTrait.EsaTypeEnum.FridgeFreezer: DeviceEnergyManagementTrait.EsaTypeEnum
```

Refrigerator or freezer.

### HomeWaterPump

```
val DeviceEnergyManagementTrait.EsaTypeEnum.HomeWaterPump: DeviceEnergyManagementTrait.EsaTypeEnum
```

Home water pump.

### IrrigationWaterPump

```
val DeviceEnergyManagementTrait.EsaTypeEnum.IrrigationWaterPump: DeviceEnergyManagementTrait.EsaTypeEnum
```

Irrigation water pump.

### Other

```
val DeviceEnergyManagementTrait.EsaTypeEnum.Other: DeviceEnergyManagementTrait.EsaTypeEnum
```

Other appliance type.

### PoolPump

```
val DeviceEnergyManagementTrait.EsaTypeEnum.PoolPump: DeviceEnergyManagementTrait.EsaTypeEnum
```

Pool pump.

### SolarPV

```
val DeviceEnergyManagementTrait.EsaTypeEnum.SolarPV: DeviceEnergyManagementTrait.EsaTypeEnum
```

Solar PV inverter.

### SpaceCooling

```
val DeviceEnergyManagementTrait.EsaTypeEnum.SpaceCooling: DeviceEnergyManagementTrait.EsaTypeEnum
```

Space cooling appliance

### SpaceHeating

```
val DeviceEnergyManagementTrait.EsaTypeEnum.SpaceHeating: DeviceEnergyManagementTrait.EsaTypeEnum
```

Space heating appliance.

### SpaceHeatingCooling

```
val DeviceEnergyManagementTrait.EsaTypeEnum.SpaceHeatingCooling: DeviceEnergyManagementTrait.EsaTypeEnum
```

Space heating and cooling appliance.

### UnknownValue

```
val DeviceEnergyManagementTrait.EsaTypeEnum.UnknownValue: DeviceEnergyManagementTrait.EsaTypeEnum
```

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.

### WashingMachine

```
val DeviceEnergyManagementTrait.EsaTypeEnum.WashingMachine: DeviceEnergyManagementTrait.EsaTypeEnum
```

Washing machine.

### WaterHeating

```
val DeviceEnergyManagementTrait.EsaTypeEnum.WaterHeating: DeviceEnergyManagementTrait.EsaTypeEnum
```

Water heating appliance.

## Public functions

### toDescription

```
@HomeExperimentalGenericApi
fun toDescription(): String
```

### valueOf

```
fun valueOf(value: String): DeviceEnergyManagementTrait.EsaTypeEnum
```

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 |
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-illegal-argument-exception/index.html` | if this enum type has no constant with the specified name |

### values

```
fun values(): Array<DeviceEnergyManagementTrait.EsaTypeEnum>
```

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

### entries

```
val entries: EnumEntries<DeviceEnergyManagementTrait.EsaTypeEnum>
```

Returns a representation of an immutable list of all enum entries, in the order they're declared.

This method may be used to iterate over the enum entries.

### traitId

```
open val traitId: String
```

Trait identifier of the Matter Cluster that defines the enum Data Type. Refer to `https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/ClusterId#traitId()` for the format.

### typeName

```
open val typeName: String
```

Name of the Matter Data Type that the enum belongs to, in UpperCamelCase, e.g. "AlarmCodeEnum" from Door Lock Cluster.

### value

```
open val value: ULong
```

Integer identifier of the enum value per the Matter Application Clusters spec, e.g. 1 for Door Lock Cluster AlarmCodeEnum.LockFactoryReset.