# ClosureControlTrait.Attributes

# ClosureControlTrait.Attributes


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

<br />

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

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

*** ** * ** ***

Attributes for the ClosureControl 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/ClosureControlTrait.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/ClosureControlTrait.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/ClosureControlTrait.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/ClosureControlTrait.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/ClosureControlTrait.Attributes#clusterRevision()` The revision of the server cluster specification supported by the cluster instance. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureControlTrait.Attributes#countdownTime()` The estimated time remaining, in seconds, before the operation is complete. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureControlTrait.ClosureErrorEnum>?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureControlTrait.Attributes#currentErrorList()` A list of active errors. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureControlTrait.Feature` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureControlTrait.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/ClosureControlTrait.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/ClosureControlTrait.LatchControlModesBitmap?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureControlTrait.Attributes#latchControlModes()` Whether the latch mechanism can be latched or unlatched remotely. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureControlTrait.MainStateEnum?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureControlTrait.Attributes#mainState()` The current operational state of the closure. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureControlTrait.OverallCurrentStateStruct?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureControlTrait.Attributes#overallCurrentState()` The current `Position`, `Latch`, and `Speed` states, whichever are applicable based on the feature flags set. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureControlTrait.OverallTargetStateStruct?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureControlTrait.Attributes#overallTargetState()` The `TargetPosition`, `TargetLatch`, `TargetSpeed` values, whichever are applicable according to the feature flags set. |

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

### countdownTime

```
val countdownTime: UInt?
```

The estimated time remaining, in seconds, before the operation is complete. A value of 0 means that the operation has completed. A value of null means that there is no time defined until the operation is complete.

**Access type:** Read

### currentErrorList

```
val currentErrorList: List<ClosureControlTrait.ClosureErrorEnum>?
```

A list of active errors. An empty list indicates that there are no active errors.

**Access type:** Read

### featureMap

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

### latchControlModes

```
val latchControlModes: ClosureControlTrait.LatchControlModesBitmap?
```

Whether the latch mechanism can be latched or unlatched remotely.

**Access type:** Read

### mainState

```
val mainState: ClosureControlTrait.MainStateEnum?
```

The current operational state of the closure.

**Access type:** Read

### overallCurrentState

```
val overallCurrentState: ClosureControlTrait.OverallCurrentStateStruct?
```

The current `Position`, `Latch`, and `Speed` states, whichever are applicable based on the feature flags set. A null value means that the states are not known.

**Access type:** Read

### overallTargetState

```
val overallTargetState: ClosureControlTrait.OverallTargetStateStruct?
```

The `TargetPosition`, `TargetLatch`, `TargetSpeed` values, whichever are applicable according to the feature flags set. A null value means that the values are not known.

**Access type:** Read