# ModeSelectTrait.Attributes

# ModeSelectTrait.Attributes


```
@Generated(value = ["GoogleHomePlatformCodegen"])
interface ModeSelectTrait.Attributes : ClusterStruct
```

<br />

Known direct subclasses [ModeSelect](https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ModeSelect)

|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ModeSelect` | API for the ModeSelect trait. |

*** ** * ** ***

Attributes for the ModeSelect cluster.

## Summary

| ### 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/ModeSelectTrait.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/ModeSelectTrait.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. |

| ### Public properties |
|---|---|
| `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/ModeSelectTrait.Attributes#acceptedCommandList()` A list of client-generated commands which are supported by this cluster server instance. |
| `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/ModeSelectTrait.Attributes#attributeList()` A list of the attribute IDs of the attributes supported by the cluster 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/ModeSelectTrait.Attributes#clusterRevision()` The revision of the server cluster specification supported by the cluster instance. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ModeSelectTrait.Attributes#currentMode()` The current mode of a cluster instance on a device. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ModeSelectTrait.Attributes#description()` Describes the purpose of the mode in this cluster instance. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ModeSelectTrait.Feature` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ModeSelectTrait.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/ModeSelectTrait.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/-u-byte/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ModeSelectTrait.Attributes#onMode()` The value of the `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ModeSelectTrait.Attributes#currentMode()` that depends on the state of an `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OnOff` cluster on the same endpoint. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ModeSelectTrait.Attributes#standardNamespace()` The single standard namespace for any standard semantic tag value supported in this or any other cluster instance with the same namespace. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ModeSelectTrait.Attributes#startUpMode()` The desired startup mode for the device when it is supplied with power. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ModeSelectTrait.ModeOptionStruct>?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ModeSelectTrait.Attributes#supportedModes()` The list of supported modes for the cluster instance. |

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

### acceptedCommandList

```
val acceptedCommandList: List<UInt>
```

A list of client-generated commands which are supported by this cluster server instance.

### attributeList

```
val attributeList: List<UInt>
```

A list of the attribute IDs of the attributes supported by the cluster instance.

### clusterRevision

```
val clusterRevision: UShort
```

The revision of the server cluster specification supported by the cluster instance.

### currentMode

```
val currentMode: UByte?
```

The current mode of a cluster instance on a device. This must be one of the values in `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ModeSelectTrait.ModeOptionStruct`.

**Access type:** Read

### description

```
val description: String?
```

Describes the purpose of the mode in this cluster instance.

**Access type:** Read

### featureMap

```
val featureMap: ModeSelectTrait.Feature
```

Whether the server supports zero or more optional cluster features. A cluster feature is a set of cluster elements that are mandatory or optional for a defined feature of the cluster. If a cluster feature is supported by the cluster instance, then the corresponding bit is set to 1, otherwise the bit is set to 0 (zero).

### generatedCommandList

```
val generatedCommandList: List<UInt>
```

A list of server-generated commands (server to client) which are supported by this cluster server instance.

### onMode

```
val onMode: UByte?
```

The value of the `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ModeSelectTrait.Attributes#currentMode()` that depends on the state of an `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OnOff` cluster on the same endpoint. If the `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OnOff` cluster changes its `onOff` attribute from `off` to `on`, the `currentMode` is changed to this value. Enabled by the `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ModeSelectTrait.Feature#onOff()` feature.

**Access type:** Write

### standardNamespace

```
val standardNamespace: UShort?
```

The single standard namespace for any standard semantic tag value supported in this or any other cluster instance with the same namespace. A null value means there is no namespace for this cluster instance, and that there are no semantic tags.

**Access type:** Read

### startUpMode

```
val startUpMode: UByte?
```

The desired startup mode for the device when it is supplied with power.

**Access type:** Write

### supportedModes

```
val supportedModes: List<ModeSelectTrait.ModeOptionStruct>?
```

The list of supported modes for the cluster instance.

**Access type:** Read