# ThermostatTrait.WeeklyScheduleTransitionStruct

# ThermostatTrait.WeeklyScheduleTransitionStruct


```
class ThermostatTrait.WeeklyScheduleTransitionStruct : ClusterStruct
```

<br />

*** ** * ** ***

A single transition in a thermostat schedule.

## Summary

| ### Nested types |
|---|
| `@https://developers.home.google.com/reference/kotlin/com/google/home/annotation/HomeExperimentalGenericApi enum https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ThermostatTrait.WeeklyScheduleTransitionStruct.StructFields : https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html, https://developers.home.google.com/reference/kotlin/com/google/home/Field` Descriptor enum for this struct's fields. |

| ### Public constructors |
|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ThermostatTrait.WeeklyScheduleTransitionStruct#WeeklyScheduleTransitionStruct(kotlin.UShort,kotlin.Short,kotlin.Short)( transitionTime: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html, heatSetpoint: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-short/index.html?, coolSetpoint: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-short/index.html? )` Creates the WeeklyScheduleTransitionStruct class. |

| ### 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/ThermostatTrait.WeeklyScheduleTransitionStruct#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/ThermostatTrait.WeeklyScheduleTransitionStruct#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/-short/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ThermostatTrait.WeeklyScheduleTransitionStruct#coolSetpoint()` The cooling setpoint applied at the transition time. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-short/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ThermostatTrait.WeeklyScheduleTransitionStruct#heatSetpoint()` The heating setpoint applied at the transition time. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ThermostatTrait.WeeklyScheduleTransitionStruct#transitionTime()` The start time of the schedule transition, expressed as the minutes since midnight. |

## Public constructors

### WeeklyScheduleTransitionStruct

```
WeeklyScheduleTransitionStruct(
    transitionTime: UShort,
    heatSetpoint: Short? = null,
    coolSetpoint: Short? = null
)
```

Creates the WeeklyScheduleTransitionStruct class.

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

### coolSetpoint

```
val coolSetpoint: Short?
```

The cooling setpoint applied at the transition time.

### heatSetpoint

```
val heatSetpoint: Short?
```

The heating setpoint applied at the transition time.

### transitionTime

```
val transitionTime: UShort
```

The start time of the schedule transition, expressed as the minutes since midnight. For example, `360` means 6:00am, and `1410` means 11:30pm.