# TemperatureControlTrait.Attributes

# TemperatureControlTrait.Attributes


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

<br />

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

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

*** ** * ** ***

Attributes for the TemperatureControl 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/TemperatureControlTrait.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/TemperatureControlTrait.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/TemperatureControlTrait.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/TemperatureControlTrait.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/TemperatureControlTrait.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/TemperatureControlTrait.Feature` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/TemperatureControlTrait.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/TemperatureControlTrait.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/-short/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/TemperatureControlTrait.Attributes#maxTemperature()` The maximum temperature at which the `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/TemperatureControlTrait.Attributes#temperatureSetpoint()` attribute may be set. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-short/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/TemperatureControlTrait.Attributes#minTemperature()` The minimum temperature at which the `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/TemperatureControlTrait.Attributes#temperatureSetpoint()` attribute may be set. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/TemperatureControlTrait.Attributes#selectedTemperatureLevel()` The positional index of the setting in the `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/TemperatureControlTrait.Attributes#supportedTemperatureLevels()` list, representing the currently selected temperature level. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-short/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/TemperatureControlTrait.Attributes#step()` The discrete value by which the `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/TemperatureControlTrait.Attributes#temperatureSetpoint()` attribute can be changed using the `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/TemperatureControlTrait.SetTemperatureCommand`. |
| `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/TemperatureControlTrait.Attributes#supportedTemperatureLevels()` The list of supported temperature level settings that may be selected using the `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/TemperatureControlTrait.SetTemperatureCommand` `TargetTemperatureLevel` parameter. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-short/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/TemperatureControlTrait.Attributes#temperatureSetpoint()` The desired temperature setpoint. |

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

### maxTemperature

```
val maxTemperature: Short?
```

The maximum temperature at which the `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/TemperatureControlTrait.Attributes#temperatureSetpoint()` attribute may be set.

**Access type:** Read

### minTemperature

```
val minTemperature: Short?
```

The minimum temperature at which the `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/TemperatureControlTrait.Attributes#temperatureSetpoint()` attribute may be set.

**Access type:** Read

### selectedTemperatureLevel

```
val selectedTemperatureLevel: UByte?
```

The positional index of the setting in the `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/TemperatureControlTrait.Attributes#supportedTemperatureLevels()` list, representing the currently selected temperature level.

**Access type:** Read

### step

```
val step: Short?
```

The discrete value by which the `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/TemperatureControlTrait.Attributes#temperatureSetpoint()` attribute can be changed using the `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/TemperatureControlTrait.SetTemperatureCommand`.

**Access type:** Read

### supportedTemperatureLevels

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

The list of supported temperature level settings that may be selected using the `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/TemperatureControlTrait.SetTemperatureCommand` `TargetTemperatureLevel` parameter. Each string is specified by the manufacturer, and describes a temperature level. For example, a washing machine can have temperature levels like "Cold", "Warm", and "Hot".

**Access type:** Read

### temperatureSetpoint

```
val temperatureSetpoint: Short?
```

The desired temperature setpoint.

**Access type:** Read