# DeviceEnergyManagementModeTrait.ModeTag


```
enum DeviceEnergyManagementModeTrait.ModeTag : 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.DeviceEnergyManagementModeTrait.ModeTag](https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DeviceEnergyManagementModeTrait.ModeTag) |

*** ** * ** ***

Descriptive names of device energy management modes.

## Summary

| ### Enum Values |
|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DeviceEnergyManagementModeTrait.ModeTag#Auto` | Decides which options, features, and setting values to use. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DeviceEnergyManagementModeTrait.ModeTag#Day` | Provides a mode suitable for use during day time. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DeviceEnergyManagementModeTrait.ModeTag#DeviceOptimization` | Device optimization mode. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DeviceEnergyManagementModeTrait.ModeTag#GridOptimization` | Grid optimization mode. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DeviceEnergyManagementModeTrait.ModeTag#LocalOptimization` | Local optimization mode. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DeviceEnergyManagementModeTrait.ModeTag#LowEnergy` | Optimizes for lower energy usage. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DeviceEnergyManagementModeTrait.ModeTag#LowNoise` | Optimizes for low noise operation. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DeviceEnergyManagementModeTrait.ModeTag#Max` | Uses the highest available setting value. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DeviceEnergyManagementModeTrait.ModeTag#Min` | Uses the lowest available setting value. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DeviceEnergyManagementModeTrait.ModeTag#Night` | Provides a mode suitable for use during night time. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DeviceEnergyManagementModeTrait.ModeTag#NoOptimization` | No optimization mode. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DeviceEnergyManagementModeTrait.ModeTag#Quick` | Optimizes for faster completion. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DeviceEnergyManagementModeTrait.ModeTag#Quiet` | Operates silently or barely audibly. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DeviceEnergyManagementModeTrait.ModeTag#UnknownValue` | The enum value is out of range. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DeviceEnergyManagementModeTrait.ModeTag#Vacation` | Provides a mode suitable for use during vacations or other extended absences. |

| ### 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/DeviceEnergyManagementModeTrait.ModeTag#toDescription()()` |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DeviceEnergyManagementModeTrait.ModeTag` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DeviceEnergyManagementModeTrait.ModeTag#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/DeviceEnergyManagementModeTrait.ModeTag>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DeviceEnergyManagementModeTrait.ModeTag#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/DeviceEnergyManagementModeTrait.ModeTag>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DeviceEnergyManagementModeTrait.ModeTag#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/DeviceEnergyManagementModeTrait.ModeTag#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/DeviceEnergyManagementModeTrait.ModeTag#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/DeviceEnergyManagementModeTrait.ModeTag#value()` Integer identifier of the enum value per the Matter Application Clusters spec, e.g. 1 for Door Lock Cluster AlarmCodeEnum.LockFactoryReset. |

## Enum Values

### Auto

```
val DeviceEnergyManagementModeTrait.ModeTag.Auto: DeviceEnergyManagementModeTrait.ModeTag
```

Decides which options, features, and setting values to use.

### Day

```
val DeviceEnergyManagementModeTrait.ModeTag.Day: DeviceEnergyManagementModeTrait.ModeTag
```

Provides a mode suitable for use during day time.

### DeviceOptimization

```
val DeviceEnergyManagementModeTrait.ModeTag.DeviceOptimization: DeviceEnergyManagementModeTrait.ModeTag
```

Device optimization mode.

### GridOptimization

```
val DeviceEnergyManagementModeTrait.ModeTag.GridOptimization: DeviceEnergyManagementModeTrait.ModeTag
```

Grid optimization mode.

### LocalOptimization

```
val DeviceEnergyManagementModeTrait.ModeTag.LocalOptimization: DeviceEnergyManagementModeTrait.ModeTag
```

Local optimization mode.

### LowEnergy

```
val DeviceEnergyManagementModeTrait.ModeTag.LowEnergy: DeviceEnergyManagementModeTrait.ModeTag
```

Optimizes for lower energy usage.

### LowNoise

```
val DeviceEnergyManagementModeTrait.ModeTag.LowNoise: DeviceEnergyManagementModeTrait.ModeTag
```

Optimizes for low noise operation.

### Max

```
val DeviceEnergyManagementModeTrait.ModeTag.Max: DeviceEnergyManagementModeTrait.ModeTag
```

Uses the highest available setting value.

### Min

```
val DeviceEnergyManagementModeTrait.ModeTag.Min: DeviceEnergyManagementModeTrait.ModeTag
```

Uses the lowest available setting value.

### Night

```
val DeviceEnergyManagementModeTrait.ModeTag.Night: DeviceEnergyManagementModeTrait.ModeTag
```

Provides a mode suitable for use during night time.

### NoOptimization

```
val DeviceEnergyManagementModeTrait.ModeTag.NoOptimization: DeviceEnergyManagementModeTrait.ModeTag
```

No optimization mode.

### Quick

```
val DeviceEnergyManagementModeTrait.ModeTag.Quick: DeviceEnergyManagementModeTrait.ModeTag
```

Optimizes for faster completion.

### Quiet

```
val DeviceEnergyManagementModeTrait.ModeTag.Quiet: DeviceEnergyManagementModeTrait.ModeTag
```

Operates silently or barely audibly.

### UnknownValue

```
val DeviceEnergyManagementModeTrait.ModeTag.UnknownValue: DeviceEnergyManagementModeTrait.ModeTag
```

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.

### Vacation

```
val DeviceEnergyManagementModeTrait.ModeTag.Vacation: DeviceEnergyManagementModeTrait.ModeTag
```

Provides a mode suitable for use during vacations or other extended absences.

## Public functions

### toDescription

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

### valueOf

```
fun valueOf(value: String): DeviceEnergyManagementModeTrait.ModeTag
```

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<DeviceEnergyManagementModeTrait.ModeTag>
```

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<DeviceEnergyManagementModeTrait.ModeTag>
```

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.