# LaundryWasherControlsTrait.Attributes

# LaundryWasherControlsTrait.Attributes


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

<br />

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

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

*** ** * ** ***

Attributes for the LaundryWasherControls 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/LaundryWasherControlsTrait.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/LaundryWasherControlsTrait.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/LaundryWasherControlsTrait.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/LaundryWasherControlsTrait.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/LaundryWasherControlsTrait.Attributes#clusterRevision()` The revision of the server cluster specification supported by the cluster instance. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/LaundryWasherControlsTrait.Feature` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/LaundryWasherControlsTrait.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/LaundryWasherControlsTrait.Attributes#generatedCommandList()` A list of server-generated commands (server to client) which are supported by this cluster server instance. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/LaundryWasherControlsTrait.NumberOfRinsesEnum?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/LaundryWasherControlsTrait.Attributes#numberOfRinses()` The number of times that a rinse cycle shall be performed on a device for the current mode of operation. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/LaundryWasherControlsTrait.Attributes#spinSpeedCurrent()` The index of the currently selected spin speed. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html>?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/LaundryWasherControlsTrait.Attributes#spinSpeeds()` The list of spin speeds available, as determined by the manufacturer, for the appliance in the currently selected mode. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/LaundryWasherControlsTrait.NumberOfRinsesEnum>?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/LaundryWasherControlsTrait.Attributes#supportedRinses()` The number of rinses allowed for a specific mode. |

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

### featureMap

```
val featureMap: LaundryWasherControlsTrait.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.

### numberOfRinses

```
val numberOfRinses: LaundryWasherControlsTrait.NumberOfRinsesEnum?
```

The number of times that a rinse cycle shall be performed on a device for the current mode of operation. The client can change this value if desired.

**Access type:** Write

### spinSpeedCurrent

```
val spinSpeedCurrent: UByte?
```

The index of the currently selected spin speed. This attribute is an integer between 0 and the number of entries in `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/LaundryWasherControlsTrait.Attributes#spinSpeeds()` minus 1.

**Access type:** Write

### spinSpeeds

```
val spinSpeeds: List<String>?
```

The list of spin speeds available, as determined by the manufacturer, for the appliance in the currently selected mode.

**Access type:** Read

### supportedRinses

```
val supportedRinses: List<LaundryWasherControlsTrait.NumberOfRinsesEnum>?
```

The number of rinses allowed for a specific mode. The value of this attribute may change at runtime based on the currently selected mode.

**Access type:** Read